Hi Haim,

On 11/7/24 12:32 PM, Haimbach via Lists.Yoctoproject.Org wrote:
Hi,

I have layer which I add into it some patches and configuration files for the 
RT PATCH.

So I need for an example the RT patch for "Image-A", and for "Image-B" I don't 
need it.


You probably want a DISTRO here.

The issue is the image cannot decide which kernel to build for example. So if you have two kernel recipes, one RT and the other one non-RT, then you need a different mechanism. The selection is usually made via PREFERRED_PROVIDER_virtual/kernel = "<your-recipe-name>" and since recipes cannot impact other recipes and that an image recipe is a recipe, that variable needs to be set in a conf file (distro, machine, local, bblayers, etc...).

By having it in a distro conf file (let's say mydistro and mydistro-rt), you can then build your image-A without RT by using DISTRO=mydistro and image-B with RT by using DISTRO=mydistro-rt.

Additionally, your recipes can now decide to apply the patches only for the mydistro-rt by using the OVERRIDES mechanism:

SRC_URI:append:mydistro-rt = " file://rt.patch"

If you can provide the recipes, layers and content of the patches, we may be able to guide you better.

Cheers,
Quentin
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#64230): https://lists.yoctoproject.org/g/yocto/message/64230
Mute This Topic: https://lists.yoctoproject.org/mt/109440102/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to