[yocto] (How) did you script bitbake/set up nightly builds?

Alan Martinovic alan.martinovic at senic.com
Fri Aug 31 04:45:39 PDT 2018


Fair enough, I gave an example with a simple workaround. :)

But you do have a point there, if I'm getting you answer right on a broader
level.
Is it something like this?

> Instead of setting the environment only once and running bitbake multiple
times
> just make the environment sourcing and bitbake execution an atomic
operation.


So if I wanted to automate i.e.:

. oe-init-build-env mybuild
bitbake -c cleanall failure_prone_package
bitbake failure_prone_package
bitbake foo #image build

It's fine to do it like this:

subprocess.call(". oe-init-build-env mybuild ; bitbake -c cleanall
failure_prone_package", shell=True)
subprocess.call(". oe-init-build-env mybuild ; bitbake failure_prone_package",
shell=True)
subprocess.call(". oe-init-build-env mybuild ; bitbake foo", shell=True)















On Fri, Aug 31, 2018 at 1:30 PM, Burton, Ross <ross.burton at intel.com> wrote:

> On 31 August 2018 at 12:24, Alan Martinovic <alan.martinovic at senic.com>
> wrote:
> > Thanks Ross
> > this is what more or less what I'm doing.
> > What I haven't found a way to do from python is making modifications from
> > the initialized build directory.
> >
> > I'd like to do that to change things in conf/local.conf.
> > For example generate DISTRO_VERSION from git describe --tags
> >
> > That is something that needs to happen in between
> > . oe-init-build-env  and bitbake foo
>
> subprocess.call(". oe-init-build-env mybuild", shell=True)
> # call git-desribe, write to mybuild/conf/auto.conf
> subprocess.call(". oe-init-build-env mybuild ; bitbake foo", shell=True)
>
> Ross
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180831/4cb320d0/attachment-0001.html>


More information about the yocto mailing list