summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorTom Zanussi <tom.zanussi@intel.com>2012-06-04 14:00:19 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-06-05 23:09:24 +0100
commit015f117d851ef3a102ebafc5e4102a57d2ca620f (patch)
treeb22d57bc9e33213b504cf152b7b8d02ace41c4fa /scripts
parentb8338046ba5235a242021f22e6a88e3778e04cbf (diff)
downloadpoky-015f117d851ef3a102ebafc5e4102a57d2ca620f.tar.gz
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/bsp/kernel.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/lib/bsp/kernel.py b/scripts/lib/bsp/kernel.py
index 360851b205..8b3aa72c9c 100644
--- a/scripts/lib/bsp/kernel.py
+++ b/scripts/lib/bsp/kernel.py
@@ -37,7 +37,12 @@ def find_bblayers(scripts_path):
37 """ 37 """
38 Find and return a sanitized list of the layers found in BBLAYERS. 38 Find and return a sanitized list of the layers found in BBLAYERS.
39 """ 39 """
40 bblayers_conf = os.path.join(scripts_path, "../build/conf/bblayers.conf") 40 try:
41 builddir = os.environ["BUILDDIR"]
42 except KeyError:
43 print "BUILDDIR not found, exiting. (Did you forget to source oe-init-build-env?)"
44 sys.exit(1)
45 bblayers_conf = os.path.join(builddir, "conf/bblayers.conf")
41 46
42 layers = [] 47 layers = []
43 48