diff options
author | Holger Freyther <ich@tamarin.(none)> | 2009-05-19 10:57:00 +0200 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-02-15 17:07:48 +0000 |
commit | 3f1ca0a0862c2b2bb72158c858810b1edeb0b00b (patch) | |
tree | c82a262bf506eb81cfaa59472bcc8b2fa5336df0 /bitbake/lib/bb/parse | |
parent | baf239590070201bd24bb63d95158a58cf9dcaa6 (diff) | |
download | ast2050-yocto-poky-3f1ca0a0862c2b2bb72158c858810b1edeb0b00b.zip ast2050-yocto-poky-3f1ca0a0862c2b2bb72158c858810b1edeb0b00b.tar.gz |
bitbake: [parse] Move the last method to the AST...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/parse')
-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 f5974f4..ed9c689 100644 --- a/bitbake/lib/bb/parse/ast.py +++ b/bitbake/lib/bb/parse/ast.py @@ -250,6 +250,14 @@ class BBHandlerNode: bbhands.append(h) bb.data.setVarFlag(h, "handler", 1, data) bb.data.setVar('__BBHANDLERS', bbhands, data) + +class InheritNode: + def __init__(self, files): + self.n = __word__.findall(files) + + def eval(self, data): + statements = StatementGroup() + bb.parse.BBHandler.inherit(statements, self.n, data) def handleInclude(statements, m, fn, lineno, data, force): # AST handling @@ -301,7 +309,8 @@ def handleBBHandlers(statements, m, d): def handleInherit(statements, m, d): files = m.group(1) n = __word__.findall(files) - bb.parse.BBHandler.inherit(statements, n, d) + statements.append(InheritNode(m.group(1))) + statements[-1].eval(d) def finalise(fn, d): bb.data.expandKeys(d) |