[Toaster] [PATCH v8 01/45] toaster: buildinfohelper Create target list for all types of build
Ed Bartosh
ed.bartosh at linux.intel.com
Mon Apr 4 00:26:32 PDT 2016
From: Michael Wood <michael.g.wood at intel.com>
Create the target list cache for command line builds and toaster
triggered builds. This fixes a regression where the target is not
identified as an image after building as the target cache is empty for
toaster triggered builds
[YOCTO #9266]
Signed-off-by: Michael Wood <michael.g.wood at intel.com>
Signed-off-by: Elliot Smith <elliot.smith at intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
---
bitbake/lib/bb/ui/buildinfohelper.py | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py
index 1483ae1..5a33d53 100644
--- a/bitbake/lib/bb/ui/buildinfohelper.py
+++ b/bitbake/lib/bb/ui/buildinfohelper.py
@@ -986,15 +986,16 @@ class BuildInfoHelper(object):
event: a TargetsAcquired event with a task property (e.g. "build")
and a targetsList property (e.g. ["zlib", "dropbear"])
"""
- if self.internal_state['build'].project.is_default:
- targets = map(lambda target: target + ':' + event.task, event.targetsList)
+ targets = map(lambda target: target + ':' + event.task,
+ event.targetsList)
- target_information = {
- 'targets': targets,
- 'build': self.internal_state['build']
- }
+ target_information = {
+ 'targets': targets,
+ 'build': self.internal_state['build']
+ }
- self.internal_state['targets'] = self.orm_wrapper.get_or_create_targets(target_information)
+ self.internal_state['targets'] = \
+ self.orm_wrapper.get_or_create_targets(target_information)
def update_build(self, event):
"""
--
2.1.4
More information about the toaster
mailing list