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.

(Bitbake rev: 5def1c8c31432968349f9b29d6333d7962260a8b)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Chris Larson authored and Richard Purdie committed 2010-07-02 15:41:33 +01:00
1 parent 22a2179905
commit dc39ebe91e
2 files changed
+4 -4

No files matched your search

+1 -4
View File
@@ -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):