summaryrefslogtreecommitdiffstats
path: root/bitbake/bin/toaster
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/bin/toaster')
-rwxr-xr-xbitbake/bin/toaster19
1 files changed, 14 insertions, 5 deletions
diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster
index 762451df23..4036f0ad58 100755
--- a/bitbake/bin/toaster
+++ b/bitbake/bin/toaster
@@ -18,9 +18,10 @@
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] 21Usage: source toaster start|stop [webport=<address:port>] [noweb] [nobuild]
22 Optional arguments: 22 Optional arguments:
23 [noweb] Setup the environment for building with toaster but don't start the development server 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 [webport] Set the development server (default: localhost:8000) 25 [webport] Set the development server (default: localhost:8000)
25" 26"
26 27
@@ -183,6 +184,7 @@ unset OE_ROOT
183 184
184 185
185WEBSERVER=1 186WEBSERVER=1
187export TOASTER_BUILDSERVER=1
186ADDR_PORT="localhost:8000" 188ADDR_PORT="localhost:8000"
187unset CMD 189unset CMD
188for param in $*; do 190for param in $*; do
@@ -190,6 +192,9 @@ for param in $*; do
190 noweb ) 192 noweb )
191 WEBSERVER=0 193 WEBSERVER=0
192 ;; 194 ;;
195 nobuild )
196 TOASTER_BUILDSERVER=0
197 ;;
193 start ) 198 start )
194 CMD=$param 199 CMD=$param
195 ;; 200 ;;
@@ -286,9 +291,13 @@ case $CMD in
286 return 4 291 return 4
287 fi 292 fi
288 export BITBAKE_UI='toasterui' 293 export BITBAKE_UI='toasterui'
289 $MANAGE runbuilds \ 294 if [ $TOASTER_BUILDSERVER -eq 1 ] ; then
290 </dev/null >>${BUILDDIR}/toaster_runbuilds.log 2>&1 \ 295 $MANAGE runbuilds \
291 & echo $! >${BUILDDIR}/.runbuilds.pid 296 </dev/null >>${BUILDDIR}/toaster_runbuilds.log 2>&1 \
297 & echo $! >${BUILDDIR}/.runbuilds.pid
298 else
299 echo "Toaster build server not started."
300 fi
292 301
293 # set fail safe stop system on terminal exit 302 # set fail safe stop system on terminal exit
294 trap stop_system SIGHUP 303 trap stop_system SIGHUP