summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/toasterui.py
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2014-06-03 16:26:16 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-06-06 10:32:54 +0100
commitb68b74ddd4be4a767e84c72a011cc087e059d132 (patch)
treec413e63894ef8cf8afc5faccd68f5445b8edaf91 /bitbake/lib/bb/ui/toasterui.py
parentb610aaee9d4a1ee6671f74fbb5902ca48b09ad4a (diff)
downloadpoky-b68b74ddd4be4a767e84c72a011cc087e059d132.tar.gz
poky-b68b74ddd4be4a767e84c72a011cc087e059d132.tar.bz2
poky-b68b74ddd4be4a767e84c72a011cc087e059d132.zip
bitbake: toaster: update toaster to run in managed mode
We disable bitbake self start to prevent race condition. ToasterUI will shutdown the server when the build is done if running in managed mode. We fix usage of kill server flag in the bitbake binary. (Bitbake rev: 30159dbda3a40fa596302f91c705cb5f148c97a9) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/toasterui.py')
-rw-r--r--bitbake/lib/bb/ui/toasterui.py16
1 files changed, 12 insertions, 4 deletions
diff --git a/bitbake/lib/bb/ui/toasterui.py b/bitbake/lib/bb/ui/toasterui.py
index 9a9fe6f2d8..c1696b2a31 100644
--- a/bitbake/lib/bb/ui/toasterui.py
+++ b/bitbake/lib/bb/ui/toasterui.py
@@ -226,11 +226,19 @@ def main(server, eventHandler, params ):
buildinfohelper.update_build_information(event, errors, warnings, taskfailures)
+
+ brbe = server.runCommand(["getVariable", "TOASTER_BRBE"])[0]
# we start a new build info
- errors = 0
- warnings = 0
- taskfailures = []
- buildinfohelper = BuildInfoHelper(server, build_history_enabled)
+ if brbe is not None:
+ print "we are under BuildEnvironment management - after the build, we exit"
+ server.terminateServer()
+ else:
+ print "prepared for new build"
+ errors = 0
+ warnings = 0
+ taskfailures = []
+ buildinfohelper = BuildInfoHelper(server, build_history_enabled)
+
continue
if isinstance(event, bb.event.MetadataEvent):