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

Burton, Ross ross.burton at intel.com
Fri Aug 31 04:02:16 PDT 2018


On 31 August 2018 at 11:57, Alexander Kanavin <alex.kanavin at gmail.com> wrote:
> 2018-08-31 12:49 GMT+02:00 Alan Martinovic <alan.martinovic at senic.com>:
>> am just in the process of forming a base for automated nightly builds.
>> The goal is to have the build process run every night and report what
>>  the status was.
>>
>> I've opted for python for all the conditionals and checks  and then have
>> external
>> bash scripts that actually sets the environment and invokes bitbake.
>>
>> Did it like that because I didn't find a clean way so far to deal with
>>
>>     source oe/oe-init-build-env
>>
>> from python.
>>
>>
>> Would like to hear how did you script bitbake and how does your setup look
>> like?
>
> I guess you should look at what the Yocto project itself is using:
>
> http://git.yoctoproject.org/cgit.cgi/yocto-autobuilder2/about/
> http://git.yoctoproject.org/cgit.cgi/yocto-autobuilder-helper/about/

Alex beat me to do this, but if you want something that does a lot
less then this is actually really simple:

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

Just use shell=True and invoke init-build-env every time you call bitbake.

Ross


More information about the yocto mailing list