mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 01:40:07 +00:00
bitbake: [parser] Cary a Statement Node through the parsing
When parsing we will collect a number of statements that can be evaluated...The plan is to be evaluate things twice (old+new) and then compare the result, it should be the same. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
committed by
Richard Purdie
parent
5bac3403d7
commit
4b25b519ae
@@ -68,11 +68,15 @@ def supports(fn, data):
|
||||
return 1
|
||||
return 0
|
||||
|
||||
def handle(fn, data, include = 0):
|
||||
def handle(fn, data, include = 0, statements = None):
|
||||
"""Call the handler that is appropriate for this file"""
|
||||
if not statements:
|
||||
import ast
|
||||
statements = ast.StatementGroup()
|
||||
|
||||
for h in handlers:
|
||||
if h['supports'](fn, data):
|
||||
return h['handle'](fn, data, include)
|
||||
return h['handle'](fn, data, include, statements)
|
||||
raise ParseError("%s is not a BitBake file" % fn)
|
||||
|
||||
def init(fn, data):
|
||||
|
||||
Reference in New Issue
Block a user