How to do it...

  1. To build an image, we need to configure the machine we are building it for and pass its name to BitBake. For example, for the qemuarm machine, we would run the following:
$ cd /opt/yocto/poky/
$ source /opt/yocto/poky/oe-init-build-env qemuarm
$ MACHINE=qemuarm bitbake core-image-minimal
  1. Or we could export the MACHINE variable to the current shell environment before sourcing the oe-init-build-env script with the following:
$ export MACHINE=qemuarm 
  1. On an already configured project, we could also edit the conf/local.conf configuration file to change the default machine to qemuarm:
- #MACHINE ?= "qemuarm"
+ MACHINE ?= "qemuarm"
  1. Then, after setting up the environment, we execute the following:
$ bitbake core-image-minimal

With the preceding steps, BitBake will launch the build process for the specified target image.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset