summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-28 10:32:56 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-28 10:34:16 +0100
commit624160af6e5429c9f08b201bc6599dc8dcb62c3f (patch)
tree65164f8875569762c3dd029b52fff756ae771b5e /bitbake
parentd3ce916c7c2490154f0e749a4466f4df6307acde (diff)
downloadpoky-624160af6e5429c9f08b201bc6599dc8dcb62c3f.tar.gz
bitbake: cookerdata: Improve message if BBPATH is unset and bblayers.conf not found
If BBPATH isn't set and bblayers.conf isn't found, improve the message shown to the user to help their understanding of what the problem might be. [YOCTO #3271] (Bitbake rev: 0e639f5cbc813c8d4719019cfdd4287e9a429610) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> A
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/cookerdata.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cookerdata.py b/bitbake/lib/bb/cookerdata.py
index 4ddc2a5144..a0379cf7f3 100644
--- a/bitbake/lib/bb/cookerdata.py
+++ b/bitbake/lib/bb/cookerdata.py
@@ -253,7 +253,12 @@ class CookerDataBuilder(object):
253 data.delVar('LAYERDIR') 253 data.delVar('LAYERDIR')
254 254
255 if not data.getVar("BBPATH", True): 255 if not data.getVar("BBPATH", True):
256 raise SystemExit("The BBPATH variable is not set") 256 msg = "The BBPATH variable is not set"
257 if not layerconf:
258 msg += (" and bitbake did not find a conf/bblayers.conf file in"
259 " the expected location.\nMaybe you accidentally"
260 " invoked bitbake from the wrong directory?")
261 raise SystemExit(msg)
257 262
258 data = parse_config_file(os.path.join("conf", "bitbake.conf"), data) 263 data = parse_config_file(os.path.join("conf", "bitbake.conf"), data)
259 264