diff options
-rw-r--r-- | bitbake/lib/bb/cooker.py | 1 | ||||
-rw-r--r-- | bitbake/lib/bb/parse/__init__.py | 9 | ||||
-rw-r--r-- | bitbake/lib/bb/parse/ast.py | 2 |
3 files changed, 12 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 12b526b40c..6ddd960860 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -893,6 +893,7 @@ class BBCooker: | |||
893 | bb.codeparser.parser_cache_init(data) | 893 | bb.codeparser.parser_cache_init(data) |
894 | bb.event.fire(bb.event.ConfigParsed(), data) | 894 | bb.event.fire(bb.event.ConfigParsed(), data) |
895 | bb.parse.init_parser(data) | 895 | bb.parse.init_parser(data) |
896 | data.setVar('BBINCLUDED',bb.parse.get_file_depends(data)) | ||
896 | self.configuration.data = data | 897 | self.configuration.data = data |
897 | self.configuration.data_hash = data.get_hash() | 898 | self.configuration.data_hash = data.get_hash() |
898 | 899 | ||
diff --git a/bitbake/lib/bb/parse/__init__.py b/bitbake/lib/bb/parse/__init__.py index 8b7ec73c57..7b9c47e616 100644 --- a/bitbake/lib/bb/parse/__init__.py +++ b/bitbake/lib/bb/parse/__init__.py | |||
@@ -131,4 +131,13 @@ def vars_from_file(mypkg, d): | |||
131 | parts.extend(tmplist) | 131 | parts.extend(tmplist) |
132 | return parts | 132 | return parts |
133 | 133 | ||
134 | def get_file_depends(d): | ||
135 | '''Return the dependent files''' | ||
136 | dep_files = [] | ||
137 | depends = d.getVar('__depends', True) or set() | ||
138 | depends = depends.union(d.getVar('__base_depends', True) or set()) | ||
139 | for (fn, _) in depends: | ||
140 | dep_files.append(os.path.abspath(fn)) | ||
141 | return " ".join(dep_files) | ||
142 | |||
134 | from bb.parse.parse_py import __version__, ConfHandler, BBHandler | 143 | from bb.parse.parse_py import __version__, ConfHandler, BBHandler |
diff --git a/bitbake/lib/bb/parse/ast.py b/bitbake/lib/bb/parse/ast.py index 94fa175bba..7cef3d0373 100644 --- a/bitbake/lib/bb/parse/ast.py +++ b/bitbake/lib/bb/parse/ast.py | |||
@@ -328,6 +328,8 @@ def finalize(fn, d, variant = None): | |||
328 | 328 | ||
329 | bb.parse.siggen.finalise(fn, d, variant) | 329 | bb.parse.siggen.finalise(fn, d, variant) |
330 | 330 | ||
331 | d.setVar('BBINCLUDED', bb.parse.get_file_depends(d)) | ||
332 | |||
331 | bb.event.fire(bb.event.RecipeParsed(fn), d) | 333 | bb.event.fire(bb.event.RecipeParsed(fn), d) |
332 | 334 | ||
333 | def _create_variants(datastores, names, function): | 335 | def _create_variants(datastores, names, function): |