mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00:00
builder: Add Please Wait Dialog Box
Add dialog box while bitbake starts hob to inform user to please wait for the hob screen to become visible. (From OE-Core rev: e9239e4250ef140920847f78625cc7206763c32c) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
c2826b50ce
commit
35cc0b023f
@@ -1,11 +1,13 @@
|
|||||||
SUMMARY = "New user to do specific job"
|
SUMMARY = "New user to do specific job"
|
||||||
DESCRIPTION = "This recipe create a new user named ${PN}, who is used for specific jobs like building. The task can be auto started via mini X"
|
DESCRIPTION = "This recipe create a new user named ${PN}, who is used for specific jobs like building. The task can be auto started via mini X"
|
||||||
SECTION = "x11"
|
SECTION = "x11"
|
||||||
PR = "r2"
|
PR = "r3"
|
||||||
LICENSE = "MIT"
|
LICENSE = "MIT"
|
||||||
LIC_FILES_CHKSUM = "file://builder_hob_start.sh;endline=5;md5=84796c3c41785d86100fdabcbdade00e"
|
LIC_FILES_CHKSUM = "file://builder_hob_start.sh;endline=5;md5=84796c3c41785d86100fdabcbdade00e"
|
||||||
|
|
||||||
SRC_URI = "file://builder_hob_start.sh"
|
SRC_URI = "file://builder_hob_start.sh \
|
||||||
|
file://please_wait_dialog.py \
|
||||||
|
"
|
||||||
|
|
||||||
S = "${WORKDIR}"
|
S = "${WORKDIR}"
|
||||||
|
|
||||||
@@ -23,5 +25,6 @@ do_install () {
|
|||||||
install -p -m 755 builder_hob_start.sh ${D}/etc/mini_x/session.d/
|
install -p -m 755 builder_hob_start.sh ${D}/etc/mini_x/session.d/
|
||||||
|
|
||||||
chown ${PN}.${PN} ${D}/etc/mini_x/session.d/builder_hob_start.sh
|
chown ${PN}.${PN} ${D}/etc/mini_x/session.d/builder_hob_start.sh
|
||||||
|
install -p -m 755 please_wait_dialog.py ${D}/etc/mini_x
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,3 +18,5 @@ sed -i 's/^#PARALLEL_MAKE =/PARALLEL_MAKE =/g' conf/local.conf
|
|||||||
hob &
|
hob &
|
||||||
|
|
||||||
matchbox-terminal&
|
matchbox-terminal&
|
||||||
|
|
||||||
|
/etc/mini_x/please_wait_dialog.py &
|
||||||
|
|||||||
@@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
import glib
|
||||||
|
import gtk
|
||||||
|
|
||||||
|
def destroy_window_cb(widget, event):
|
||||||
|
gtk.main_quit()
|
||||||
|
|
||||||
|
def all_done_cb():
|
||||||
|
gtk.main_quit()
|
||||||
|
|
||||||
|
def dialogue_ui():
|
||||||
|
window = gtk.Window()
|
||||||
|
window.set_title("Please wait...")
|
||||||
|
window.connect("delete-event", destroy_window_cb)
|
||||||
|
window.show()
|
||||||
|
window.set_border_width(12)
|
||||||
|
|
||||||
|
msg = "Please wait while BitBake initializes Hob"
|
||||||
|
label = gtk.Label(msg)
|
||||||
|
label.show()
|
||||||
|
window.add(label)
|
||||||
|
|
||||||
|
glib.timeout_add_seconds(10, all_done_cb)
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
dialogue_ui()
|
||||||
|
gtk.main()
|
||||||
|
|
||||||
Reference in New Issue
Block a user