summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/codeparser.py6
-rw-r--r--bitbake/lib/bb/cookerdata.py1
2 files changed, 7 insertions, 0 deletions
diff --git a/bitbake/lib/bb/codeparser.py b/bitbake/lib/bb/codeparser.py
index c0b1d7966f..ecae7b0808 100644
--- a/bitbake/lib/bb/codeparser.py
+++ b/bitbake/lib/bb/codeparser.py
@@ -84,6 +84,12 @@ def add_module_functions(fn, functions, namespace):
84 modulecode_deps[name] = [parser.references.copy(), execs, parser.var_execs.copy(), parser.contains.copy()] 84 modulecode_deps[name] = [parser.references.copy(), execs, parser.var_execs.copy(), parser.contains.copy()]
85 #bb.warn("%s: %s\nRefs:%s Execs: %s %s %s" % (name, src, parser.references, parser.execs, parser.var_execs, parser.contains)) 85 #bb.warn("%s: %s\nRefs:%s Execs: %s %s %s" % (name, src, parser.references, parser.execs, parser.var_execs, parser.contains))
86 86
87def update_module_dependencies(d):
88 for mod in modulecode_deps:
89 excludes = set((d.getVarFlag(mod, "vardepsexclude") or "").split())
90 if excludes:
91 modulecode_deps[mod] = [modulecode_deps[mod][0] - excludes, modulecode_deps[mod][1] - excludes, modulecode_deps[mod][2] - excludes, modulecode_deps[mod][3]]
92
87# A custom getstate/setstate using tuples is actually worth 15% cachesize by 93# A custom getstate/setstate using tuples is actually worth 15% cachesize by
88# avoiding duplication of the attribute names! 94# avoiding duplication of the attribute names!
89class SetCache(object): 95class SetCache(object):
diff --git a/bitbake/lib/bb/cookerdata.py b/bitbake/lib/bb/cookerdata.py
index 59ecbec69d..650ae05ec9 100644
--- a/bitbake/lib/bb/cookerdata.py
+++ b/bitbake/lib/bb/cookerdata.py
@@ -311,6 +311,7 @@ class CookerDataBuilder(object):
311 logger.exception("Error parsing configuration files") 311 logger.exception("Error parsing configuration files")
312 raise bb.BBHandledException() 312 raise bb.BBHandledException()
313 313
314 bb.codeparser.update_module_dependencies(self.data)
314 315
315 # Handle obsolete variable names 316 # Handle obsolete variable names
316 d = self.data 317 d = self.data