* [PATCH] toaster: buildinfohelper Create target list for all types of build
@ 2016-04-01 11:53 Elliot Smith
2016-04-01 14:42 ` Michael Wood
0 siblings, 1 reply; 3+ messages in thread
From: Elliot Smith @ 2016-04-01 11:53 UTC (permalink / raw)
To: bitbake-devel
From: Michael Wood <michael.g.wood@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@intel.com>
Signed-off-by: Elliot Smith <elliot.smith@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 9021c63..7b8b1a5 100644
--- a/bitbake/lib/bb/ui/buildinfohelper.py
+++ b/bitbake/lib/bb/ui/buildinfohelper.py
@@ -977,15 +977,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):
"""
--
1.9.3
---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] toaster: buildinfohelper Create target list for all types of build
2016-04-01 11:53 [PATCH] toaster: buildinfohelper Create target list for all types of build Elliot Smith
@ 2016-04-01 14:42 ` Michael Wood
0 siblings, 0 replies; 3+ messages in thread
From: Michael Wood @ 2016-04-01 14:42 UTC (permalink / raw)
To: Elliot Smith, bitbake-devel
On 01/04/16 12:53, Elliot Smith wrote:
> From: Michael Wood <michael.g.wood@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@intel.com>
> Signed-off-by: Elliot Smith <elliot.smith@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 9021c63..7b8b1a5 100644
> --- a/bitbake/lib/bb/ui/buildinfohelper.py
> +++ b/bitbake/lib/bb/ui/buildinfohelper.py
> @@ -977,15 +977,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):
> """
This patch depends on:
10/03/16 13:57 - [PATCH] toaster: create Build object earlier in bitbake
processing
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] toaster: buildinfohelper Create target list for all types of build
@ 2016-03-16 8:24 Elliot Smith
0 siblings, 0 replies; 3+ messages in thread
From: Elliot Smith @ 2016-03-16 8:24 UTC (permalink / raw)
To: bitbake-devel
From: Michael Wood <michael.g.wood@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@intel.com>
Signed-off-by: Elliot Smith <elliot.smith@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 7805086..28c7353 100644
--- a/bitbake/lib/bb/ui/buildinfohelper.py
+++ b/bitbake/lib/bb/ui/buildinfohelper.py
@@ -977,15 +977,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):
"""
--
1.9.3
---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-04-01 14:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-01 11:53 [PATCH] toaster: buildinfohelper Create target list for all types of build Elliot Smith
2016-04-01 14:42 ` Michael Wood
-- strict thread matches above, loose matches on Subject: below --
2016-03-16 8:24 Elliot Smith
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox