summaryrefslogtreecommitdiffstats
path: root/bin/toaster
diff options
context:
space:
mode:
authorbrian avery <avery.brian@gmail.com>2015-10-07 15:17:33 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-10-11 05:30:17 +0100
commitc4b351e40060a359d59ab51b5ed2f9713ca1a9a5 (patch)
tree872b32e7bc8ef48fcb9c63aa22fd05921fd88d2e /bin/toaster
parent782b7c74d5f10ed255538ba0c975ff342a34f5bf (diff)
downloadbitbake-contrib-c4b351e40060a359d59ab51b5ed2f9713ca1a9a5.tar.gz
toaster: remove layer and build dir interactive questions
added TOASTER_CONF env var for toaasterconf.json added TOASTER_DIR env var for working dir added bugfix so WEB_PORT env variable is honored Signed-off-by: brian avery <avery.brian@gmail.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bin/toaster')
-rwxr-xr-xbin/toaster25
1 files changed, 24 insertions, 1 deletions
diff --git a/bin/toaster b/bin/toaster
index d56d52596..ff3123cd4 100755
--- a/bin/toaster
+++ b/bin/toaster
@@ -162,7 +162,30 @@ RUNNING=0
NOTOASTERUI=0
WEBSERVER=1
TOASTER_BRBE=""
-WEB_PORT="8000"
+if [ "$WEB_PORT" == "" ]; then
+ WEB_PORT="8000"
+fi
+# this is the configuraton file we are using for toaster
+# note default is assuming yocto. Override this if you are
+# running in a pure OE environment and use the toasterconf.json
+# in meta/conf/toasterconf.json
+# note: for future there are a number of relative path assumptions
+# in the local layers that currently prevent using an arbitrary
+# toasterconf.json
+if [ "$TOASTER_CONF" == "" ]; then
+ BIN_DIR=$(dirname "${BASH_SOURCE[0]}")
+ export TOASTER_CONF="$BIN_DIR/../../meta-yocto/conf/toasterconf.json"
+fi
+# this defines the dir toaster will use for
+# 1) clones of layers (in _toaster_clones )
+# 2) the build dir (in build)
+# 3) the sqlite db if that is being used.
+# 4) pid's we need to clean up on exit/shutdown
+# note: for future. in order to make this an arbitrary directory, we need to
+# make sure that the toaster.sqlite file doesn't default to `pwd` like it currently does.
+export TOASTER_DIR=`pwd`
+
+
NOBROWSER=0
for param in $*; do