Openembedded Bitbake Development
 help / color / mirror / Atom feed
From: Michael Wood <michael.g.wood@intel.com>
To: Elliot Smith <elliot.smith@intel.com>,
	bitbake-devel@lists.openembedded.org
Subject: Re: [PATCH] toaster: buildinfohelper Create target list for all types of build
Date: Fri, 1 Apr 2016 15:42:55 +0100	[thread overview]
Message-ID: <56FE88EF.5010201@intel.com> (raw)
In-Reply-To: <1459511592-1641-1-git-send-email-elliot.smith@intel.com>

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



  reply	other threads:[~2016-04-01 14:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-03-16  8:24 Elliot Smith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56FE88EF.5010201@intel.com \
    --to=michael.g.wood@intel.com \
    --cc=bitbake-devel@lists.openembedded.org \
    --cc=elliot.smith@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox