From eea7bb328dfbd8ad1fdc451c6c57b87c9a0719e4 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 4 Mar 2007 14:04:33 +0000 Subject: force a config reset when the user changes the target platform in menuconfig SVN-Revision: 6503 --- scripts/config/mconf.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts/config/mconf.c') diff --git a/scripts/config/mconf.c b/scripts/config/mconf.c index 4896481942..083b23efa3 100644 --- a/scripts/config/mconf.c +++ b/scripts/config/mconf.c @@ -920,6 +920,9 @@ static void conf_choice(struct menu *menu) case 0: if (sscanf(input_buf, "%p", &child) != 1) break; + if ((menu->sym->flags & SYMBOL_RESET) && + sym_get_tristate_value(child->sym) != yes) + conf_reset(); sym_set_tristate_value(child->sym, yes); return; case 1: -- cgit v1.2.3