summaryrefslogtreecommitdiffstats
path: root/lib/bb/parse/parse_py/ConfHandler.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-04-14 14:27:29 -0700
committerChris Larson <chris_larson@mentor.com>2010-04-14 14:58:54 -0700
commit5def1c8c31432968349f9b29d6333d7962260a8b (patch)
treeabdc83616242d792254d3055d0894086a68db24d /lib/bb/parse/parse_py/ConfHandler.py
parent83674a3a5564ecb1f9d2c9b2d5b1eeb3c31272ab (diff)
downloadbitbake-contrib-5def1c8c31432968349f9b29d6333d7962260a8b.tar.gz
Move the unset BBPATH sanity check after the bblayers processing
This way we can fully utilize bblayers, you can do everything in bblayers.conf and avoid setting any environment variables at all. Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/parse/parse_py/ConfHandler.py')
-rw-r--r--lib/bb/parse/parse_py/ConfHandler.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/bb/parse/parse_py/ConfHandler.py b/lib/bb/parse/parse_py/ConfHandler.py
index 9188119e4..9128a2ef8 100644
--- a/lib/bb/parse/parse_py/ConfHandler.py
+++ b/lib/bb/parse/parse_py/ConfHandler.py
@@ -37,10 +37,7 @@ __export_regexp__ = re.compile( r"export\s+(.+)" )
def init(data):
topdir = bb.data.getVar('TOPDIR', data)
if not topdir:
- topdir = os.getcwd()
- bb.data.setVar('TOPDIR', topdir, data)
- if not bb.data.getVar('BBPATH', data):
- bb.msg.fatal(bb.msg.domain.Parsing, "The BBPATH environment variable must be set")
+ bb.data.setVar('TOPDIR', os.getcwd(), data)
def supports(fn, d):