Patchwork [2/2] scripts/hob: notify the user when the GUI won't launch immediately

login
register
mail settings
Submitter Joshua Lock
Date Sept. 3, 2011, 12:19 a.m.
Message ID <174de23258fce7cbf17b12d75ca6bc300206c12e.1315008793.git.josh@linux.intel.com>
Download mbox | patch
Permalink /patch/10919/
State New, archived
Headers show

Comments

Joshua Lock - Sept. 3, 2011, 12:19 a.m.
If the wrapper script needs to build pseudo before we can launch hob we need
to notify the user so they aren't shocked by the action of launching a GUI
and seeing a bunch of text whiz by on the console.

Fixes [YOCTO #1435]

Signed-off-by: Joshua Lock <josh@linux.intel.com>
---
 scripts/hob |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

Patch

diff --git a/scripts/hob b/scripts/hob
index bb88a76..480413b 100755
--- a/scripts/hob
+++ b/scripts/hob
@@ -22,6 +22,11 @@  EOF
 ) > conf/hob-post.conf
 fi
 
+# Users don't like to launch GUI's and see a bunch of text whiz by, notify them
+if [ ! -e "$BUILDDIR/pseudodone" ]; then
+    echo "Before we can launch the GUI we need to build some native tools required for running"
+fi
+
 bitbake -r conf/hob-pre.conf -R conf/hob-post.conf -u hob
 
 ret=$?