Patchwork conf/layer.conf: Use .= to append to BBPATH and += for BBFILES

login
register
mail settings
Submitter Khem Raj
Date May 6, 2011, 5 a.m.
Message ID <1304658053-15502-1-git-send-email-raj.khem@gmail.com>
Download mbox | patch
Permalink /patch/3289/
State New, archived
Headers show

Comments

Khem Raj - May 6, 2011, 5 a.m.
This helps bitbake in organising BBPATH and BBFILES with given
BBFILE_PRIORITY order

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/conf/layer.conf |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
Saul Wold - May 9, 2011, 4:17 p.m.
On 05/05/2011 10:00 PM, Khem Raj wrote:
> This helps bitbake in organising BBPATH and BBFILES with given
> BBFILE_PRIORITY order
>
> Signed-off-by: Khem Raj<raj.khem@gmail.com>
> ---
>   meta/conf/layer.conf |    5 ++---
>   1 files changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/meta/conf/layer.conf b/meta/conf/layer.conf
> index 5287417..3f63c7d 100644
> --- a/meta/conf/layer.conf
> +++ b/meta/conf/layer.conf
> @@ -1,9 +1,8 @@
>   BBPATH ?= ""
>   # 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}/packages/*/*.bb ${LAYERDIR}/recipes-*/*/*.bb"
> +BBFILES += "${LAYERDIR}/packages/*/*.bb ${LAYERDIR}/recipes-*/*/*.bb"
>
>   BBFILE_COLLECTIONS += "normal"
>   BBFILE_PATTERN_normal := "^${LAYERDIR}/"

Merged into oe-core

Thanks
	Sau!

Patch

diff --git a/meta/conf/layer.conf b/meta/conf/layer.conf
index 5287417..3f63c7d 100644
--- a/meta/conf/layer.conf
+++ b/meta/conf/layer.conf
@@ -1,9 +1,8 @@ 
 BBPATH ?= ""
 # 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}/packages/*/*.bb ${LAYERDIR}/recipes-*/*/*.bb"
+BBFILES += "${LAYERDIR}/packages/*/*.bb ${LAYERDIR}/recipes-*/*/*.bb"
 
 BBFILE_COLLECTIONS += "normal"
 BBFILE_PATTERN_normal := "^${LAYERDIR}/"