[yocto] [PATCH] meta-jasperforest: Fix BBFILES

Richard Purdie richard.purdie at linuxfoundation.org
Tue Apr 23 05:26:47 PDT 2013


BBFILES is whitespace delimited. If .= used, no whitespace padding is added around
the addition and this can lead to it being combined with some other part of the
field, leading to parts of BBFILES mysteriously not being seen.

For example, I have in my bblayers.conf:

  /media/build1/poky/meta-intel/meta-emenlow \
  /media/build1/poky/meta-intel/meta-fri2 \
  /media/build1/poky/meta-intel/meta-jasperforest \
  /media/build1/poky/meta-intel/meta-n450 \
  /media/build1/poky/meta-intel/meta-romley \

and this results in the warning:

WARNING: No bb files matched BBFILE_PATTERN_fri2 '^/media/build1/poky/meta-intel/meta-fri2/'

and if I try to build MACHINE=fri2, I get strange errors due to the .bb files
not being parsed.

The fix is simply to use +=, just like every other layer.conf file.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta-jasperforest/conf/layer.conf |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-jasperforest/conf/layer.conf b/meta-jasperforest/conf/layer.conf
index b539733..6d096e7 100644
--- a/meta-jasperforest/conf/layer.conf
+++ b/meta-jasperforest/conf/layer.conf
@@ -2,7 +2,7 @@
 BBPATH .= ":${LAYERDIR}"
 
 # We have a recipes directory, add to BBFILES
-BBFILES .= "${LAYERDIR}/recipes-*/*/*.bb \
+BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
 	${LAYERDIR}/recipes-*/*/*.bbappend"
 
 BBFILE_COLLECTIONS += "jasperforest"





More information about the yocto mailing list