diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-08 22:48:37 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-08 22:49:24 +0100 |
| commit | 979f427e2c33ae296653d784809649b86af3fc30 (patch) | |
| tree | c2263129af1d694f75217f3d73554c381ae973ea | |
| parent | 6fa2ef815b06f56de0533c521643c293f28b38ca (diff) | |
Register dependencies from ranges.
Oversight.
| -rw-r--r-- | kconfiglib.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index 4a4e187..6a155d9 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -1582,8 +1582,8 @@ might be an error, and you should e-mail kconfiglib@gmail.com. self.dep[s].add(sym) # The directly dependent symbols of a symbol are: - # - Any symbols whose prompt or default value depends on the symbol - # - Any symbols whose rev_dep (select condition) depends on the symbol + # - Any symbols whose prompts, default values, rev_dep (select + # condition), or ranges depend on the symbol # - Any symbols that belong to the same choice statement as the symbol # (these won't be included in 'dep' as that makes the dependency # graph unwieldy, but Symbol._get_dependent() will include them) @@ -1598,6 +1598,11 @@ might be an error, and you should e-mail kconfiglib@gmail.com. add_expr_deps(sym.rev_dep, sym) + for (l, u, e) in sym.ranges: + add_expr_deps(l, sym) + add_expr_deps(u, sym) + add_expr_deps(e, sym) + if sym.is_choice_item(): choice = sym.parent |
