1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-30 12:29:55 +00:00

bitbake: toaster: set TOASTER_MANAGED variable

Set TOASTER_MANAGED to 1 if toaster is run as a script.

(Bitbake rev: 9f68f317e33d617558fce3427a94e14ef65c7d88)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: brian avery <avery.brian@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ed Bartosh
2015-10-15 09:34:16 -07:00
committed by Richard Purdie
parent a73895e492
commit 2e2e40c2c4
+3 -2
View File
@@ -176,6 +176,8 @@ else
TOASTER=$0 TOASTER=$0
fi fi
[ `basename \"$0\"` = `basename \"${TOASTER}\"` ] && TOASTER_MANAGED=1
BBBASEDIR=`dirname $TOASTER`/.. BBBASEDIR=`dirname $TOASTER`/..
RUNNING=0 RUNNING=0
@@ -232,7 +234,7 @@ for param in $*; do
esac esac
done done
if [ `basename \"$0\"` = `basename \"${TOASTER}\"` ]; then if [ "$TOASTER_MANAGED" = '1' ]; then
# We are called as standalone. We refuse to run in a build environment - we need the interactive mode for that. # We are called as standalone. We refuse to run in a build environment - we need the interactive mode for that.
# Start just the web server, point the web browser to the interface, and start any Django services. # Start just the web server, point the web browser to the interface, and start any Django services.
@@ -279,7 +281,6 @@ if [ `basename \"$0\"` = `basename \"${TOASTER}\"` ]; then
do_cleanup do_cleanup
fi fi
} }
TOASTER_MANAGED=1
export TOASTER_MANAGED=1 export TOASTER_MANAGED=1
if [ $WEBSERVER -gt 0 ] && ! webserverStartAll; then if [ $WEBSERVER -gt 0 ] && ! webserverStartAll; then
echo "Failed to start the web server, stopping" 1>&2 echo "Failed to start the web server, stopping" 1>&2