Specifying MACHINE when setting up build environment
Is there a way to specify what MACHINE is put into local.conf when first setting up the build directory with oe-init-build-env?
I have my own TEMPLATECONF which I use, but I'd like to be able to set the MACHINE on the command line rather than having to then modify local.conf
Hi,
Am 13.01.2018 um 18:07 schrieb [email protected]:
Quoted 4 lines
Is there a way to specify what MACHINE is put into local.conf when first setting up the build directory with oe-init-build-env?
I have my own TEMPLATECONF which I use, but I'd like to be able to set the MACHINE on the command line rather than having to then modify local.conf
If it would suit your needs to specify the MACHINE on every bitbake call, try
$ MACHINE=<machine> bitbake <image-recipe>
e. g.
$ MACHINE=qemuarm bitbake core-image-minimal
If your want to use QEMU, you can use
$ env DEPLOY_DIR_IMAGE=<image_dir> runqemu
Not sure if the 'env' is needed though.
Regards,
Jan
Quoted 18 lines · On 13 January 2018 at 18:52 Jan Siegmund wrote:
Hi,
Am 13.01.2018 um 18:07 schrieb [email protected]:
Quoted 4 lines
Is there a way to specify what MACHINE is put into local.conf when first setting up the build directory with oe-init-build-env?
I have my own TEMPLATECONF which I use, but I'd like to be able to set the MACHINE on the command line rather than having to then modify local.confIf it would suit your needs to specify the MACHINE on every bitbake call, try
$ MACHINE= bitbakee. g.
Quoted 8 lines
$ MACHINE=qemuarm bitbake core-image-minimalIf your want to use QEMU, you can use
$ env DEPLOY_DIR_IMAGE= runqemuNot sure if the 'env' is needed though.
Thanks Jan. I don't want to have to include MACHINE on every bitbake cmd line though - just have it placed into the local.conf the first time the build dir is set up by oe-init-build-env.
Quoted 6 lines · On 01/14/2018 01:07 AM, [email protected] wrote:
Is there a way to specify what MACHINE is put into local.conf when first setting up the build directory with oe-init-build-env?
I have my own TEMPLATECONF which I use, but I'd like to be able to set the MACHINE on the command line rather than having to then modify local.conf
You can specify a local.conf.sample and have TEMPLATECONF point to the directory with that file in it. Please see scripts/oe-setup-builddir in poky/meta to see how it is picked up.
Thanks,
Anuj