mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
cac91db01d
commit
5a42c2d050
+4
-6
@@ -285,16 +285,13 @@ case $CMD in
|
|||||||
start )
|
start )
|
||||||
start_success=1
|
start_success=1
|
||||||
addtoConfiguration toaster.conf "INHERIT+=\"toaster buildhistory\"" $TOASTER_BRBE
|
addtoConfiguration toaster.conf "INHERIT+=\"toaster buildhistory\"" $TOASTER_BRBE
|
||||||
|
echo > ${BUILDDIR}/conf/toaster-pre.conf
|
||||||
if [ $WEBSERVER -gt 0 ] && ! webserverStartAll; then
|
if [ $WEBSERVER -gt 0 ] && ! webserverStartAll; then
|
||||||
echo "Failed ${CMD}."
|
echo "Failed ${CMD}."
|
||||||
return 4
|
return 4
|
||||||
fi
|
fi
|
||||||
unset BBSERVER
|
unset BBSERVER
|
||||||
PREREAD=""
|
bitbake --read conf/toaster-pre.conf --postread conf/toaster.conf --server-only -t xmlrpc -B 0.0.0.0:0
|
||||||
if [ -e ${BUILDDIR}/conf/toaster-pre.conf ]; then
|
|
||||||
rm ${BUILDDIR}/conf/toaster-pre.conf
|
|
||||||
fi
|
|
||||||
bitbake $PREREAD --postread conf/toaster.conf --server-only -t xmlrpc -B 0.0.0.0:0
|
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
start_success=0
|
start_success=0
|
||||||
echo "Bitbake server start failed"
|
echo "Bitbake server start failed"
|
||||||
@@ -302,7 +299,8 @@ case $CMD in
|
|||||||
export BBSERVER=0.0.0.0:-1
|
export BBSERVER=0.0.0.0:-1
|
||||||
export DATABASE_URL=`$BBBASEDIR/lib/toaster/manage.py get-dburl`
|
export DATABASE_URL=`$BBBASEDIR/lib/toaster/manage.py get-dburl`
|
||||||
if [ $NOTOASTERUI -eq 0 ]; then # we start the TOASTERUI only if not inhibited
|
if [ $NOTOASTERUI -eq 0 ]; then # we start the TOASTERUI only if not inhibited
|
||||||
bitbake --observe-only -u toasterui >>${BUILDDIR}/toaster_ui.log 2>&1 & echo $! >${BUILDDIR}/.toasterui.pid
|
bitbake --observe-only -u toasterui --remote-server=$BBSERVER -t xmlrpc >>${BUILDDIR}/toaster_ui.log 2>&1 \
|
||||||
|
& echo $! >${BUILDDIR}/.toasterui.pid
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ $start_success -eq 1 ]; then
|
if [ $start_success -eq 1 ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user