force a config reset when the user changes the target platform in menuconfig
[openwrt/openwrt.git] / scripts / config / mconf.c
index 489648194251e742a37428d71c0276aeeb3aeffb..083b23efa3be2f7af61b31c4c86dd489b8dc1a20 100644 (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: