mirror of
https://git.yoctoproject.org/poky
synced 2026-09-29 07:36:20 +02:00
Error early if BBPATH is unset, rather than falling back to share/bitbake
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>
This commit is contained in:
committed by
Richard Purdie
parent
9998b454bb
commit
73a12b9184
@@ -39,11 +39,7 @@ def init(data):
|
|||||||
topdir = os.getcwd()
|
topdir = os.getcwd()
|
||||||
bb.data.setVar('TOPDIR', topdir, data)
|
bb.data.setVar('TOPDIR', topdir, data)
|
||||||
if not bb.data.getVar('BBPATH', data):
|
if not bb.data.getVar('BBPATH', data):
|
||||||
from pkg_resources import Requirement, resource_filename
|
bb.fatal("The BBPATH environment variable must be set")
|
||||||
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)
|
|
||||||
|
|
||||||
|
|
||||||
def supports(fn, d):
|
def supports(fn, d):
|
||||||
|
|||||||
Reference in New Issue
Block a user