%token <id>T_PROMPT
%token <id>T_TYPE
%token <id>T_DEFAULT
+%token <id>T_DESELECT
%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
;
option_name:
- T_DEPENDS | T_PROMPT | T_TYPE | T_SELECT | T_OPTIONAL | T_RANGE | T_DEFAULT
+ T_DEPENDS | T_PROMPT | T_TYPE | T_DESELECT | T_SELECT | T_OPTIONAL | T_RANGE | T_DEFAULT | T_RESET
;
common_stmt:
$1->stype);
};
+config_option: T_DESELECT T_WORD if_expr T_EOL
+{
+ menu_add_symbol(P_DESELECT, sym_lookup($2, 0), $3);
+ printd(DEBUG_PARSE, "%s:%d:deselect\n", zconf_curname(), zconf_lineno());
+};
+
config_option: T_SELECT T_WORD if_expr T_EOL
{
menu_add_symbol(P_SELECT, sym_lookup($2, 0), $3);
printd(DEBUG_PARSE, "%s:%d:optional\n", zconf_curname(), zconf_lineno());
};
+choice_option: T_RESET if_expr T_EOL
+{
+ menu_add_prop(P_RESET, NULL, NULL, $2);
+};
+
choice_option: T_DEFAULT T_WORD if_expr T_EOL
{
if ($1->stype == S_UNKNOWN) {
sym_init();
menu_init();
modules_sym = sym_lookup("MODULES", 0);
- rootmenu.prompt = menu_add_prompt(P_MENU, "Linux Kernel Configuration", NULL);
+ rootmenu.prompt = menu_add_prompt(P_MENU, "OpenWrt Configuration", NULL);
#if YYDEBUG
if (getenv("ZCONF_DEBUG"))