]> code.ossystems Code Review - openembedded-core.git/commitdiff
Error early if BBPATH is unset, rather than falling back to share/bitbake
authorChris Larson <chris_larson@mentor.com>
Fri, 19 Feb 2010 23:26:33 +0000 (16:26 -0700)
committerRichard Purdie <rpurdie@linux.intel.com>
Mon, 22 Mar 2010 14:56:00 +0000 (14:56 +0000)
Better to error as early as possible rather than experience strange behavior
resulting from the use of the largely useless stock bitbake.conf/base.bbclass.

(Bitbake rev: 641e6cf3ec3ab4d26929cf4d2a3704ff07eed4d6)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/lib/bb/parse/parse_py/ConfHandler.py

index deafd6479f53d9fccf013c55876545da3689056b..a1eaf317ac1fc0237bfd75250b340d3eec825ef7 100644 (file)
@@ -39,11 +39,7 @@ def init(data):
         topdir = os.getcwd()
         bb.data.setVar('TOPDIR', topdir, data)
     if not bb.data.getVar('BBPATH', data):
-        from pkg_resources import Requirement, resource_filename
-        bitbake = Requirement.parse("bitbake")
-        datadir = resource_filename(bitbake, "../share/bitbake")
-        basedir = resource_filename(bitbake, "..")
-        bb.data.setVar('BBPATH', '%s:%s:%s' % (topdir, datadir, basedir), data)
+        bb.fatal("The BBPATH environment variable must be set")
 
 
 def supports(fn, d):