diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2014-06-12 12:57:22 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-06-13 11:55:34 +0100 |
commit | e16352220572835ff2185cf992518fb4f3b2de0e (patch) | |
tree | 34ed801e6883d1ebd8e00d4431785dd5e7255039 /bitbake/bin | |
parent | 87b99274e9c90101ec9d4c49ce0874bcb85f7746 (diff) | |
download | poky-e16352220572835ff2185cf992518fb4f3b2de0e.tar.gz |
bitbake: toaster: build control functionality
We add the build control functionality to toaster.
* The bldcontrol application gains bbcontroller classes
that know how to manage a localhost build environment.
* The toaster UI now detects it is running under build
environment controller, and update the build controller
database and will shut down the bitbake server once
the build is complete.
* The toaster script can now run in standalone mode,
launching the build controller and the web interface instead
of just monitoring the build, as in the interactive mode.
* A fixture with the default build controller entry for
localhost is provided.
[YOCTO #5490]
[YOCTO #5491]
[YOCTO #5492]
[YOCTO #5493]
[YOCTO #5494]
[YOCTO #5537]
(Bitbake rev: 10988bd77c8c7cefad3b88744bc5d8a7e3c1f4cf)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-x | bitbake/bin/toaster | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster index 80bda6d67c..01ffc7a37c 100755 --- a/bitbake/bin/toaster +++ b/bitbake/bin/toaster | |||
@@ -139,15 +139,16 @@ if [ -z "$ZSH_NAME" ] && [ `basename \"$0\"` = `basename \"$BASH_SOURCE\"` ]; th | |||
139 | webserverKillAll | 139 | webserverKillAll |
140 | RUNNING=0 | 140 | RUNNING=0 |
141 | } | 141 | } |
142 | webserverStartAll || exit 1 | 142 | webserverStartAll || (echo "Fail to start the web server, stopping" 1>&2 && exit 1) |
143 | xdg-open http://0.0.0.0:8000/ >/dev/null 2>&1 & | 143 | xdg-open http://0.0.0.0:8000/ >/dev/null 2>&1 & |
144 | trap trap_ctrlc SIGINT | 144 | trap trap_ctrlc SIGINT |
145 | echo "Running. Stop with Ctrl-C" | 145 | echo "Running. Stop with Ctrl-C" |
146 | while [ $RUNNING -gt 0 ]; do | 146 | while [ $RUNNING -gt 0 ]; do |
147 | wait; | 147 | python $BBBASEDIR/lib/toaster/manage.py runbuilds |
148 | sleep 1 | ||
148 | done | 149 | done |
149 | echo "**** Exit" | 150 | echo "**** Exit" |
150 | exit 1 | 151 | exit 0 |
151 | fi | 152 | fi |
152 | 153 | ||
153 | # We make sure we're running in the current shell and in a good environment | 154 | # We make sure we're running in the current shell and in a good environment |