Bug 4743

Summary: yocto-kernel tool fails when config BBLAYERS behind BBLAYERS_NON_REMOVABLE in bblayers.conf
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Ning Zhang <ning.zhang>
Component: configurationAssignee: Tom Zanussi <tom.zanussi>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: jessica.zhang, ke.zou, poky.bs.watcher, poky.watcher, sgw, yi.zhao
Version: 1.5   
Target Milestone: 1.5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Ning Zhang 2013-06-18 09:09:59 UTC
poky: master: 1dd643b142c69ac9035e29bff11d02201638dc65

steps:
1. create a new bsp layer.
   yocto-bsp create myqemux86 qemu  (with all default options)
2. add "meta-myqemux86" to conf/bblayers.conf, such as below:
BBLAYERS ?= " \
  /home/yocto/poky/meta \
  /home/yocto/poky/meta-yocto \
  /home/yocto/poky/meta-yocto-bsp \
  /home/yocto/20130618/meta-myqemux86 \
"

BBLAYERS_NON_REMOVABLE ?= " \
  /home/yocto/poky/meta \
  /home/yocto/poky/meta-yocto \
  "

3. input "yocto-kernel config add myqemux86 CONFIG_MISC_DEVICES=y" to add a new configuration, it pass.

But, if in step2, set BBLAYERS behind BBLAYERS_NON_REMOVABLE, then step3 will fail.

conf/bblayers.conf

BBLAYERS_NON_REMOVABLE ?= " \
  /home/yocto/poky/meta \
  /home/yocto/poky/meta-yocto \
  "

BBLAYERS ?= " \
  /home/yocto/poky/meta \
  /home/yocto/poky/meta-yocto \
  /home/yocto/poky/meta-yocto-bsp \
  /home/yocto/20130618/meta-myqemux86 \
"

execute: "yocto-kernel config add myqemux86 CONFIG_MISC_DEVICES=y"
result is:
Unable to find the BSP layer for machine myqemux86.
Please make sure it is listed in bblayers.conf

I think since this is a config file, there should not be any dependance between different parameters.
Comment 1 Tom Zanussi 2013-07-03 20:16:30 UTC
Posted to poky mailing list.
Comment 2 Tom Zanussi 2013-07-09 15:22:00 UTC
Fixed in poky/master:

f8c8c7d78aa8a65b8e6466d4dab419b1d608e026

Fixed in poky/dylan:

2d79d0488528d31159d5f2ede088e80f30d22559