From cffbe99ee5535f02ccdbfc264f9aa744d0c9ea7d Mon Sep 17 00:00:00 2001 From: Roman Zippel Date: Thu, 5 Jun 2003 18:18:47 -0700 Subject: [PATCH] boolean symbol state fix This is an important fix to allow changing boolean symbols, whose dependency is 'm'. All internal symbol states must be converted from the tristate into boolean the state. I missed this change while adding expression support for defaults, please apply. --- scripts/kconfig/symbol.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/kconfig') diff --git a/scripts/kconfig/symbol.c b/scripts/kconfig/symbol.c index 5c62b2c09a74..11318d95d601 100644 --- a/scripts/kconfig/symbol.c +++ b/scripts/kconfig/symbol.c @@ -271,6 +271,8 @@ void sym_calc_value(struct symbol *sym) if (sym_get_type(sym) == S_BOOLEAN) { if (newval.tri == mod) newval.tri = yes; + if (sym->visible == mod) + sym->visible = yes; if (sym->rev_dep.tri == mod) sym->rev_dep.tri = yes; } -- cgit v1.2.3