diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2014-06-03 16:26:16 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-06-06 10:32:54 +0100 |
commit | b68b74ddd4be4a767e84c72a011cc087e059d132 (patch) | |
tree | c413e63894ef8cf8afc5faccd68f5445b8edaf91 /bitbake/lib/bb | |
parent | b610aaee9d4a1ee6671f74fbb5902ca48b09ad4a (diff) | |
download | poky-b68b74ddd4be4a767e84c72a011cc087e059d132.tar.gz |
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')
-rw-r--r-- | bitbake/lib/bb/ui/toasterui.py | 16 |
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 ): | |||
226 | 226 | ||
227 | buildinfohelper.update_build_information(event, errors, warnings, taskfailures) | 227 | buildinfohelper.update_build_information(event, errors, warnings, taskfailures) |
228 | 228 | ||
229 | |||
230 | brbe = server.runCommand(["getVariable", "TOASTER_BRBE"])[0] | ||
229 | # we start a new build info | 231 | # we start a new build info |
230 | errors = 0 | 232 | if brbe is not None: |
231 | warnings = 0 | 233 | print "we are under BuildEnvironment management - after the build, we exit" |
232 | taskfailures = [] | 234 | server.terminateServer() |
233 | buildinfohelper = BuildInfoHelper(server, build_history_enabled) | 235 | else: |
236 | print "prepared for new build" | ||
237 | errors = 0 | ||
238 | warnings = 0 | ||
239 | taskfailures = [] | ||
240 | buildinfohelper = BuildInfoHelper(server, build_history_enabled) | ||
241 | |||
234 | continue | 242 | continue |
235 | 243 | ||
236 | if isinstance(event, bb.event.MetadataEvent): | 244 | if isinstance(event, bb.event.MetadataEvent): |