force a config reset when the user changes the target platform in menuconfig

SVN-Revision: 6503
This commit is contained in:
Felix Fietkau
2007-03-04 14:04:33 +00:00
parent 026e6046eb
commit eea7bb328d
7 changed files with 337 additions and 309 deletions

View File

@@ -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: