* what is the value of 'BBPATH ?= ""' in layer.conf?
@ 2015-11-22 9:10 Robert P. J. Day
2015-11-22 9:17 ` Robert Yang
2015-11-23 14:16 ` Mark Hatle
0 siblings, 2 replies; 5+ messages in thread
From: Robert P. J. Day @ 2015-11-22 9:10 UTC (permalink / raw)
To: OE Core mailing list
perusing some wind river layers, and in the layer.conf file here:
https://github.com/WindRiver-OpenSourceLabs/wr-kernel/blob/LB21_7.0_RCPL0002/conf/layer.conf
i see the opening snippet:
BBPATH ?= ""
# We have a conf and classes directory, add to BBPATH
BBPATH := "${LAYERDIR}:${BBPATH}"
what is the purpose of that initial assignment
BBPATH ?= ""
if that variable has no value, won't it just expand to the empty
string so that the eventual effect is the same? or is there something
more subtle happening here?
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] 5+ messages in thread
* Re: what is the value of 'BBPATH ?= ""' in layer.conf?
2015-11-22 9:10 what is the value of 'BBPATH ?= ""' in layer.conf? Robert P. J. Day
@ 2015-11-22 9:17 ` Robert Yang
2015-11-22 9:29 ` Robert P. J. Day
2015-11-23 14:16 ` Mark Hatle
1 sibling, 1 reply; 5+ messages in thread
From: Robert Yang @ 2015-11-22 9:17 UTC (permalink / raw)
To: Robert P. J. Day, OE Core mailing list
On 11/22/2015 05:10 PM, Robert P. J. Day wrote:
>
> perusing some wind river layers, and in the layer.conf file here:
>
> https://github.com/WindRiver-OpenSourceLabs/wr-kernel/blob/LB21_7.0_RCPL0002/conf/layer.conf
>
> i see the opening snippet:
>
> BBPATH ?= ""
> # We have a conf and classes directory, add to BBPATH
> BBPATH := "${LAYERDIR}:${BBPATH}"
>
> what is the purpose of that initial assignment
>
> BBPATH ?= ""
There would be a warning when BBPATH is null, but that had been fixed,
so we don't need it nowadays.
// Robert
>
> if that variable has no value, won't it just expand to the empty
> string so that the eventual effect is the same? or is there something
> more subtle happening here?
>
> rday
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: what is the value of 'BBPATH ?= ""' in layer.conf?
2015-11-22 9:17 ` Robert Yang
@ 2015-11-22 9:29 ` Robert P. J. Day
2015-11-22 9:38 ` Robert Yang
0 siblings, 1 reply; 5+ messages in thread
From: Robert P. J. Day @ 2015-11-22 9:29 UTC (permalink / raw)
To: Robert Yang; +Cc: OE Core mailing list
On Sun, 22 Nov 2015, Robert Yang wrote:
>
>
> On 11/22/2015 05:10 PM, Robert P. J. Day wrote:
> >
> > perusing some wind river layers, and in the layer.conf file here:
> >
> > https://github.com/WindRiver-OpenSourceLabs/wr-kernel/blob/LB21_7.0_RCPL0002/conf/layer.conf
> >
> > i see the opening snippet:
> >
> > BBPATH ?= ""
> > # We have a conf and classes directory, add to BBPATH
> > BBPATH := "${LAYERDIR}:${BBPATH}"
> >
> > what is the purpose of that initial assignment
> >
> > BBPATH ?= ""
>
> There would be a warning when BBPATH is null, but that had been fixed,
> so we don't need it nowadays.
>
> // Robert
i thought as much, i just wanted to be sure. i am a rabid minimalist
in that, if a line has no value, it should be removed, mostly to avoid
confusing people like me. :-) i noticed at least a couple WR-OSL
layers that had that construct, you can decide if you care enough
about it to clean it up. thanks for the clarifiation.
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] 5+ messages in thread
* Re: what is the value of 'BBPATH ?= ""' in layer.conf?
2015-11-22 9:29 ` Robert P. J. Day
@ 2015-11-22 9:38 ` Robert Yang
0 siblings, 0 replies; 5+ messages in thread
From: Robert Yang @ 2015-11-22 9:38 UTC (permalink / raw)
To: Robert P. J. Day; +Cc: OE Core mailing list
On 11/22/2015 05:29 PM, Robert P. J. Day wrote:
> On Sun, 22 Nov 2015, Robert Yang wrote:
>
>>
>>
>> On 11/22/2015 05:10 PM, Robert P. J. Day wrote:
>>>
>>> perusing some wind river layers, and in the layer.conf file here:
>>>
>>> https://github.com/WindRiver-OpenSourceLabs/wr-kernel/blob/LB21_7.0_RCPL0002/conf/layer.conf
>>>
>>> i see the opening snippet:
>>>
>>> BBPATH ?= ""
>>> # We have a conf and classes directory, add to BBPATH
>>> BBPATH := "${LAYERDIR}:${BBPATH}"
>>>
>>> what is the purpose of that initial assignment
>>>
>>> BBPATH ?= ""
>>
>> There would be a warning when BBPATH is null, but that had been fixed,
>> so we don't need it nowadays.
>>
>> // Robert
>
> i thought as much, i just wanted to be sure. i am a rabid minimalist
> in that, if a line has no value, it should be removed, mostly to avoid
> confusing people like me. :-) i noticed at least a couple WR-OSL
> layers that had that construct, you can decide if you care enough
> about it to clean it up. thanks for the clarifiation.
Thanks, we have cleaned that up in new release.
// Robert
>
> rday
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: what is the value of 'BBPATH ?= ""' in layer.conf?
2015-11-22 9:10 what is the value of 'BBPATH ?= ""' in layer.conf? Robert P. J. Day
2015-11-22 9:17 ` Robert Yang
@ 2015-11-23 14:16 ` Mark Hatle
1 sibling, 0 replies; 5+ messages in thread
From: Mark Hatle @ 2015-11-23 14:16 UTC (permalink / raw)
To: openembedded-core
On 11/22/15 3:10 AM, Robert P. J. Day wrote:
>
> perusing some wind river layers, and in the layer.conf file here:
>
> https://github.com/WindRiver-OpenSourceLabs/wr-kernel/blob/LB21_7.0_RCPL0002/conf/layer.conf
>
> i see the opening snippet:
>
> BBPATH ?= ""
> # We have a conf and classes directory, add to BBPATH
> BBPATH := "${LAYERDIR}:${BBPATH}"
(for the -first- layer defined)
BBPATH := "${LAYERDIR}:${BBPATH}"
will result in a warning or error because the ${BBPATH} can't be expanded.
There was a commit late 2013 to OE-Core and most related layers that turned this
into a append (or in this case prepend):
BBPATH =. "${LAYERDIR}:"
This is stop the need for the BBPATH and work properly.
LAYERDIR is always expanded when used, so no need for the :=
--Mark
> what is the purpose of that initial assignment
>
> BBPATH ?= ""
>
> if that variable has no value, won't it just expand to the empty
> string so that the eventual effect is the same? or is there something
> more subtle happening here?
>
> rday
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-11-23 14:17 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-22 9:10 what is the value of 'BBPATH ?= ""' in layer.conf? Robert P. J. Day
2015-11-22 9:17 ` Robert Yang
2015-11-22 9:29 ` Robert P. J. Day
2015-11-22 9:38 ` Robert Yang
2015-11-23 14:16 ` Mark Hatle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox