summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rwxr-xr-xbitbake/bin/toaster9
1 files changed, 7 insertions, 2 deletions
diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster
index ed365ee82e..9fffbc6ae2 100755
--- a/bitbake/bin/toaster
+++ b/bitbake/bin/toaster
@@ -18,11 +18,12 @@
18# along with this program. If not, see http://www.gnu.org/licenses/. 18# along with this program. If not, see http://www.gnu.org/licenses/.
19 19
20HELP=" 20HELP="
21Usage: source toaster start|stop [webport=<address:port>] [noweb] [nobuild] 21Usage: source toaster start|stop [webport=<address:port>] [noweb] [nobuild] [toasterdir]
22 Optional arguments: 22 Optional arguments:
23 [nobuild] Setup the environment for capturing builds with toaster but disable managed builds 23 [nobuild] Setup the environment for capturing builds with toaster but disable managed builds
24 [noweb] Setup the environment for capturing builds with toaster but don't start the web server 24 [noweb] Setup the environment for capturing builds with toaster but don't start the web server
25 [webport] Set the development server (default: localhost:8000) 25 [webport] Set the development server (default: localhost:8000)
26 [toasterdir] Set absolute path to be used as TOASTER_DIR (default: BUILDDIR/../)
26" 27"
27 28
28custom_extention() 29custom_extention()
@@ -186,6 +187,7 @@ unset OE_ROOT
186WEBSERVER=1 187WEBSERVER=1
187export TOASTER_BUILDSERVER=1 188export TOASTER_BUILDSERVER=1
188ADDR_PORT="localhost:8000" 189ADDR_PORT="localhost:8000"
190TOASTERDIR=`dirname $BUILDDIR`
189unset CMD 191unset CMD
190for param in $*; do 192for param in $*; do
191 case $param in 193 case $param in
@@ -211,6 +213,9 @@ for param in $*; do
211 ADDR_PORT="localhost:$PORT" 213 ADDR_PORT="localhost:$PORT"
212 fi 214 fi
213 ;; 215 ;;
216 toasterdir=*)
217 TOASTERDIR="${param#*=}"
218 ;;
214 --help) 219 --help)
215 echo "$HELP" 220 echo "$HELP"
216 return 0 221 return 0
@@ -241,7 +246,7 @@ fi
241# 2) the build dir (in build) 246# 2) the build dir (in build)
242# 3) the sqlite db if that is being used. 247# 3) the sqlite db if that is being used.
243# 4) pid's we need to clean up on exit/shutdown 248# 4) pid's we need to clean up on exit/shutdown
244export TOASTER_DIR=`dirname $BUILDDIR` 249export TOASTER_DIR=$TOASTERDIR
245export BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE TOASTER_DIR" 250export BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE TOASTER_DIR"
246 251
247# Determine the action. If specified by arguments, fine, if not, toggle it 252# Determine the action. If specified by arguments, fine, if not, toggle it