Skip to content

Make a Yocto Layer

Working in the tmp directory of your build is fine for testing out new stuff and making small adjustments. But you want to make your changes easily reproducable and retracable, especially when you are working with other developers on the same project. Making your own layer will achieve exactly that. You can easily make changes to your build, and making your layer a git repository will make it retracable and easily distributable to other developers.

1. Making your own layer

After initializing your shell with the the source setup-environment build_x11 command, we will switch to the sources directory, make our layer, and add it to the build.

cd ../sources
bitbake-layers create-layer <your-layer-name>
cd ../build_x11
bitbake-layers add-layer ../sources/<your-layer-name>

That's it, you've made your own layer!