Hi Jon,
Thank you for the answer.

When making any custom changes in Yocto, your always going to want to
create your own meta layer so that you can keep your changes separate
and so you can revision control your stuff.
Yes, this was sort of intuitive to me. That is how I started to manage my custom project based on Yocto here: https://github.com/Beaglenode/BeagleNodeOs/tree/setup_config

I have created this short script (still under development) that does the preconfigurations (adding or removing layers and so on): https://github.com/Beaglenode/BeagleNodeOs/blob/setup_config/setup.sh

I am not sure whether this is the way to go, but could not figure out any better way with this approach, in which I have my own repo and just use Poky (and 3rd party layers) as git submodules.

The other "method" I have stumbled upon is how it is done with for instance openbmc: https://github.com/openbmc/openbmc

The way I see it, its a fork of Poky which is detached from the yocto repo. This way, any changes can be easily implemented by editing any needed files. Its more feasible when it comes to changes, but it felt somehow "not right" to me.

How do you see this topic and the approach I have taken?

This guide from Toradex seems to do a decent job explaining it all.
Though the names of different recipes will have to be adjusted for the
boneblack.
I will check this out, thank you!

--
Łukasz Przeniosło


------ Original Message ------
From "Jon Cormier" <[email protected]>
To "Lukasz Przenioslo" <[email protected]>
Cc [email protected]
Date 2024-01-02 16:54:49
Subject Re: [meta-ti] Custom dts recipe

When making any custom changes in Yocto, your always going to want to
create your own meta layer so that you can keep your changes separate
and so you can revision control your stuff.

This guide from Toradex seems to do a decent job explaining it all.
Though the names of different recipes will have to be adjusted for the
boneblack.

https://developer.toradex.com/linux-bsp/os-development/build-yocto/custom-meta-layers-recipes-and-images-in-yocto-project-hello-world-examples/#customize-the-kernel

On Thu, Dec 28, 2023 at 11:06 AM Lukasz Przenioslo <[email protected]> wrote:

 Hello,
 For a while now I am trying to create a custom device tree overlay for the 
BBB/ BBG. It doesn't go so well. I started to think whether it would not be 
more feasible to have a custom base dts file instead (just like 
`am335x-bonegreen.dts` or `am335x-boneblack.dts`. Based on one of these 2 files 
I could create, say, `am335x-bonepink.dts`. Assuming this `am335x-bonepink.dts` 
would reside in some dir I have access to, what would be the preffered Poky way 
of implementing it into the build? By that I mean that during bitbake it would 
be compiled to a *.dtb and placed in the boot directory along with the other 
dtb files. Do I need to create a custom recipe/ layer for that and add it to 
the build via `bitbake-layers add-layer`? If yes, how would the steps look like 
in practice (I am quite new to Yocto/ Poky)?

 I would appreciate all feedback!



--
Jonathan Cormier
Software Engineer

Voice:  315.425.4045 x222



http://www.CriticalLink.com
6712 Brooklawn Parkway, Syracuse, NY 13211
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#17375): 
https://lists.yoctoproject.org/g/meta-ti/message/17375
Mute This Topic: https://lists.yoctoproject.org/mt/103402787/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to