diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2017-11-04 01:15:34 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2017-11-04 01:21:06 +0100 |
| commit | 534d54ef1ea8a606987dae15bc3a4585833b301b (patch) | |
| tree | 48fb505f13ccaa4609f95b6ef14dfa242f60cc4a /kconfiglib.py | |
| parent | 2c04862d0a2c05430df878b8fddbe01df139b37a (diff) | |
Don't put 0 in .assignable for y-mode choice syms
Just return (2,). More intuitive, and makes y-mode choices just work in
the menuconfig example.
Turns out to be simple to implement with choice symbol visibility
depending on the Choice.
Diffstat (limited to 'kconfiglib.py')
| -rw-r--r-- | kconfiglib.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index 1d0c2d0..d8f070b 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -2720,6 +2720,9 @@ class Symbol(object): rev_dep_val = expr_value(self.rev_dep) if vis == 2: + if self.choice: + return (2,) + if not rev_dep_val: if self.type == BOOL or expr_value(self.weak_rev_dep) == 2: return (0, 2) |
