summaryrefslogtreecommitdiffstats
path: root/bitbake/bin
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-12-02 10:02:36 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-07 17:37:07 +0000
commit5a42c2d05048e2742391a7bbc84d5fa7f76c5219 (patch)
treefb3658a5209f6491946f0ad39383cb5226514359 /bitbake/bin
parentcac91db01dc2f233ba0ff8f068be909dc8715066 (diff)
downloadpoky-5a42c2d05048e2742391a7bbc84d5fa7f76c5219.tar.gz
bitbake: toaster: run bitbake the same way
Run bitbake in toaster script the same way as it's run by localbuildcontroller. (Bitbake rev: c5d5da095d5eace03f8a50910f5a60ab35acbb1a) 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>
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-xbitbake/bin/toaster10
1 files changed, 4 insertions, 6 deletions
diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster
index 2397319916..71f882e744 100755
--- a/bitbake/bin/toaster
+++ b/bitbake/bin/toaster
@@ -285,16 +285,13 @@ case $CMD in
285 start ) 285 start )
286 start_success=1 286 start_success=1
287 addtoConfiguration toaster.conf "INHERIT+=\"toaster buildhistory\"" $TOASTER_BRBE 287 addtoConfiguration toaster.conf "INHERIT+=\"toaster buildhistory\"" $TOASTER_BRBE
288 echo > ${BUILDDIR}/conf/toaster-pre.conf
288 if [ $WEBSERVER -gt 0 ] && ! webserverStartAll; then 289 if [ $WEBSERVER -gt 0 ] && ! webserverStartAll; then
289 echo "Failed ${CMD}." 290 echo "Failed ${CMD}."
290 return 4 291 return 4
291 fi 292 fi
292 unset BBSERVER 293 unset BBSERVER
293 PREREAD="" 294 bitbake --read conf/toaster-pre.conf --postread conf/toaster.conf --server-only -t xmlrpc -B 0.0.0.0:0
294 if [ -e ${BUILDDIR}/conf/toaster-pre.conf ]; then
295 rm ${BUILDDIR}/conf/toaster-pre.conf
296 fi
297 bitbake $PREREAD --postread conf/toaster.conf --server-only -t xmlrpc -B 0.0.0.0:0
298 if [ $? -ne 0 ]; then 295 if [ $? -ne 0 ]; then
299 start_success=0 296 start_success=0
300 echo "Bitbake server start failed" 297 echo "Bitbake server start failed"
@@ -302,7 +299,8 @@ case $CMD in
302 export BBSERVER=0.0.0.0:-1 299 export BBSERVER=0.0.0.0:-1
303 export DATABASE_URL=`$BBBASEDIR/lib/toaster/manage.py get-dburl` 300 export DATABASE_URL=`$BBBASEDIR/lib/toaster/manage.py get-dburl`
304 if [ $NOTOASTERUI -eq 0 ]; then # we start the TOASTERUI only if not inhibited 301 if [ $NOTOASTERUI -eq 0 ]; then # we start the TOASTERUI only if not inhibited
305 bitbake --observe-only -u toasterui >>${BUILDDIR}/toaster_ui.log 2>&1 & echo $! >${BUILDDIR}/.toasterui.pid 302 bitbake --observe-only -u toasterui --remote-server=$BBSERVER -t xmlrpc >>${BUILDDIR}/toaster_ui.log 2>&1 \
303 & echo $! >${BUILDDIR}/.toasterui.pid
306 fi 304 fi
307 fi 305 fi
308 if [ $start_success -eq 1 ]; then 306 if [ $start_success -eq 1 ]; then