From ProventusNova DeveloperWiki
Line 15: | Line 15: | ||
===Step 1. Add base layer.conf file=== |
===Step 1. Add base layer.conf file=== |
||
The layer configuration file provides Yocto with the configuration for the custom meta-layer. |
|||
It shall be stored in a directory called '''conf''' inside the base meta-layer directory, and it shall be named layer.conf. |
|||
According to the [https://docs.yoctoproject.org/dev/dev-manual/layers.html Yocto documentation] it is recommended to start from an existing layer.conf file from a different meta-layer and change it according to the custom requirements. |
|||
For instance, here is an example of how the directory structure should look after creating the layer.conf file. |
|||
<syntaxhighlight lang="bash"> |
|||
#!/bin/bash |
|||
echo "Hello, World!" |
|||
ls -l /home/user |
|||
</syntaxhighlight> |
|||
===Step 2. Add base distro config=== |
===Step 2. Add base distro config=== |
Revision as of 16:23, 11 March 2025
Introduction
This wiki will provide a detailed guide on how to create a custom Yocto meta-layer.
Create Base Meta-Layer
This section contains steps to create the base custom meta-layer. After completion, the custom base meta-layer will contain the following parts:
- Custom layer configuration
- Custom distro configuration
- Custom machine
- Custom config template files
- Custom image recipe
Step 1. Add base layer.conf file
The layer configuration file provides Yocto with the configuration for the custom meta-layer. It shall be stored in a directory called conf inside the base meta-layer directory, and it shall be named layer.conf. According to the Yocto documentation it is recommended to start from an existing layer.conf file from a different meta-layer and change it according to the custom requirements.
For instance, here is an example of how the directory structure should look after creating the layer.conf file.
#!/bin/bash
echo "Hello, World!"
ls -l /home/user