summaryrefslogtreecommitdiffstats
path: root/bitbake/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:33:05 +0100
commit315989cd9539192acb76b1028b6a7f5c5f3b3395 (patch)
tree49132c3530db11e78652f604b32fd9a47ae8d027 /bitbake/bin/toaster
parent489d5ff1c9ddcbb27e9a847153656c84bea4fd03 (diff)
downloadpoky-315989cd9539192acb76b1028b6a7f5c5f3b3395.tar.gz
bitbake: 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 (Bitbake rev: c4b351e40060a359d59ab51b5ed2f9713ca1a9a5) 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 'bitbake/bin/toaster')
-rwxr-xr-xbitbake/bin/toaster25
1 files changed, 24 insertions, 1 deletions
diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster
index d56d525960..ff3123cd4a 100755
--- a/bitbake/bin/toaster
+++ b/bitbake/bin/toaster
@@ -162,7 +162,30 @@ RUNNING=0
162NOTOASTERUI=0 162NOTOASTERUI=0
163WEBSERVER=1 163WEBSERVER=1
164TOASTER_BRBE="" 164TOASTER_BRBE=""
165WEB_PORT="8000" 165if [ "$WEB_PORT" == "" ]; then
166 WEB_PORT="8000"
167fi
168# this is the configuraton file we are using for toaster
169# note default is assuming yocto. Override this if you are
170# running in a pure OE environment and use the toasterconf.json
171# in meta/conf/toasterconf.json
172# note: for future there are a number of relative path assumptions
173# in the local layers that currently prevent using an arbitrary
174# toasterconf.json
175if [ "$TOASTER_CONF" == "" ]; then
176 BIN_DIR=$(dirname "${BASH_SOURCE[0]}")
177 export TOASTER_CONF="$BIN_DIR/../../meta-yocto/conf/toasterconf.json"
178fi
179# this defines the dir toaster will use for
180# 1) clones of layers (in _toaster_clones )
181# 2) the build dir (in build)
182# 3) the sqlite db if that is being used.
183# 4) pid's we need to clean up on exit/shutdown
184# note: for future. in order to make this an arbitrary directory, we need to
185# make sure that the toaster.sqlite file doesn't default to `pwd` like it currently does.
186export TOASTER_DIR=`pwd`
187
188
166NOBROWSER=0 189NOBROWSER=0
167 190
168for param in $*; do 191for param in $*; do