aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/config/zconf.y
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-03-04 14:04:33 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-03-04 14:04:33 +0000
commiteea7bb328dfbd8ad1fdc451c6c57b87c9a0719e4 (patch)
tree762e679fc4d5702436a719a3ed863e3218a67295 /scripts/config/zconf.y
parent026e6046eb08949eda01b116da8947a06e407e17 (diff)
downloadupstream-eea7bb328dfbd8ad1fdc451c6c57b87c9a0719e4.tar.gz
upstream-eea7bb328dfbd8ad1fdc451c6c57b87c9a0719e4.tar.bz2
upstream-eea7bb328dfbd8ad1fdc451c6c57b87c9a0719e4.zip
force a config reset when the user changes the target platform in menuconfig
SVN-Revision: 6503
Diffstat (limited to 'scripts/config/zconf.y')
-rw-r--r--scripts/config/zconf.y8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/config/zconf.y b/scripts/config/zconf.y
index 83243f5efe..ce13f02695 100644
--- a/scripts/config/zconf.y
+++ b/scripts/config/zconf.y
@@ -72,6 +72,7 @@ static struct menu *current_menu, *current_entry;
%token <id>T_SELECT
%token <id>T_RANGE
%token <id>T_ON
+%token <id>T_RESET
%token <string> T_WORD
%token <string> T_WORD_QUOTE
%token T_UNEQUAL
@@ -118,7 +119,7 @@ stmt_list:
;
option_name:
- T_DEPENDS | T_PROMPT | T_TYPE | T_SELECT | T_OPTIONAL | T_RANGE | T_DEFAULT
+ T_DEPENDS | T_PROMPT | T_TYPE | T_SELECT | T_OPTIONAL | T_RANGE | T_DEFAULT | T_RESET
;
common_stmt:
@@ -274,6 +275,11 @@ choice_option: T_OPTIONAL T_EOL
printd(DEBUG_PARSE, "%s:%d:optional\n", zconf_curname(), zconf_lineno());
};
+choice_option: T_RESET T_EOL
+{
+ current_entry->sym->flags |= SYMBOL_RESET;
+};
+
choice_option: T_DEFAULT T_WORD if_expr T_EOL
{
if ($1->stype == S_UNKNOWN) {