summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/cooker.py3
-rw-r--r--bitbake/lib/bb/parse/parse_py/ConfHandler.py5
2 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index eaee797cb5..eab95d0336 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -530,6 +530,9 @@ class BBCooker:
530 530
531 bb.data.delVar('LAYERDIR', data) 531 bb.data.delVar('LAYERDIR', data)
532 532
533 if not data.getVar("BBPATH", True):
534 bb.fatal("The BBPATH variable is not set")
535
533 data = bb.parse.handle(os.path.join("conf", "bitbake.conf"), data) 536 data = bb.parse.handle(os.path.join("conf", "bitbake.conf"), data)
534 537
535 self.configuration.data = data 538 self.configuration.data = data
diff --git a/bitbake/lib/bb/parse/parse_py/ConfHandler.py b/bitbake/lib/bb/parse/parse_py/ConfHandler.py
index 9188119e4d..9128a2ef8f 100644
--- a/bitbake/lib/bb/parse/parse_py/ConfHandler.py
+++ b/bitbake/lib/bb/parse/parse_py/ConfHandler.py
@@ -37,10 +37,7 @@ __export_regexp__ = re.compile( r"export\s+(.+)" )
37def init(data): 37def init(data):
38 topdir = bb.data.getVar('TOPDIR', data) 38 topdir = bb.data.getVar('TOPDIR', data)
39 if not topdir: 39 if not topdir:
40 topdir = os.getcwd() 40 bb.data.setVar('TOPDIR', os.getcwd(), data)
41 bb.data.setVar('TOPDIR', topdir, data)
42 if not bb.data.getVar('BBPATH', data):
43 bb.msg.fatal(bb.msg.domain.Parsing, "The BBPATH environment variable must be set")
44 41
45 42
46def supports(fn, d): 43def supports(fn, d):