You can add layers into the PetaLinux project. The upstream layers for ZEUS version can be found http://layers.openembedded.org/layerindex/branch/zeus/layers/.
The following steps demonstrate adding the meta-my layer into the PetaLinux project.
- Copy or create a layer in <proj_root>/project-spec/meta-mylayer.
- Run .
- Enter the following:
${proot}/project-spec/meta-mylayer
- Save and exit.
- Verify by viewing the file in <proj_root>/build/conf/bblayers.conf.
Note: 2020.2 PetaLinux is on ZEUS
base line. The layers/recipes should be chosen from the ZEUS branch only. Some of
the layers/recipes might not be compatible with our architectures. You are
responsible for all additional layers/recipes.
Note: You can also add a layer
that is outside your project; such layers can be shared across projects. Ensure that
the added layer has <layer>/conf/layer.conf; otherwise, it causes build
errors.
Important: If you want
to change the layer priority, you can update ${proot}/project-spec/meta-mylayer/conf/locallayer.conf to set
BBFILE_PRIORITY_meta-mylayer = 6 (0 to 10, higher values have higher
priority).