Skip to contentSkip to conversation

can i blacklist a particular .bbclass file when there are more than one?

DISCUSSION Robert P. J. Day 3 participants 3 messages Apr 30, 2020 – May 4, 2020

lore
Share & tools
lore
#0 lore raw

given an odd collection of layers wherein there are multiple
instances of a particular .bbclass file, it turns out that all of the recipes i'm interested in build with an older version of the class file, and all but one build consulting the newer form of the file contained in another layer, so is there any way to blacklist a particular class file, either globally or even on a per-recipe basis?

i realize this is really, really bad design style, but it will give
me the chance to use the proper class file for most of the recipes while i debug the problematic recipe.

rday

#1 lore raw
Quoted 11 lines · Robert P. J. Day

given an odd collection of layers wherein there are multiple
instances of a particular .bbclass file, it turns out that all of the recipes i'm interested in build with an older version of the class file, and all but one build consulting the newer form of the file contained in another layer, so is there any way to blacklist a particular class file, either globally or even on a per-recipe basis?

i realize this is really, really bad design style, but it will give
me the chance to use the proper class file for most of the recipes while i debug the problematic recipe.

The order of BBLAYERS in bblayers.conf affects which class will be used globally for the build. Don't believe can be done per-recipe.

BTW, would these generic questions better belong to yocto list istead of openembedded-core?

Signature · 1 line
Denys
#2 lore raw
Quoted 9 lines · Denys Dmytriyenko
Quoted 8 lines · Robert P. J. Day

given an odd collection of layers wherein there are multiple
instances of a particular .bbclass file, it turns out that all of the recipes i'm interested in build with an older version of the class file, and all but one build consulting the newer form of the file contained in another layer, so is there any way to blacklist a particular class file, either globally or even on a per-recipe basis?

Quoted 7 lines
Quoted 3 lines

i realize this is really, really bad design style, but it will give
me the chance to use the proper class file for most of the recipes while i debug the problematic recipe.

The order of BBLAYERS in bblayers.conf affects which class will be used globally for the build. Don't believe can be done per-recipe.

To be exact, the order in BBPATH will be used to get the class. It defaults to BBPATH .= in conf/layer.conf so that the actual order of parsing of layers (given in bblayers.conf) matters because all append to BBPATH but you could prepend to it in one of your layer so that it has higher priority than anything else.

To answer your question, maybe there is some trickery possible per machine or distro for bbpath but I wouldn't count on it.

Quentin