summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kconfiglib.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index a885149..70a4477 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -869,6 +869,9 @@ class Config():
self.parse_expr_cur_sym_or_choice.referenced_syms.add(sym_or_string)
next_token = feed.peek_next()
+
+ # For conditional expressions ('depends on <expr>', '... if <expr>',
+ # etc.), "m" and m are rewritten to "m" && MODULES.
if next_token != T_EQUAL and next_token != T_UNEQUAL:
if self.parse_expr_transform_m and (sym_or_string is self.m or
sym_or_string == "m"):