summaryrefslogtreecommitdiffstats
path: root/scripts/config/zconf.y
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-03-04 14:04:33 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-03-04 14:04:33 +0000
commitcbc765de67bc4e947a61323fbcf9b0e01f66c606 (patch)
treec574bee89418b471a4f613a34eaad0d11bd85c1e /scripts/config/zconf.y
parent34a4576552eb459c762a56202077b42c9e51661e (diff)
force a config reset when the user changes the target platform in menuconfig
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6503 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 83243f5ef..ce13f0269 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) {