summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2012-05-01 23:15:36 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-31 20:15:12 (GMT)
commit35cc0b023f8b5f7b30b05da199fda7074fc6d9b7 (patch)
tree2ed4c4a9dd78e83c3137fd9075ab14d76bc295f3 /meta/recipes-graphics
parentc2826b50ce5d9595fabc9d790d3c3105f65b73b1 (diff)
downloadpoky-35cc0b023f8b5f7b30b05da199fda7074fc6d9b7.tar.gz
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>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r--meta/recipes-graphics/builder/builder_0.1.bb7
-rw-r--r--meta/recipes-graphics/builder/files/builder_hob_start.sh2
-rw-r--r--meta/recipes-graphics/builder/files/please_wait_dialog.py28
3 files changed, 35 insertions, 2 deletions
diff --git a/meta/recipes-graphics/builder/builder_0.1.bb b/meta/recipes-graphics/builder/builder_0.1.bb
index af6ba51..cb5f440 100644
--- a/meta/recipes-graphics/builder/builder_0.1.bb
+++ b/meta/recipes-graphics/builder/builder_0.1.bb
@@ -1,11 +1,13 @@
1SUMMARY = "New user to do specific job" 1SUMMARY = "New user to do specific job"
2DESCRIPTION = "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" 2DESCRIPTION = "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"
3SECTION = "x11" 3SECTION = "x11"
4PR = "r2" 4PR = "r3"
5LICENSE = "MIT" 5LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://builder_hob_start.sh;endline=5;md5=84796c3c41785d86100fdabcbdade00e" 6LIC_FILES_CHKSUM = "file://builder_hob_start.sh;endline=5;md5=84796c3c41785d86100fdabcbdade00e"
7 7
8SRC_URI = "file://builder_hob_start.sh" 8SRC_URI = "file://builder_hob_start.sh \
9 file://please_wait_dialog.py \
10 "
9 11
10S = "${WORKDIR}" 12S = "${WORKDIR}"
11 13
@@ -23,5 +25,6 @@ do_install () {
23 install -p -m 755 builder_hob_start.sh ${D}/etc/mini_x/session.d/ 25 install -p -m 755 builder_hob_start.sh ${D}/etc/mini_x/session.d/
24 26
25 chown ${PN}.${PN} ${D}/etc/mini_x/session.d/builder_hob_start.sh 27 chown ${PN}.${PN} ${D}/etc/mini_x/session.d/builder_hob_start.sh
28 install -p -m 755 please_wait_dialog.py ${D}/etc/mini_x
26} 29}
27 30
diff --git a/meta/recipes-graphics/builder/files/builder_hob_start.sh b/meta/recipes-graphics/builder/files/builder_hob_start.sh
index 98b2adb..883535b 100644
--- a/meta/recipes-graphics/builder/files/builder_hob_start.sh
+++ b/meta/recipes-graphics/builder/files/builder_hob_start.sh
@@ -18,3 +18,5 @@ sed -i 's/^#PARALLEL_MAKE =/PARALLEL_MAKE =/g' conf/local.conf
18hob & 18hob &
19 19
20matchbox-terminal& 20matchbox-terminal&
21
22/etc/mini_x/please_wait_dialog.py &
diff --git a/meta/recipes-graphics/builder/files/please_wait_dialog.py b/meta/recipes-graphics/builder/files/please_wait_dialog.py
new file mode 100644
index 0000000..fd2381b
--- /dev/null
+++ b/meta/recipes-graphics/builder/files/please_wait_dialog.py
@@ -0,0 +1,28 @@
1#!/usr/bin/env python
2import glib
3import gtk
4
5def destroy_window_cb(widget, event):
6 gtk.main_quit()
7
8def all_done_cb():
9 gtk.main_quit()
10
11def dialogue_ui():
12 window = gtk.Window()
13 window.set_title("Please wait...")
14 window.connect("delete-event", destroy_window_cb)
15 window.show()
16 window.set_border_width(12)
17
18 msg = "Please wait while BitBake initializes Hob"
19 label = gtk.Label(msg)
20 label.show()
21 window.add(label)
22
23 glib.timeout_add_seconds(10, all_done_cb)
24
25if __name__ == "__main__":
26 dialogue_ui()
27 gtk.main()
28