[OE-core] more pedantry -- looking to clarify layers definition, BBPATH, BBFILES, etc.

Paul Eggleton paul.eggleton at linux.intel.com
Mon Jul 9 21:23:59 UTC 2012


On Monday 09 July 2012 16:34:20 Robert P. J. Day wrote:
> On Mon, 9 Jul 2012, Andrei Gherzan wrote:
> > It's all about the order the files are searched. As long as you have
> > proper priority set nothing can go wrong.
> 
>   but what if two or more layers have the same priority?  then what?
> it may be that there's no issue here, i'm just pointing out the
> possibility that, given the inconsistent way layers add themelves to
> BBPATH (either prepending or appending) and the order one lists the
> layers in bblayers.conf, is there absolutely no chance that someone
> could experience unexpected behaviour given an unusual combination of
> circumstances?

To avoid confusion, layer priorities are only applicable with regard to 
recipes/bbappends. To respond to your question, if two layers have the same 
priority (which is legal) then if there is a situation where a recipe file is 
provided by both layers, which one "wins" will depend on the order they appear 
in bblayers.conf.

The BBPATH variable is completely independent of this, and is the path that is 
used to find conf and bbclass files; however, the order in which the appends / 
prepends will be applied is of course the order in which they are parsed, 
which is the order in which they appear in bblayers.conf. Most layers should 
be appending to BBPATH rather than prepending but there may be exceptions.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre




More information about the Openembedded-core mailing list