Bug 2219 - [yocto-kernel] fail to find bblayers if TOPDIR is not "build"
Summary: [yocto-kernel] fail to find bblayers if TOPDIR is not "build"
Status: VERIFIED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.2.1
Assignee: Tom Zanussi
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-04-01 02:45 UTC by Jiajun Xu
Modified: 2012-05-08 15:48 UTC (History)
7 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

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