From: Ed Bartosh Date: Wed, 9 Dec 2015 14:25:49 +0000 (+0000) Subject: bitbake: toasterui: process SetBRBE event X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b322dec01642a61584a11638a97341126dc3dd3f;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git bitbake: toasterui: process SetBRBE event Currently BRBE is known to toasterui only when build is started. It's passed to it with BuildStarted event. This is too late as if build fails earilier than build starts toasterui can not inform Toaster about the failure. Set BRBE as soon as it's provided by Toaster. This should make toasterui to be able to inform Toaster about early build failures, e.g. failures during recipe parsing. (Bitbake rev: d7819508dac488a64be3caec88db285cda9599ab) Signed-off-by: Ed Bartosh Signed-off-by: Michael Wood Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/ui/toasterui.py b/bitbake/lib/bb/ui/toasterui.py index 435cc2b3041..0265df7b3ec 100644 --- a/bitbake/lib/bb/ui/toasterui.py +++ b/bitbake/lib/bb/ui/toasterui.py @@ -363,6 +363,8 @@ def main(server, eventHandler, params): buildinfohelper.update_artifact_image_file(event) elif event.type == "LicenseManifestPath": buildinfohelper.store_license_manifest_path(event) + elif event.type == "SetBRBE": + buildinfohelper.brbe = buildinfohelper._get_data_from_event(event) else: logger.error("Unprocessed MetadataEvent %s ", str(event)) continue