* Use of BBPATH in a layer.conf file.
@ 2012-12-02 22:51 Scott Garman
2012-12-02 23:24 ` Paul Eggleton
2012-12-03 17:43 ` Tomas Frydrych
0 siblings, 2 replies; 8+ messages in thread
From: Scott Garman @ 2012-12-02 22:51 UTC (permalink / raw)
To: yocto@yoctoproject.org
Hey folks,
Robert Day has brought up an inconsistency in the way we append to
BBPATH within a couple of our layer.conf files.
In meta-hob, meta-yocto-bsp, and meta-intel, we do:
BBPATH := "${BBPATH}:${LAYERDIR}"
but in meta-yocto, we do:
BBPATH := "${LAYERDIR}:${BBPATH}"
Unless someone explains to me that it's necessary to use this different
ordering in meta-yocto's layer.conf, I will submit a patch to make this
more consistent.
Scott
--
Scott Garman
Embedded Linux Engineer - Yocto Project
Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Use of BBPATH in a layer.conf file.
2012-12-02 22:51 Use of BBPATH in a layer.conf file Scott Garman
@ 2012-12-02 23:24 ` Paul Eggleton
2012-12-02 23:35 ` Scott Garman
2012-12-03 17:43 ` Tomas Frydrych
1 sibling, 1 reply; 8+ messages in thread
From: Paul Eggleton @ 2012-12-02 23:24 UTC (permalink / raw)
To: Scott Garman, yocto
On Sunday 02 December 2012 14:51:28 Scott Garman wrote:
> Robert Day has brought up an inconsistency in the way we append to
> BBPATH within a couple of our layer.conf files.
>
> In meta-hob, meta-yocto-bsp, and meta-intel, we do:
>
> BBPATH := "${BBPATH}:${LAYERDIR}"
>
> but in meta-yocto, we do:
>
> BBPATH := "${LAYERDIR}:${BBPATH}"
>
> Unless someone explains to me that it's necessary to use this different
> ordering in meta-yocto's layer.conf, I will submit a patch to make this
> more consistent.
I think it actually ought to be:
BBPATH .= ":${LAYERDIR}"
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Use of BBPATH in a layer.conf file.
2012-12-02 23:24 ` Paul Eggleton
@ 2012-12-02 23:35 ` Scott Garman
2012-12-02 23:37 ` Paul Eggleton
0 siblings, 1 reply; 8+ messages in thread
From: Scott Garman @ 2012-12-02 23:35 UTC (permalink / raw)
To: Paul Eggleton; +Cc: yocto
On 12/02/2012 03:24 PM, Paul Eggleton wrote:
> On Sunday 02 December 2012 14:51:28 Scott Garman wrote:
>> Robert Day has brought up an inconsistency in the way we append to
>> BBPATH within a couple of our layer.conf files.
>>
>> In meta-hob, meta-yocto-bsp, and meta-intel, we do:
>>
>> BBPATH := "${BBPATH}:${LAYERDIR}"
>>
>> but in meta-yocto, we do:
>>
>> BBPATH := "${LAYERDIR}:${BBPATH}"
>>
>> Unless someone explains to me that it's necessary to use this different
>> ordering in meta-yocto's layer.conf, I will submit a patch to make this
>> more consistent.
>
> I think it actually ought to be:
>
> BBPATH .= ":${LAYERDIR}"
Oh? Would this apply just to meta-yocto or all layer.conf files?
Scott
--
Scott Garman
Embedded Linux Engineer - Yocto Project
Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Use of BBPATH in a layer.conf file.
2012-12-02 23:35 ` Scott Garman
@ 2012-12-02 23:37 ` Paul Eggleton
2012-12-03 8:16 ` Robert P. J. Day
0 siblings, 1 reply; 8+ messages in thread
From: Paul Eggleton @ 2012-12-02 23:37 UTC (permalink / raw)
To: Scott Garman; +Cc: yocto
On Sunday 02 December 2012 15:35:54 you wrote:
> On 12/02/2012 03:24 PM, Paul Eggleton wrote:
> > On Sunday 02 December 2012 14:51:28 Scott Garman wrote:
> >> Robert Day has brought up an inconsistency in the way we append to
> >> BBPATH within a couple of our layer.conf files.
> >>
> >> In meta-hob, meta-yocto-bsp, and meta-intel, we do:
> >>
> >> BBPATH := "${BBPATH}:${LAYERDIR}"
> >>
> >> but in meta-yocto, we do:
> >>
> >> BBPATH := "${LAYERDIR}:${BBPATH}"
> >>
> >> Unless someone explains to me that it's necessary to use this different
> >> ordering in meta-yocto's layer.conf, I will submit a patch to make this
> >> more consistent.
> >
> > I think it actually ought to be:
> >
> > BBPATH .= ":${LAYERDIR}"
>
> Oh? Would this apply just to meta-yocto or all layer.conf files?
All, really. Functionally it makes no real difference, but I think it's
preferred stylistically based on previous discussions.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Use of BBPATH in a layer.conf file.
2012-12-02 23:37 ` Paul Eggleton
@ 2012-12-03 8:16 ` Robert P. J. Day
2012-12-03 10:34 ` Paul Eggleton
0 siblings, 1 reply; 8+ messages in thread
From: Robert P. J. Day @ 2012-12-03 8:16 UTC (permalink / raw)
To: Paul Eggleton; +Cc: yocto, Scott Garman
On Sun, 2 Dec 2012, Paul Eggleton wrote:
> On Sunday 02 December 2012 15:35:54 you wrote:
> > On 12/02/2012 03:24 PM, Paul Eggleton wrote:
> > > On Sunday 02 December 2012 14:51:28 Scott Garman wrote:
> > >> Robert Day has brought up an inconsistency in the way we append to
> > >> BBPATH within a couple of our layer.conf files.
> > >>
> > >> In meta-hob, meta-yocto-bsp, and meta-intel, we do:
> > >>
> > >> BBPATH := "${BBPATH}:${LAYERDIR}"
> > >>
> > >> but in meta-yocto, we do:
> > >>
> > >> BBPATH := "${LAYERDIR}:${BBPATH}"
> > >>
> > >> Unless someone explains to me that it's necessary to use this different
> > >> ordering in meta-yocto's layer.conf, I will submit a patch to make this
> > >> more consistent.
> > >
> > > I think it actually ought to be:
> > >
> > > BBPATH .= ":${LAYERDIR}"
> >
> > Oh? Would this apply just to meta-yocto or all layer.conf files?
>
> All, really. Functionally it makes no real difference, but I think it's
> preferred stylistically based on previous discussions.
hang on ... i thought the ordering of BBPATH would affect the
processing of "include" directives. no?
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Use of BBPATH in a layer.conf file.
2012-12-03 8:16 ` Robert P. J. Day
@ 2012-12-03 10:34 ` Paul Eggleton
0 siblings, 0 replies; 8+ messages in thread
From: Paul Eggleton @ 2012-12-03 10:34 UTC (permalink / raw)
To: Robert P. J. Day; +Cc: yocto
On Monday 03 December 2012 03:16:10 Robert P. J. Day wrote:
> On Sun, 2 Dec 2012, Paul Eggleton wrote:
> > On Sunday 02 December 2012 15:35:54 you wrote:
> > > On 12/02/2012 03:24 PM, Paul Eggleton wrote:
> > > > On Sunday 02 December 2012 14:51:28 Scott Garman wrote:
> > > >> Robert Day has brought up an inconsistency in the way we append to
> > > >> BBPATH within a couple of our layer.conf files.
> > > >>
> > > >> In meta-hob, meta-yocto-bsp, and meta-intel, we do:
> > > >>
> > > >> BBPATH := "${BBPATH}:${LAYERDIR}"
> > > >>
> > > >> but in meta-yocto, we do:
> > > >>
> > > >> BBPATH := "${LAYERDIR}:${BBPATH}"
> > > >>
> > > >> Unless someone explains to me that it's necessary to use this
> > > >> different
> > > >> ordering in meta-yocto's layer.conf, I will submit a patch to make
> > > >> this
> > > >> more consistent.
> > > >
> > > > I think it actually ought to be:
> > > >
> > > > BBPATH .= ":${LAYERDIR}"
> > >
> > > Oh? Would this apply just to meta-yocto or all layer.conf files?
> >
> > All, really. Functionally it makes no real difference, but I think it's
> > preferred stylistically based on previous discussions.
>
> hang on ... i thought the ordering of BBPATH would affect the
> processing of "include" directives. no?
Yes, it does. What I mean is, functionally _within layer.conf_ the following
two are equivalent:
BBPATH := "${BBPATH}:${LAYERDIR}"
BBPATH .= ":${LAYERDIR}"
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Use of BBPATH in a layer.conf file.
2012-12-02 22:51 Use of BBPATH in a layer.conf file Scott Garman
2012-12-02 23:24 ` Paul Eggleton
@ 2012-12-03 17:43 ` Tomas Frydrych
2012-12-03 18:59 ` Scott Garman
1 sibling, 1 reply; 8+ messages in thread
From: Tomas Frydrych @ 2012-12-03 17:43 UTC (permalink / raw)
To: yocto
On 02/12/12 22:51, Scott Garman wrote:
> Robert Day has brought up an inconsistency in the way we append to
> BBPATH within a couple of our layer.conf files.
>
> In meta-hob, meta-yocto-bsp, and meta-intel, we do:
>
> BBPATH := "${BBPATH}:${LAYERDIR}"
>
> but in meta-yocto, we do:
>
> BBPATH := "${LAYERDIR}:${BBPATH}"
>
> Unless someone explains to me that it's necessary to use this different
> ordering in meta-yocto's layer.conf, I will submit a patch to make this
> more consistent.
This meta-yocto setup is intentional (there was thread about that a
while back). meta-yocto is a distro layer, and for any distro layer it
is reasonable to enforce its own precedence over any other layers is may
use, and meta-yocto chooses to do this. Non-distro layers, including all
bsp layers, are expected to always use an append operation so that they
can be stacked together.
Tomas
--
http://sleepfive.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Use of BBPATH in a layer.conf file.
2012-12-03 17:43 ` Tomas Frydrych
@ 2012-12-03 18:59 ` Scott Garman
0 siblings, 0 replies; 8+ messages in thread
From: Scott Garman @ 2012-12-03 18:59 UTC (permalink / raw)
To: yocto
On 12/03/2012 09:43 AM, Tomas Frydrych wrote:
> On 02/12/12 22:51, Scott Garman wrote:
>> Robert Day has brought up an inconsistency in the way we append to
>> BBPATH within a couple of our layer.conf files.
>>
>> In meta-hob, meta-yocto-bsp, and meta-intel, we do:
>>
>> BBPATH := "${BBPATH}:${LAYERDIR}"
>>
>> but in meta-yocto, we do:
>>
>> BBPATH := "${LAYERDIR}:${BBPATH}"
>>
>> Unless someone explains to me that it's necessary to use this different
>> ordering in meta-yocto's layer.conf, I will submit a patch to make this
>> more consistent.
>
> This meta-yocto setup is intentional (there was thread about that a
> while back). meta-yocto is a distro layer, and for any distro layer it
> is reasonable to enforce its own precedence over any other layers is may
> use, and meta-yocto chooses to do this. Non-distro layers, including all
> bsp layers, are expected to always use an append operation so that they
> can be stacked together.
Thanks for the concise explanation.
Scott
--
Scott Garman
Embedded Linux Engineer - Yocto Project
Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-12-03 18:59 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-02 22:51 Use of BBPATH in a layer.conf file Scott Garman
2012-12-02 23:24 ` Paul Eggleton
2012-12-02 23:35 ` Scott Garman
2012-12-02 23:37 ` Paul Eggleton
2012-12-03 8:16 ` Robert P. J. Day
2012-12-03 10:34 ` Paul Eggleton
2012-12-03 17:43 ` Tomas Frydrych
2012-12-03 18:59 ` Scott Garman
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.