summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2016-05-26 11:05:43 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-03 13:13:30 +0100
commit2660ddeb2d47bede562136cbb62b0495b4e1e1c5 (patch)
treeb0574e02fd22a9a65e654862c45937c778781f47 /bitbake/lib
parentc8aad908c8e5219aa56ae8128d04d08fb47c3f14 (diff)
downloadpoky-2660ddeb2d47bede562136cbb62b0495b4e1e1c5.tar.gz
bitbake: cookerdata: print an error if layer dir does not exist
Makes it easier for user to identify problems, e.g. typos, in BBLAYERS. [YOCTO #9507] (Bitbake rev: 32c9689e4b492dc5821749e284e397d717af2a6c) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/cookerdata.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cookerdata.py b/bitbake/lib/bb/cookerdata.py
index 1615db5b17..dc34efefde 100644
--- a/bitbake/lib/bb/cookerdata.py
+++ b/bitbake/lib/bb/cookerdata.py
@@ -292,6 +292,10 @@ class CookerDataBuilder(object):
292 data = bb.data.createCopy(data) 292 data = bb.data.createCopy(data)
293 approved = bb.utils.approved_variables() 293 approved = bb.utils.approved_variables()
294 for layer in layers: 294 for layer in layers:
295 if not os.path.isdir(layer):
296 parselog.critical("Layer directory '%s' does not exist! "
297 "Please check BBLAYERS in %s" % (layer, layerconf))
298 sys.exit(1)
295 parselog.debug(2, "Adding layer %s", layer) 299 parselog.debug(2, "Adding layer %s", layer)
296 if 'HOME' in approved and '~' in layer: 300 if 'HOME' in approved and '~' in layer:
297 layer = os.path.expanduser(layer) 301 layer = os.path.expanduser(layer)