yocto-kernel: use BUILDDIR to find bblayers.conf
The current code assumes that builddir == srcdir/build, which it obviously isn't sometimes. Use BUILDDIR to get the actual builddir being used. Fixes [YOCTO #2219]. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
db89f1826b
commit
c0d92e51a1
|
@ -37,7 +37,12 @@ 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")
|
||||
try:
|
||||
builddir = os.environ["BUILDDIR"]
|
||||
except KeyError:
|
||||
print "BUILDDIR not found, exiting. (Did you forget to source oe-init-build-env?)"
|
||||
sys.exit(1)
|
||||
bblayers_conf = os.path.join(builddir, "conf/bblayers.conf")
|
||||
|
||||
layers = []
|
||||
|
||||
|
|
Loading…
Reference in New Issue