From: Gary Thomas <gary@mlbassoc.com>
To: yocto@yoctoproject.org
Subject: Re: setting of BBPATH differs between ref manual and actual layer.conf file
Date: Wed, 21 Mar 2012 05:23:07 -0600 [thread overview]
Message-ID: <4F69BA1B.8030500@mlbassoc.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1203210710090.2402@oneiric>
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
------------------------------------------------------------
next prev parent reply other threads:[~2012-03-21 11:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-21 11:08 setting of BBPATH differs between ref manual and actual layer.conf file Robert P. J. Day
2012-03-21 11:12 ` Robert P. J. Day
2012-03-21 11:23 ` Gary Thomas [this message]
2012-03-21 14:24 ` Paul Eggleton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F69BA1B.8030500@mlbassoc.com \
--to=gary@mlbassoc.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.