Bug 12232 - bitbake-layers create-layer has bad BBFILES entry
Summary: bitbake-layers create-layer has bad BBFILES entry
Status: RESOLVED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.5 M1
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-10-16 22:55 UTC by Phlip Balister
Modified: 2017-12-19 09:37 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.