* [meta-networking][danny][PATCH] layer.conf: Use .= for adding to BBPATH and += to BBFILES
@ 2013-03-21 21:46 Christopher Larson
2013-03-21 22:11 ` Mark Hatle
0 siblings, 1 reply; 4+ messages in thread
From: Christopher Larson @ 2013-03-21 21:46 UTC (permalink / raw)
To: openembedded-devel; +Cc: Christopher Larson, Andrei Gherzan
From: Andrei Gherzan <andrei.gherzan@windriver.com>
Fixes parsing errors which is appearing after this commit to
meta-openembedded
http://cgit.openembedded.org/meta-openembedded/commit/?id=3c21a46020bd0816579648f684c41dbd6333583e
This triggers
exception NameError: name 'base_contains' is not defined
without this change
Signed-off-by: Andrei Gherzan <andrei.gherzan@windriver.com>
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
---
meta-networking/conf/layer.conf | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/meta-networking/conf/layer.conf b/meta-networking/conf/layer.conf
index f26a172..1ea2bc2 100644
--- a/meta-networking/conf/layer.conf
+++ b/meta-networking/conf/layer.conf
@@ -1,9 +1,9 @@
# We have a conf and classes directory, add to BBPATH
-BBPATH := "${BBPATH}:${LAYERDIR}"
+BBPATH .= ":${LAYERDIR}"
# We have a packages directory, add to BBFILES
-BBFILES := "${BBFILES} ${LAYERDIR}/recipes-*/*/*.bb \
- ${LAYERDIR}/recipes-*/*/*.bbappend"
+BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
+ ${LAYERDIR}/recipes-*/*/*.bbappend"
BBFILE_COLLECTIONS += "networking"
BBFILE_PATTERN_networking := "^${LAYERDIR}/"
--
1.8.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [meta-networking][danny][PATCH] layer.conf: Use .= for adding to BBPATH and += to BBFILES
2013-03-21 21:46 [meta-networking][danny][PATCH] layer.conf: Use .= for adding to BBPATH and += to BBFILES Christopher Larson
@ 2013-03-21 22:11 ` Mark Hatle
2013-03-21 22:22 ` Chris Larson
0 siblings, 1 reply; 4+ messages in thread
From: Mark Hatle @ 2013-03-21 22:11 UTC (permalink / raw)
To: openembedded-devel
On 3/21/13 4:46 PM, Christopher Larson wrote:
> From: Andrei Gherzan <andrei.gherzan@windriver.com>
>
> Fixes parsing errors which is appearing after this commit to
> meta-openembedded
>
> http://cgit.openembedded.org/meta-openembedded/commit/?id=3c21a46020bd0816579648f684c41dbd6333583e
>
> This triggers
> exception NameError: name 'base_contains' is not defined
> without this change
>
> Signed-off-by: Andrei Gherzan <andrei.gherzan@windriver.com>
> Signed-off-by: Christopher Larson <chris_larson@mentor.com>
> ---
> meta-networking/conf/layer.conf | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/meta-networking/conf/layer.conf b/meta-networking/conf/layer.conf
> index f26a172..1ea2bc2 100644
> --- a/meta-networking/conf/layer.conf
> +++ b/meta-networking/conf/layer.conf
> @@ -1,9 +1,9 @@
> # We have a conf and classes directory, add to BBPATH
> -BBPATH := "${BBPATH}:${LAYERDIR}"
> +BBPATH .= ":${LAYERDIR}"
>
> # We have a packages directory, add to BBFILES
> -BBFILES := "${BBFILES} ${LAYERDIR}/recipes-*/*/*.bb \
> - ${LAYERDIR}/recipes-*/*/*.bbappend"
> +BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
> + ${LAYERDIR}/recipes-*/*/*.bbappend"
>
> BBFILE_COLLECTIONS += "networking"
> BBFILE_PATTERN_networking := "^${LAYERDIR}/"
>
Don't those two have to be ":=" so that 'LAYERDIR' is immediately evaluated?
LAYERDIR changes depending on which layer is currently being processed.
--Mark
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [meta-networking][danny][PATCH] layer.conf: Use .= for adding to BBPATH and += to BBFILES
2013-03-21 22:11 ` Mark Hatle
@ 2013-03-21 22:22 ` Chris Larson
2013-03-22 15:24 ` Joe MacDonald
0 siblings, 1 reply; 4+ messages in thread
From: Chris Larson @ 2013-03-21 22:22 UTC (permalink / raw)
To: Openembedded Discussion
On Thu, Mar 21, 2013 at 3:11 PM, Mark Hatle <mark.hatle@windriver.com>wrote:
> On 3/21/13 4:46 PM, Christopher Larson wrote:
>
>> From: Andrei Gherzan <andrei.gherzan@windriver.com>
>>
>> Fixes parsing errors which is appearing after this commit to
>> meta-openembedded
>>
>> http://cgit.openembedded.org/**meta-openembedded/commit/?id=**
>> 3c21a46020bd0816579648f684c41d**bd6333583e<http://cgit.openembedded.org/meta-openembedded/commit/?id=3c21a46020bd0816579648f684c41dbd6333583e>
>>
>> This triggers
>> exception NameError: name 'base_contains' is not defined
>> without this change
>>
>> Signed-off-by: Andrei Gherzan <andrei.gherzan@windriver.com>
>> Signed-off-by: Christopher Larson <chris_larson@mentor.com>
>> ---
>> meta-networking/conf/layer.**conf | 6 +++---
>> 1 file changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/meta-networking/conf/layer.**conf
>> b/meta-networking/conf/layer.**conf
>> index f26a172..1ea2bc2 100644
>> --- a/meta-networking/conf/layer.**conf
>> +++ b/meta-networking/conf/layer.**conf
>> @@ -1,9 +1,9 @@
>> # We have a conf and classes directory, add to BBPATH
>> -BBPATH := "${BBPATH}:${LAYERDIR}"
>> +BBPATH .= ":${LAYERDIR}"
>>
>> # We have a packages directory, add to BBFILES
>> -BBFILES := "${BBFILES} ${LAYERDIR}/recipes-*/*/*.bb \
>> - ${LAYERDIR}/recipes-*/*/*.**bbappend"
>> +BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
>> + ${LAYERDIR}/recipes-*/*/*.**bbappend"
>>
>> BBFILE_COLLECTIONS += "networking"
>> BBFILE_PATTERN_networking := "^${LAYERDIR}/"
>>
>>
> Don't those two have to be ":=" so that 'LAYERDIR' is immediately
> evaluated? LAYERDIR changes depending on which layer is currently being
> processed
Nope, bitbake has handled LAYERDIR specially since Wed Apr 14 14:30:09
2010. See commits 849dbd63244cbc4eaca0f1beedbb67baca024629 and
40778a6e9e82c7ea4673a74fc19574430fa63e8d in bitbake.
--
Christopher Larson
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [meta-networking][danny][PATCH] layer.conf: Use .= for adding to BBPATH and += to BBFILES
2013-03-21 22:22 ` Chris Larson
@ 2013-03-22 15:24 ` Joe MacDonald
0 siblings, 0 replies; 4+ messages in thread
From: Joe MacDonald @ 2013-03-22 15:24 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 2342 bytes --]
[Re: [oe] [meta-networking][danny][PATCH] layer.conf: Use .= for adding to BBPATH and += to BBFILES] On 13.03.21 (Thu 15:22) Chris Larson wrote:
> On Thu, Mar 21, 2013 at 3:11 PM, Mark Hatle <mark.hatle@windriver.com>wrote:
>
> > On 3/21/13 4:46 PM, Christopher Larson wrote:
> >
> >> From: Andrei Gherzan <andrei.gherzan@windriver.com>
> >>
> >> Fixes parsing errors which is appearing after this commit to
> >> meta-openembedded
> >>
> >> http://cgit.openembedded.org/**meta-openembedded/commit/?id=**
> >> 3c21a46020bd0816579648f684c41d**bd6333583e<http://cgit.openembedded.org/meta-openembedded/commit/?id=3c21a46020bd0816579648f684c41dbd6333583e>
> >>
> >> This triggers
> >> exception NameError: name 'base_contains' is not defined
> >> without this change
> >>
> >> Signed-off-by: Andrei Gherzan <andrei.gherzan@windriver.com>
> >> Signed-off-by: Christopher Larson <chris_larson@mentor.com>
> >> ---
> >> meta-networking/conf/layer.**conf | 6 +++---
> >> 1 file changed, 3 insertions(+), 3 deletions(-)
> >>
> >> diff --git a/meta-networking/conf/layer.**conf
> >> b/meta-networking/conf/layer.**conf
> >> index f26a172..1ea2bc2 100644
> >> --- a/meta-networking/conf/layer.**conf
> >> +++ b/meta-networking/conf/layer.**conf
> >> @@ -1,9 +1,9 @@
> >> # We have a conf and classes directory, add to BBPATH
> >> -BBPATH := "${BBPATH}:${LAYERDIR}"
> >> +BBPATH .= ":${LAYERDIR}"
> >>
> >> # We have a packages directory, add to BBFILES
> >> -BBFILES := "${BBFILES} ${LAYERDIR}/recipes-*/*/*.bb \
> >> - ${LAYERDIR}/recipes-*/*/*.**bbappend"
> >> +BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
> >> + ${LAYERDIR}/recipes-*/*/*.**bbappend"
> >>
> >> BBFILE_COLLECTIONS += "networking"
> >> BBFILE_PATTERN_networking := "^${LAYERDIR}/"
> >>
> >>
> > Don't those two have to be ":=" so that 'LAYERDIR' is immediately
> > evaluated? LAYERDIR changes depending on which layer is currently being
> > processed
>
>
> Nope, bitbake has handled LAYERDIR specially since Wed Apr 14 14:30:09
> 2010. See commits 849dbd63244cbc4eaca0f1beedbb67baca024629 and
> 40778a6e9e82c7ea4673a74fc19574430fa63e8d in bitbake.
Okay, I had a quick look through bitbake to confirm the presence of
these on the danny branch, them merged the patch. Thanks.
--
-Joe MacDonald.
:wq
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-03-22 15:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-21 21:46 [meta-networking][danny][PATCH] layer.conf: Use .= for adding to BBPATH and += to BBFILES Christopher Larson
2013-03-21 22:11 ` Mark Hatle
2013-03-21 22:22 ` Chris Larson
2013-03-22 15:24 ` Joe MacDonald
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.