aboutsummaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-11-29 13:40:23 +0000
committerlloyd <[email protected]>2009-11-29 13:40:23 +0000
commit08cecf6c27b3ae41a20b78b64c2ca21f385a7804 (patch)
tree3e046204c9cedf78ca28df92bcd276a8a3747803 /configure.py
parent4a94c35f8c9b73666a53a14a9b0a2ee50a742e89 (diff)
Add a check to configure.py that warns if any module has a dependency listed
that does not exist. This is mostly for my benefit.
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/configure.py b/configure.py
index 274620e60..58652079a 100755
--- a/configure.py
+++ b/configure.py
@@ -434,6 +434,17 @@ class ModuleInfo(object):
deps.append(self.parent_module)
return deps
+ """
+ Ensure that all dependencies of this module actually exist, warning
+ about any that do not
+ """
+ def dependencies_exist(self, modules):
+ all_deps = map(lambda s: s.split('|'), self.dependencies())
+
+ for missing in filter(lambda s: s not in modules, sum(all_deps, [])):
+ logging.warn("Module '%s', dep of '%s', does not exist" % (
+ missing, self.basename))
+
def __cmp__(self, other):
if self.basename < other.basename:
return -1
@@ -913,6 +924,9 @@ Determine which modules to load based on options, target, etc
"""
def choose_modules_to_use(modules, archinfo, options):
+ for mod in modules.values():
+ mod.dependencies_exist(modules)
+
to_load = []
maybe_dep = []
not_using_because = {}