From 534d54ef1ea8a606987dae15bc3a4585833b301b Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Sat, 4 Nov 2017 01:15:34 +0100 Subject: 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. --- kconfiglib.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'kconfiglib.py') 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) -- cgit v1.2.3