diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/parse/ast.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/bitbake/lib/bb/parse/ast.py b/bitbake/lib/bb/parse/ast.py index f5974f40d2..ed9c689afa 100644 --- a/bitbake/lib/bb/parse/ast.py +++ b/bitbake/lib/bb/parse/ast.py | |||
@@ -250,6 +250,14 @@ class BBHandlerNode: | |||
250 | bbhands.append(h) | 250 | bbhands.append(h) |
251 | bb.data.setVarFlag(h, "handler", 1, data) | 251 | bb.data.setVarFlag(h, "handler", 1, data) |
252 | bb.data.setVar('__BBHANDLERS', bbhands, data) | 252 | bb.data.setVar('__BBHANDLERS', bbhands, data) |
253 | |||
254 | class InheritNode: | ||
255 | def __init__(self, files): | ||
256 | self.n = __word__.findall(files) | ||
257 | |||
258 | def eval(self, data): | ||
259 | statements = StatementGroup() | ||
260 | bb.parse.BBHandler.inherit(statements, self.n, data) | ||
253 | 261 | ||
254 | def handleInclude(statements, m, fn, lineno, data, force): | 262 | def handleInclude(statements, m, fn, lineno, data, force): |
255 | # AST handling | 263 | # AST handling |
@@ -301,7 +309,8 @@ def handleBBHandlers(statements, m, d): | |||
301 | def handleInherit(statements, m, d): | 309 | def handleInherit(statements, m, d): |
302 | files = m.group(1) | 310 | files = m.group(1) |
303 | n = __word__.findall(files) | 311 | n = __word__.findall(files) |
304 | bb.parse.BBHandler.inherit(statements, n, d) | 312 | statements.append(InheritNode(m.group(1))) |
313 | statements[-1].eval(d) | ||
305 | 314 | ||
306 | def finalise(fn, d): | 315 | def finalise(fn, d): |
307 | bb.data.expandKeys(d) | 316 | bb.data.expandKeys(d) |