Adding Layers - 2020.2 English

PetaLinux Tools Documentation Reference Guide (UG1144)

Document ID
Release Date
2020.2 English

You can add layers into the PetaLinux project. The upstream layers for ZEUS version can be found

The following steps demonstrate adding the meta-my layer into the PetaLinux project.

  1. Copy or create a layer in <proj_root>/project-spec/meta-mylayer.
  2. Run petalinux-config > Yocto Settings > User Layers.
  3. Enter the following:
  4. Save and exit.
  5. 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).