Skip to contentSkip to conversation

Share another use case of layer overrides: world build for specific layer

DISCUSSION ChenQi 2 participants 2 messages Apr 16, 2025

lore
Share & tools
lore

ChenQi

author
#0 lore raw

Hi All,

I sent out this email just to share another use case of layer overrides, which I think is kind of useful.

Some layers depend on a few layers including the oe-core layer. If the layer contains quite a few recipes, how do we do world build for it? Now with layer override support, it's kind of easy.

Take meta-virtualization as an example, adding the following lines to local.conf:

"""
DISALLOW_WORLD_BUILD = "1" DISALLOW_WORLD_BUILD:layer-virtualization-layer = "0" EXCLUDE_FROM_WORLD ?= "${DISALLOW_WORLD_BUILD}" """

Then running `bitbake -k world' will only build recipes for meta-virtualization.

Regards,
Qi

#1 lore raw
Quoted 10 lines · Chen Qi via lists.yoctoproject.org

Hi All,

I sent out this email just to share another use case of layer overrides, which I think is kind of useful.

Some layers depend on a few layers including the oe-core layer. If the layer contains quite a few recipes, how do we do world build for it? Now with layer override support, it's kind of easy.

Quoted 8 lines

Take meta-virtualization as an example, adding the following lines to local.conf:

"""
DISALLOW_WORLD_BUILD = "1" DISALLOW_WORLD_BUILD:layer-virtualization-layer = "0" EXCLUDE_FROM_WORLD ?= "${DISALLOW_WORLD_BUILD}" """

Oh nice idea, I may use this for meta-oe reproducibility test:
https://git.yoctoproject.org/yocto-autobuilder-helper/tree/config.json#n297

Thanks!

Quoted 16 lines

Then running `bitbake -k world' will only build recipes for meta-virtualization.

Regards,
Qi

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#65181): https://lists.yoctoproject.org/g/yocto/message/65181
Mute This Topic: https://lists.yoctoproject.org/mt/112290750/4316185
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 2 lines
Yoann Congal
Smile ECS