From: Saul Wold <sgw@linux.intel.com>
To: brendan.le.foll@intel.com, yocto@yoctoproject.org
Subject: Re: [autobuilder][PATCH 2/2] BuildImages.py: Make -w flag depend on bitbake version check
Date: Wed, 21 Jan 2015 14:51:30 -0800 [thread overview]
Message-ID: <54C02D72.9050606@linux.intel.com> (raw)
In-Reply-To: <1421838509-29830-2-git-send-email-brendan.le.foll@intel.com>
Brendan,
Just a heads up, these AB patches will be reviewed when Beth comes back
in just over 3 weeks, you should be able to fix your local AB instance
for now.
Thanks for your patience
Sau!
On 01/21/2015 03:08 AM, brendan.le.foll@intel.com wrote:
> From: Brendan Le Foll <brendan.le.foll@intel.com>
>
> Because bitbake -w flag does not exist in verisons of bitbake prior to 1.25
> BuildImages.py is broken for anything older like daisy, adding this check means
> that -w will only be applied if the GetBitbakeVersion step has been run.
>
> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
> ---
> lib/python2.7/site-packages/autobuilder/buildsteps/BuildImages.py | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/lib/python2.7/site-packages/autobuilder/buildsteps/BuildImages.py b/lib/python2.7/site-packages/autobuilder/buildsteps/BuildImages.py
> index 31a29a8..bf1ac5e 100644
> --- a/lib/python2.7/site-packages/autobuilder/buildsteps/BuildImages.py
> +++ b/lib/python2.7/site-packages/autobuilder/buildsteps/BuildImages.py
> @@ -13,6 +13,7 @@ __email__ = "elizabeth.flanagan@intel.com"
>
> from buildbot.steps.shell import ShellCommand
> from buildbot.process.buildstep import LogLineObserver
> +from distutils.version import StrictVersion
> import os
>
> class BuildImages(ShellCommand):
> @@ -47,7 +48,11 @@ class BuildImages(ShellCommand):
> if self.layerversion_yoctobsp is not None and int(self.layerversion_yoctobsp) < 2 and self.machine is not None and self.machine == "genericx86-64":
> self.command = "echo 'Skipping Step.'"
> else:
> - self.command = ". ./oe-init-build-env; bitbake -w -k " + self.images
> + bitbakeflags = "-k "
> + # -w only exists in bitbake 1.25 and newer, use distroversion string and make sure we're on poky >1.7
> + if self.getProperty('bitbakeversion') and StrictVersion(self.getProperty('bitbakeversion')) >= StrictVersion("1.25"):
> + bitbakeflags += "-w "
> + self.command = ". ./oe-init-build-env; bitbake " + bitbakeflags + self.images
> self.description = ["Building " + str(self.images)]
> ShellCommand.start(self)
>
>
prev parent reply other threads:[~2015-01-21 22:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-21 11:08 [autobuilder][PATCH 1/2] GetBitbakeVersion.py: add buildstep to get the version of bitbake brendan.le.foll
2015-01-21 11:08 ` [autobuilder][PATCH 2/2] BuildImages.py: Make -w flag depend on bitbake version check brendan.le.foll
2015-01-21 22:51 ` Saul Wold [this message]
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=54C02D72.9050606@linux.intel.com \
--to=sgw@linux.intel.com \
--cc=brendan.le.foll@intel.com \
--cc=yocto@yoctoproject.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.