diff options
Diffstat (limited to 'bitbake/lib/bb/parse/parse_py/BBHandler.py')
-rw-r--r-- | bitbake/lib/bb/parse/parse_py/BBHandler.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bitbake/lib/bb/parse/parse_py/BBHandler.py b/bitbake/lib/bb/parse/parse_py/BBHandler.py index 92c55f531a..e6039e11a2 100644 --- a/bitbake/lib/bb/parse/parse_py/BBHandler.py +++ b/bitbake/lib/bb/parse/parse_py/BBHandler.py | |||
@@ -74,6 +74,13 @@ def inherit(files, fn, lineno, d): | |||
74 | if not os.path.isabs(file) and not file.endswith(".bbclass"): | 74 | if not os.path.isabs(file) and not file.endswith(".bbclass"): |
75 | file = os.path.join('classes', '%s.bbclass' % file) | 75 | file = os.path.join('classes', '%s.bbclass' % file) |
76 | 76 | ||
77 | if not os.path.isabs(file): | ||
78 | dname = os.path.dirname(fn) | ||
79 | bbpath = "%s:%s" % (dname, d.getVar("BBPATH", True)) | ||
80 | abs_fn = bb.utils.which(bbpath, file) | ||
81 | if abs_fn: | ||
82 | file = abs_fn | ||
83 | |||
77 | if not file in __inherit_cache: | 84 | if not file in __inherit_cache: |
78 | logger.log(logging.DEBUG -1, "BB %s:%d: inheriting %s", fn, lineno, file) | 85 | logger.log(logging.DEBUG -1, "BB %s:%d: inheriting %s", fn, lineno, file) |
79 | __inherit_cache.append( file ) | 86 | __inherit_cache.append( file ) |