bitbake shell - FrankBau/meta-marsboard-bsp GitHub Wiki

The Yocto Project uses the OpenEmbedded bitbake mechanism to build things (images, packages, ...).

Prerequisites: you have set up a Linux build host and installed the Freescale Community BSP Source Code as desribed in Setting up the Build Environment.

In a terminal window, go to the top-level folder of the installed Yocto build environment (like /home/username/fsl-community-bsp).

For the very first time (when there is no build folder yet) enter:

$ export MACHINE=marsboard
$ source setup-environment build

this will

  • ask you to accept a Freescale EULA
  • create the build folder where all build results are written to
  • create the downloads folder where all downloads are cached
  • create the build/conf/local.conf file containing the local configuration (like the MACHINE name)
  • create the build/conf/bblayers.conf file describing the bitbake layer structure
  • create some more files and set environment variables like PATH

ls shows:

.
├── build                  <---- config files, bitbake artefacts (including images, extracted package sources,...)
├── downloads              <---- download cache for packages source archives
├── README
├── setup-environment
└── sources                <---- all bitbake layers (meta-*) and recipes (.bb)

For repeated use (when build is already present), simply enter:

$ source setup-environment build

The existing folder structure will not be changed, but some environment variables will be set.

Do not forget the source because you want to change the environment of the current shell.

The MACHINE name can also be set later by editing the file local.conf in the build/conf folder.