How to add a meta layer to manage modifications

Hello,
I want to create a custom layer to share modifications with other users to align with the same environment.

Hi Kyle,

If you’d like to create a custom layer based on IOT Yocto, you can follow these steps (assuming you’ve already downloaded the IOT Yocto codebase):

  1. Create the custom layer:
    Run

    bitbake-layers create-layer $PROJ_ROOT/src/meta-custom
    

    Make sure you’ve configured the build environment as described in the developer guide before running the command.

  2. Configure the layer:
    Edit meta-custom/conf/layer.conf to adjust the settings as needed.

  3. Add recipes:
    Add any required .bb or .bbappend files to your new layer.

  4. Add the layer to your build:
    Run

    bitbake-layers add-layer $PROJ_ROOT/src/meta-custom
    

    This will add your custom layer to bblayers.conf in your build environment.

  5. (Optional) Verify the layer:
    Run

    bitbake-layers show-layers
    

    to confirm that your layer has been added successfully.

  6. Build your image:
    Run

    bitbake <image name>
    

    to test your changes.

If you’re satisfied with the result, you can simply compress the meta-custom folder and share the tarball with your users for quick, short-term distribution.

For long-term maintenance, it’s recommended to manage your own manifest to track changes to your custom layer.

1 Like

Hello @Kyle,

How is everything going? Welcome to the Forums!

We have been working on a wiki to provide instructions on How To Create A Custom Meta-Layer For MediaTek Genio 510. The steps provided by @ramax.lo work as well, they are a bit of an automated way of creating the meta-layer. However, if you want to have a deeper understanding on how to do it manually and have more control over what your meta-layer has, we would recommend you to take a look at our Wiki.

Hope that helps.
Please do not hesitate to reach out if you require any further support, we would love to help.

best regards,
Andrew
Embedded Software Engineer at ProventusNova