diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-12-02 10:02:42 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-12-07 17:37:08 +0000 |
commit | 7c2b22556bc6a173b98b4702d4a317b6d40ea093 (patch) | |
tree | 9aa28cc6e9401ffeb8922bceb86e6b713f147aaa /bitbake/lib/bb | |
parent | de812d086e017f55a7dd8f3916a138a96be7388f (diff) | |
download | poky-7c2b22556bc6a173b98b4702d4a317b6d40ea093.tar.gz |
bitbake: toaster: update brbe and project attributes
Updated attributes of buildinfohelper object as they can
be changed for every build. For example brbe is set by
runbuilds for every build triggered by Toaster UI.
(Bitbake rev: ea3bc8d01704dc64f6cb7b4f5fe66c312a575174)
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>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r-- | bitbake/lib/bb/ui/buildinfohelper.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py index 78f1e9274f..43c243e827 100644 --- a/bitbake/lib/bb/ui/buildinfohelper.py +++ b/bitbake/lib/bb/ui/buildinfohelper.py | |||
@@ -796,6 +796,8 @@ class BuildInfoHelper(object): | |||
796 | build_info['cooker_log_path'] = build_log_path | 796 | build_info['cooker_log_path'] = build_log_path |
797 | build_info['build_name'] = self.server.runCommand(["getVariable", "BUILDNAME"])[0] | 797 | build_info['build_name'] = self.server.runCommand(["getVariable", "BUILDNAME"])[0] |
798 | build_info['bitbake_version'] = self.server.runCommand(["getVariable", "BB_VERSION"])[0] | 798 | build_info['bitbake_version'] = self.server.runCommand(["getVariable", "BB_VERSION"])[0] |
799 | build_info['brbe'] = self.server.runCommand(["getVariable", "TOASTER_BRBE"])[0] | ||
800 | build_info['project'] = self.project = self.server.runCommand(["getVariable", "TOASTER_PROJECT"])[0] | ||
799 | 801 | ||
800 | return build_info | 802 | return build_info |
801 | 803 | ||
@@ -938,6 +940,10 @@ class BuildInfoHelper(object): | |||
938 | assert '_pkgs' in vars(event) | 940 | assert '_pkgs' in vars(event) |
939 | build_information = self._get_build_information(build_log_path) | 941 | build_information = self._get_build_information(build_log_path) |
940 | 942 | ||
943 | # Update brbe and project as they can be changed for every build | ||
944 | self.brbe = build_information['brbe'] | ||
945 | self.project = build_information['project'] | ||
946 | |||
941 | build_obj = self.orm_wrapper.create_build_object(build_information, self.brbe, self.project) | 947 | build_obj = self.orm_wrapper.create_build_object(build_information, self.brbe, self.project) |
942 | 948 | ||
943 | self.internal_state['build'] = build_obj | 949 | self.internal_state['build'] = build_obj |