mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
bitbake: [parse] Move the last method to the AST...
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
committed by
Richard Purdie
parent
baf2395900
commit
3f1ca0a086
@@ -251,6 +251,14 @@ class BBHandlerNode:
|
|||||||
bb.data.setVarFlag(h, "handler", 1, data)
|
bb.data.setVarFlag(h, "handler", 1, data)
|
||||||
bb.data.setVar('__BBHANDLERS', bbhands, 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):
|
def handleInclude(statements, m, fn, lineno, data, force):
|
||||||
# AST handling
|
# AST handling
|
||||||
statements.append(IncludeNode(m.group(1), fn, lineno, force))
|
statements.append(IncludeNode(m.group(1), fn, lineno, force))
|
||||||
@@ -301,7 +309,8 @@ def handleBBHandlers(statements, m, d):
|
|||||||
def handleInherit(statements, m, d):
|
def handleInherit(statements, m, d):
|
||||||
files = m.group(1)
|
files = m.group(1)
|
||||||
n = __word__.findall(files)
|
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):
|
def finalise(fn, d):
|
||||||
bb.data.expandKeys(d)
|
bb.data.expandKeys(d)
|
||||||
|
|||||||
Reference in New Issue
Block a user