[yocto] setting of BBPATH differs between ref manual and actual layer.conf file

Gary Thomas gary at mlbassoc.com
Wed Mar 21 04:23:07 PDT 2012


On 2012-03-21 05:12, Robert P. J. Day wrote:
> On Wed, 21 Mar 2012, Robert P. J. Day wrote:
>
>>
>>    admittedly picky but the ref manual here:
>>
>> http://www.yoctoproject.org/docs/current/poky-ref-manual/poky-ref-manual.html#usingpoky-changes-layers
>>
>> shows a sample setting of BBPATH in yocto's layer.conf:
>>
>>    BBPATH := "${BBPATH}:${LAYERDIR}"
>>
>> however the actual layer.conf for yocto reads:
>>
>>    BBPATH := "${LAYERDIR}:${BBPATH}"
>>
>> should the ordering be consistent here?  should readers be warned
>> about the (admittedly remote) possibility of weirdness if they happen
>> to try to include two layers with the same name?  is that even
>> possible?  does any of this even matter?
>
>    i really hate replying to my own posts because i forgot to do
> something basic, but i did a quick grep:
>
> $ grep -r "BBPATH :=" *
> documentation/dev-manual/dev-manual-common-tasks.xml:     BBPATH := "${LAYERDIR}:${BBPATH}"
> documentation/dev-manual/dev-manual-kernel-appendix.xml:     BBPATH := "${BBPATH}:${LAYERDIR}"
> documentation/bsp-guide/bsp.xml:     BBPATH := "${BBPATH}:${LAYERDIR}"
> meta-hob/conf/layer.conf:BBPATH := "${BBPATH}:${LAYERDIR}"
> meta-skeleton/conf/layer.conf:BBPATH := "${BBPATH}:${LAYERDIR}"
> meta-yocto/conf/layer.conf:BBPATH := "${LAYERDIR}:${BBPATH}"
> $
>
>    so there's a mixture of that ordering.  if there's no real reason
> for that, it should really be consistent so readers don't wonder about
> it.

Indeed it does matter, as does the order that these statements are processed
(which I think is the order the layers are listed in bblayers.conf?)  It can
matter if two layers contain the same .conf file [at least].  I experienced
this when I had two layers with abi_version.conf - actually three: meta,
meta-yocto and meta-MINE - and I got very confused when I removed meta-yocto
from the mix :-(  The ordering of BBPATH isn't as important with recipes
as they use the layer priority mechanism, but if you had two layers with
identical priorities and recipes, it might matter as well.


-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------



More information about the yocto mailing list