Making a new layer
Before creating our layer, it’s always a good idea to check whether a similar one is already available at the following website: http://layers.openembedded.org.
If we are still looking for a layer suitable for our needs, the next step is to create the directory. Usually, the layer name starts with meta-
, but this is not a technical restriction.
The <layer>/conf/layer.conf
file is the layer configuration file required for every layer. The new layer can be created with a tool called bitbake-layers
from BitBake, provided in Poky, as shown in the following command:
![Figure 12.1 – Creating a new layer using bitbake-layers](https://static.packt-cdn.com/products/9781804615065/graphics/image/Figure_12.01_B19361.jpg)
Figure 12.1 – Creating a new layer using bitbake-layers
After creating the layer, we need to include it in the build/conf/bblayers.conf
file using the following command:
![Figure 12.2 – Adding meta-newlayer to build/conf/bblayers.conf](https://static.packt-cdn.com/products/9781804615065/graphics/image/Figure_12.02_B19361.jpg)
Figure 12.2 – Adding meta-newlayer to build/conf/bblayers.conf
Tip
The bitbake-layers
tool, by default, generates the layer with layer priority...