On 31 August 2018 at 11:57, Alexander Kanavin <alex.kana...@gmail.com> wrote: > 2018-08-31 12:49 GMT+02:00 Alan Martinovic <alan.martino...@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 -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto