summaryrefslogtreecommitdiff
path: root/kconfiglib.py
diff options
context:
space:
mode:
Diffstat (limited to 'kconfiglib.py')
-rw-r--r--kconfiglib.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index 8bb8957..612fc58 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -2726,8 +2726,10 @@ class Symbol(object):
# vis == 1
+ # Must be a tristate here, because bool m visibility gets promoted to y
+
if not rev_dep_val:
- return (1,) if expr_value(self.weak_rev_dep) != 2 else (2,)
+ return (0, 1) if expr_value(self.weak_rev_dep) != 2 else (0, 2)
if rev_dep_val == 2:
return (2,)