Adding metadata to the layer
Layer metadata can serve two goals – add new software, or feature and modify existing metadata.
We can include several metadata files on a new layer, such as recipes, images, and bbappend
files. There are several examples of bbappend
files on meta-yocto-bsp
and meta-yocto
. We will explore some of their common uses in Chapter 13, Customizing Existing Recipes.
In the next sections, we will go through some common modifications to layer metadata.
Creating an image
Image files are, in essence, a set of packages grouped for a purpose and configured in a controlled way. We can create an image from scratch or create one by reusing an existing one and adding the extra necessary packages.
We should reuse an existing image when possible, making code maintenance more manageable and highlighting the functional differences. For example, we may want to include an application and remove an image feature from the core-image-full-cmdline
image file...