Bug 2219

Summary: [yocto-kernel] fail to find bblayers if TOPDIR is not "build"
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Jiajun Xu <jiajun.xu>
Component: meta-yoctoAssignee: Tom Zanussi <tom.zanussi>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: dvhart, hongnax.xu, jessica.zhang, lianhao.lu, poky.bs.watcher, poky.watcher, scott.a.garman
Version: unspecified   
Target Milestone: 1.2.1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Jiajun Xu 2012-04-01 02:45:44 UTC
tree/branch: poky/1.2 M4
commit: da6233ea034f35eff59306fdad31f318c340c359

With 1.2 M4, when I test Hob, I find that yocto-kernel could not find bblayers if the TOPDIR is not "./build". It's hardcode in scripts/lib/bsp/kernel.py with following code:

#######
def find_bblayers(scripts_path):
    """
    Find and return a sanitized list of the layers found in BBLAYERS.
    """
    bblayers_conf = os.path.join(scripts_path, "../build/conf/bblayers.conf")

    layers = []

    f = open(bblayers_conf, "r")
    lines = f.readlines()
    bblayers_lines = []
#######
Comment 1 Jessica 2012-04-26 23:14:33 UTC
Tom has the patch been applied? please update
Comment 2 Darren Hart 2012-04-28 00:06:29 UTC
This does not have the workaround I thought it did. After having read the patch, I'm going to propose this be pulled in for 1.2.1. Changing the target now.
Comment 5 Jiajun Xu 2012-05-08 15:48:29 UTC
Verify the bug as fixed with commit b1867950831ab6edb00b819f4cde81d40007f22e.