You could do:

RRECOMMENDS_${PN} += "networkmanager-custom-config”

in networkmanager_%.bbappend, and then:

COMPATIBLE_MACHINE = "<your machine>"

In the networkmanager-custom-config recipe. That should not cause the 
networkmanager recipe to become machine specific, but it will still pull in 
your configuration for your machine.

//Peter

From: [email protected] <[email protected]> On Behalf Of 
Nicolas Dechesne
Sent: den 21 mars 2020 09:37
To: [email protected]
Subject: [yocto] Include B in image only if A is used

hi,

what would be the proper/best mechanism to enforce that package_B is included 
in an image only if package_A is also included? This is mostly a 'BSP' fixup. 
My current need is that for a given machine, we need a custom/specific 
networkmanager configuration file. So I would like from the BSP layer to ensure 
that if anyone builds an image with networkmanager, then my 
networkmanager-custom-config package is also added.

of course, I can do a bbappend, but that make networkmanager 'machine' 
specific.. is there anything else that could be done from the BSP layer? Any 
existing hook or event I could use?

thanks!
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#48882): https://lists.yoctoproject.org/g/yocto/message/48882
Mute This Topic: https://lists.yoctoproject.org/mt/72441137/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to