Skip to contentSkip to conversation

layer.conf: avoid unnecessary early expansion with :=

PATCH New Christopher Larson 1 participant 1 message Mar 19, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 layer.conf: avoid unnecessary early expansion with :=

From: Christopher Larson <[email protected]>

bitbake handles immediate expansions of LAYERDIR for us automatically.

---
 meta-yocto-bsp/conf/layer.conf                               | 6 +++---
 meta-yocto/conf/layer.conf                                   | 6 +++---
 scripts/lib/bsp/substrate/target/arch/common/conf/layer.conf | 6 +++---
 scripts/lib/bsp/substrate/target/arch/layer/conf/layer.conf  | 6 +++---
 4 files changed, 12 insertions(+), 12 deletions(-)
meta-yocto-bsp/conf/layer.conf +3 -3
index 49fb135..18544bd 100644
@@ -1,11 +1,11 @@
 # 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 \
+BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
             ${LAYERDIR}/recipes-*/*/*.bbappend"
 
 BBFILE_COLLECTIONS += "yoctobsp"
-BBFILE_PATTERN_yoctobsp := "^${LAYERDIR}/"
+BBFILE_PATTERN_yoctobsp = "^${LAYERDIR}/"
 BBFILE_PRIORITY_yoctobsp = "5"
 
meta-yocto/conf/layer.conf +3 -3
index 7917962..89ed171 100644
@@ -1,11 +1,11 @@
 # We have a conf and classes directory, add to BBPATH
-BBPATH := "${LAYERDIR}:${BBPATH}"
+BBPATH =. "${LAYERDIR}:"
 
 # We have a packages directory, add to BBFILES
-BBFILES := "${BBFILES} ${LAYERDIR}/recipes-*/*/*.bb \
+BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
             ${LAYERDIR}/recipes-*/*/*.bbappend"
 
 BBFILE_COLLECTIONS += "yocto"
-BBFILE_PATTERN_yocto := "^${LAYERDIR}/"
+BBFILE_PATTERN_yocto = "^${LAYERDIR}/"
 BBFILE_PRIORITY_yocto = "5"
 
scripts/lib/bsp/substrate/target/arch/common/conf/layer.conf +3 -3
index 921d976..97029dd 100644
@@ -1,10 +1,10 @@
 # We have a conf and classes directory, add to BBPATH
-BBPATH := "${BBPATH}:${LAYERDIR}"
+BBPATH .= ":${LAYERDIR}"
 
 # We have a recipes directory, add to BBFILES
-BBFILES := "${BBFILES} ${LAYERDIR}/recipes-*/*/*.bb \
+BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
 	${LAYERDIR}/recipes-*/*/*.bbappend"
 
 BBFILE_COLLECTIONS += "{{=machine}}"
-BBFILE_PATTERN_{{=machine}} := "^${LAYERDIR}/"
+BBFILE_PATTERN_{{=machine}} = "^${LAYERDIR}/"
 BBFILE_PRIORITY_{{=machine}} = "6"
scripts/lib/bsp/substrate/target/arch/layer/conf/layer.conf +3 -3
index 84a9abb..76153f3 100644
@@ -1,10 +1,10 @@
 # We have a conf and classes directory, add to BBPATH
-BBPATH := "${BBPATH}:${LAYERDIR}"
+BBPATH .= ":${LAYERDIR}"
 
 # We have a recipes directory, add to BBFILES
-BBFILES := "${BBFILES} ${LAYERDIR}/recipes-*/*/*.bb \
+BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
 	${LAYERDIR}/recipes-*/*/*.bbappend"
 
 BBFILE_COLLECTIONS += "{{=layer_name}}"
-BBFILE_PATTERN_{{=layer_name}} := "^${LAYERDIR}/"
+BBFILE_PATTERN_{{=layer_name}} = "^${LAYERDIR}/"
 BBFILE_PRIORITY_{{=layer_name}} = "{{=layer_priority}}"
Signature · 1 line
1.8.2