Bug 3746

Summary: yocto-kernel tool fails to find layer when using BBLAYERS += in bblayers.conf
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Stefan Stanacar <sstncr>
Component: meta-yoctoAssignee: Tom Zanussi <tom.zanussi>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: dvhart, poky.bs.watcher, poky.watcher
Version: 1.4   
Target Milestone: 1.5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Stefan Stanacar 2013-01-17 14:14:11 UTC
When using a bblayers.conf like the one below, yocto-kernel won't find my bsp layer. Building a image works just fine.

LCONF_VERSION = "6"

BBPATH = "${TOPDIR}"
BBFILES ?= ""

BBLAYERS ?= " \
  /home/stefans/yocto/poky/meta \
  /home/stefans/yocto/poky/meta-yocto \
  /home/stefans/yocto/poky/meta-yocto-bsp \
  "
BBLAYERS_NON_REMOVABLE ?= " \
  /home/stefans/yocto/poky/meta \
  /home/stefans/yocto/poky/meta-yocto \
  "

BBLAYERS += "/home/stefans/yocto/builds/yotta/meta-myqemu"


# yocto-kernel config list myqemu
Unable to find the BSP layer for machine myqemu.
Please make sure it is listed in bblayers.conf


Removing the last line and adding the layer like this

BBLAYERS ?= " \
  /home/stefans/yocto/poky/meta \
  /home/stefans/yocto/poky/meta-yocto \
  /home/stefans/yocto/poky/meta-yocto-bsp \
  /home/stefans/yocto/builds/yotta/meta-myqemu \
  "

solves the problem.
Comment 1 Darren Hart 2013-01-17 15:51:28 UTC
yocto-kernel does do it's own parsing unfortunately, but for good reason. Thanks for reporting.
Comment 2 Tom Zanussi 2013-07-10 14:13:36 UTC
Fix posted to poky mailing list.
Comment 3 Tom Zanussi 2013-07-16 14:51:05 UTC
Fixed in poky/master:74e403705e25afec656b5e40921771a9c29bdc40
Comment 4 Stefan Stanacar 2013-10-07 13:32:39 UTC
Verified in master:3c5b6af99110bd7f64f5240a3e9d156f0593c497