diff options
Diffstat (limited to 'bitbake/lib/bb/parse/ast.py')
| -rw-r--r-- | bitbake/lib/bb/parse/ast.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/bitbake/lib/bb/parse/ast.py b/bitbake/lib/bb/parse/ast.py index 03370180e3..2f6c6a0055 100644 --- a/bitbake/lib/bb/parse/ast.py +++ b/bitbake/lib/bb/parse/ast.py | |||
| @@ -43,6 +43,21 @@ class IncludeNode(AstNode): | |||
| 43 | else: | 43 | else: |
| 44 | bb.parse.ConfHandler.include(self.filename, s, self.lineno, data, False) | 44 | bb.parse.ConfHandler.include(self.filename, s, self.lineno, data, False) |
| 45 | 45 | ||
| 46 | class IncludeAllNode(AstNode): | ||
| 47 | def __init__(self, filename, lineno, what_file): | ||
| 48 | AstNode.__init__(self, filename, lineno) | ||
| 49 | self.what_file = what_file | ||
| 50 | |||
| 51 | def eval(self, data): | ||
| 52 | """ | ||
| 53 | Include the file and evaluate the statements | ||
| 54 | """ | ||
| 55 | s = data.expand(self.what_file) | ||
| 56 | logger.debug2("CONF %s:%s: including %s", self.filename, self.lineno, s) | ||
| 57 | |||
| 58 | for path in data.getVar("BBPATH").split(":"): | ||
| 59 | bb.parse.ConfHandler.include(self.filename, os.path.join(path, s), self.lineno, data, False) | ||
| 60 | |||
| 46 | class ExportNode(AstNode): | 61 | class ExportNode(AstNode): |
| 47 | def __init__(self, filename, lineno, var): | 62 | def __init__(self, filename, lineno, var): |
| 48 | AstNode.__init__(self, filename, lineno) | 63 | AstNode.__init__(self, filename, lineno) |
| @@ -366,6 +381,9 @@ class AddFragmentsNode(AstNode): | |||
| 366 | def handleInclude(statements, filename, lineno, m, force): | 381 | def handleInclude(statements, filename, lineno, m, force): |
| 367 | statements.append(IncludeNode(filename, lineno, m.group(1), force)) | 382 | statements.append(IncludeNode(filename, lineno, m.group(1), force)) |
| 368 | 383 | ||
| 384 | def handleIncludeAll(statements, filename, lineno, m): | ||
| 385 | statements.append(IncludeAllNode(filename, lineno, m.group(1))) | ||
| 386 | |||
| 369 | def handleExport(statements, filename, lineno, m): | 387 | def handleExport(statements, filename, lineno, m): |
| 370 | statements.append(ExportNode(filename, lineno, m.group(1))) | 388 | statements.append(ExportNode(filename, lineno, m.group(1))) |
| 371 | 389 | ||
