Skip to contentSkip to conversation

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

PATCH Applied Khem Raj 2 participants 2 messages May 6, 2011 – May 9, 2011

v1 of 3 Applied Latest is v3 →

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

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

This helps bitbake in organising BBPATH and BBFILES with given BBFILE_PRIORITY order

---
 meta/conf/layer.conf |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
meta/conf/layer.conf +2 -3
index 5287417..3f63c7d 100644
@@ -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}/"
Signature · 1 line
1.7.4.1
Applied
#1 lore raw
Quoted 14 lines · Khem Raj

This helps bitbake in organising BBPATH and BBFILES with given BBFILE_PRIORITY order

---
  meta/conf/layer.conf |    5 ++---
  1 files changed, 2 insertions(+), 3 deletions(-)
meta/conf/layer.conf +0 -0
index 5287417..3f63c7d 100644
@@ -1,9 +1,8 @@
  BBPATH ?= ""

meta/conf/layer.conf line 8

Quoted 10 lines
meta/conf/layer.conf +2 -3
  # 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!