]> git.hungrycats.org Git - linux/commitdiff
[PATCH] kconfig "choice" fixes
authorRoman Zippel <zippel@linux-m68k.org>
Wed, 30 Oct 2002 04:20:29 +0000 (20:20 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Wed, 30 Oct 2002 04:20:29 +0000 (20:20 -0800)
This fixes "choice" behaviour - it sets the correct default and fixes
oldconfig.

scripts/kconfig/conf.c
scripts/kconfig/symbol.c

index 74c94c233aac5d9f6732abe96453c87d3f354d5b..e2f0833c24b317867cd8c29b2bc1d6415de1b52d 100644 (file)
@@ -342,6 +342,8 @@ static int conf_choice(struct menu *menu)
                case ask_new:
                case ask_silent:
                case ask_all:
+                       if (is_new)
+                               sym->flags |= SYMBOL_NEW;
                        conf_askvalue(sym, menu_get_prompt(def_menu));
                        strip(line);
                        break;
index 59c88d253bb74bf4372f925efc2138c088a6d298..2137b6a04d74ecec5b99a1a472141b615d31f3a1 100644 (file)
@@ -204,7 +204,8 @@ void sym_calc_value(struct symbol *sym)
                                        sym_calc_value(prop->def);
                                        newval = prop->def->curr;
                                }
-                       }
+                       } else
+                               S_TRI(newval) = S_TRI(sym->def);
                } else
                        newval = sym->def;