How can I make recipes conditionally enabled?
Hello,
I have a question about a problem I've had several times in the past:
if I write a layer, and add .bbappends, then the layers with the corresponding .bb files become hard dependencies. But lets say I want to write a BSP layer, and I add some machine specific Qt5 patches. Now everybody who wants to use my layer must also include meta-qt5, even when they don't really want to use Qt5 anywhere. This is made even worse if I have a dependency on meta-oe, which itself brings in a lot of modifications.
In short, I'd like to be able to make .bbappends and .bb files dependend on whether or not a layer is available. The hard dependency is fine if it concerns things that are essential in my layer. But if its about optional things, it shouldn't cause a build failure.
Thoughts?
Quoted 13 lines · Carlos Rafael Giani
Hello,
I have a question about a problem I've had several times in the past:
if I write a layer, and add .bbappends, then the layers with the corresponding .bb files become hard dependencies.
But lets say I want to write a BSP layer, and I add some machine specific Qt5 patches. Now everybody who wants to use
my layer must also include meta-qt5, even when they don't really want to use Qt5 anywhere. This is made even worse
if I have a dependency on meta-oe, which itself brings in a lot of modifications.
Quoted 5 lines
In short, I'd like to be able to make .bbappends and .bb files dependend on whether or not a layer is available. The hard
dependency is fine if it concerns things that are essential in my layer. But if its about optional things, it shouldn't cause
a build failure.
BB_DANGLINGAPPENDS_WARNONLY is the magic word.
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Hi,
Quoted 14 lines · Martin Jansa
Quoted 13 lines · Carlos Rafael Giani
Hello,
I have a question about a problem I've had several times in the past:
if I write a layer, and add .bbappends, then the layers with the corresponding .bb files become hard dependencies.
But lets say I want to write a BSP layer, and I add some machine specific Qt5 patches. Now everybody who wants to use
my layer must also include meta-qt5, even when they don't really want to use Qt5 anywhere. This is made even worse
if I have a dependency on meta-oe, which itself brings in a lot of modifications.
Quoted 7 lines
Quoted 5 lines
In short, I'd like to be able to make .bbappends and .bb files dependend on whether or not a layer is available. The hard
dependency is fine if it concerns things that are essential in my layer. But if its about optional things, it shouldn't cause
a build failure.
BB_DANGLINGAPPENDS_WARNONLYis the magic word.
I also saw some nice use of inspecting BBFILE_COLLECTIONS in the layer configuration done by Mentor, see
http://git.yoctoproject.org/cgit/cgit.cgi/meta-mentor/tree/conf/layer.conf#n9
Then you would place the files you only want to enable for e.g. meta-qt5 in a qt5-layer directory in your layer. Those files would then just be used if BBFILE_COLLECTIONS contains qt5-layer, which is only the case if you have added meta-qt5.
I know meta-fsl-arm uses this for meta-qt5 bbappends.
Cheers,
Erik Botö
Quoted 9 lines
--
Martin 'JaMa' Jansa jabber: [email protected]_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 29 lines · Erik Botö
Hi,
Quoted 14 lines · Martin Jansa
Quoted 13 lines · Carlos Rafael Giani
Hello,
I have a question about a problem I've had several times in the past:
if I write a layer, and add .bbappends, then the layers with the corresponding .bb files become hard dependencies.
But lets say I want to write a BSP layer, and I add some machine specific Qt5 patches. Now everybody who wants to use
my layer must also include meta-qt5, even when they don't really want to use Qt5 anywhere. This is made even worse
if I have a dependency on meta-oe, which itself brings in a lot of modifications.Quoted 7 lines
Quoted 5 lines
In short, I'd like to be able to make .bbappends and .bb files dependend on whether or not a layer is available. The hard
dependency is fine if it concerns things that are essential in my layer. But if its about optional things, it shouldn't cause
a build failure.
BB_DANGLINGAPPENDS_WARNONLYis the magic word.I also saw some nice use of inspecting
BBFILE_COLLECTIONSin the layer configuration done by Mentor, see
http://git.yoctoproject.org/cgit/cgit.cgi/meta-mentor/tree/conf/layer.conf#n9
Quoted 6 lines
Then you would place the files you only want to enable for e.g. meta-qt5 in a qt5-layer directory in your layer. Those files would then just be used if
BBFILE_COLLECTIONScontains qt5-layer, which is only the case if you have added meta-qt5.I know meta-fsl-arm uses this for meta-qt5 bbappends.
Something similar was also used in meta-systemd layer (you need to check older revision than 8b465f791a5ef3d9ef138a206c6fb9c3bbcb55b1)
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]