Hi Haim,

On 11/7/24 8:23 AM, Haimbach via lists.yoctoproject.org wrote:
Hello,

I have just wonder if there is an option to exclude specific layer to specific 
images.

For an example, lets says I have 2 images called: *image-A.bb* , *image-B.bb*
And lets says I have the next layer: *meta-my-layer*
this layer is in the list of the bblayers.conf.

Now I want only that *image-A* will include that layer.
But I don't want that *image-B* will include that layer.

Is there a way to achieve this?


No, this is not how BitBake works. Layers are included, then recipes are parsed. An image recipe is a recipe, so you cannot have a recipe remove a layer. Also, a recipe cannot influence another recipe, only configuration files (distro, machine, layer, bblayers, local...) can.

What exactly is in that layer you do not want in image-A that you want in image-B?

Ideally, including a layer should NOT modify anything. If it does, it's usually considered a bad practice layer and one may be able to do stuff smarter (but not necessarily).

I can do it with SRC_URI:remove the contents of the layer in image-B .
*But I want to use more nicer approach.*


What exactly are you trying to do?

Cheers,
Quentin
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#64228): https://lists.yoctoproject.org/g/yocto/message/64228
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