mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00

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] (From OE-Core rev: a160f4dd48b91c5e6f8c290c7572e29a39a3e693) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
34 lines
926 B
Bash
Executable File
34 lines
926 B
Bash
Executable File
#!/usr/bin/env bash
|
|
if ! (test -r "$BUILDDIR/conf/hob-pre.conf"); then
|
|
cat <<EOM
|
|
You had no conf/hob-pre.conf file. An initial version of this configuration
|
|
file has therefore been created for you. This file will be used to store
|
|
configuration values you set in hob.
|
|
|
|
EOM
|
|
touch conf/hob-pre.conf
|
|
fi
|
|
|
|
if ! (test -r "$BUILDDIR/conf/hob-post.conf"); then
|
|
cat <<EOM
|
|
You had no conf/hob-post.conf file. An initial version of this configuration
|
|
file has therefore been created for you. This file will be used to store
|
|
configuration values you set in hob.
|
|
|
|
EOM
|
|
(cat <<EOF
|
|
INHERIT += "image_types"
|
|
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=$?
|
|
exit $ret
|