diff options
Diffstat (limited to 'scripts/lib')
-rw-r--r-- | scripts/lib/bsp/kernel.py | 7 |
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 | ||