Bug 12232

Summary: bitbake-layers create-layer has bad BBFILES entry
Product: [Build System, Metadata & Runtime] BitBake Reporter: Phlip Balister <philip>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: dl9pf, poky.bs.watcher, poky.watcher
Version: unspecified   
Target Milestone: 2.5 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Phlip Balister 2017-10-16 22:55:44 UTC
I create a layer with:

[balister@thuvia build]$ bitbake-layers create-layer meta-foo

Which leads to this file in conf/layer.conf:

# We have a conf and classes directory, add to BBPATH
BBPATH .= ":${LAYERDIR}"

# We have recipes-* directories, add to BBFILES
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \\
            ${LAYERDIR}/recipes-*/*/*.bbappend"

BBFILE_COLLECTIONS += "meta-foo"
BBFILE_PATTERN_meta-foo = "^${LAYERDIR}/"
BBFILE_PRIORITY_meta-foo = "6"


Which leads to me beating my head against a wall trying to figure out why a bbappend in my new layer isn't picked up. I finally look at the BBFILES variable and see the entry for my layer has a \ in front of the path.

Nothing the \\ in the layer.conf file, I remove one slash and things work like I expect.