Skip to contentSkip to conversation

How to use a single directory in multiple layers.

yocto Saswati Nayak 2 participants 2 messages Mar 14, 2024 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hello Alexander,

My scenario will be , Suppose I am having a layer meta-A and in this layer some directories structure is there such as recipes-bsp, recipes-kernel etc. in recipes-bsp I have a recipe atf_1.0.bb which has few keys which are stored in files directory.
and being used in meta-A also and meta-B also having the same recipe-bsp which also need the same file to be used.
How we can use the same files keeping it only in the *meta-A/recipes-bsp*
directory.
Can you suggest some idea.

Thanks
Saswati

Quoted 24 lines · Saswati Nayak via lists.yoctoproject.org

Hello All,

I require guidance on utilizing a file directory present in the
'meta-x' layer while also needing access to the same directory within the 'meta-y' layer.

How can I achieve this while keeping the directory centralized in one layer?

Thanks & Regards
Saswati

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

#2 lore raw
Quoted 5 lines · Saswati Nayak

My scenario will be , Suppose I am having a layer meta-A and in this layer some directories structure is there such as recipes-bsp, recipes-kernel etc. in recipes-bsp I have a recipe atf_1.0.bb which has few keys which are stored in files directory.
and being used in meta-A also and meta-B also having the same recipe-bsp which also need the same file to be used.
How we can use the same files keeping it only in the meta-A/recipes-bsp directory.
Can you suggest some idea.

You can ensure that atf recipe installs the key files via do_install(), and then if other recipes list atf in DEPENDS, then they will have what it installs in their sysroots under ${WORKDIR}/. There are a few details that need to be right, but this is the overall approach I'd take.

Alex