diff options
author | Roman Zippel <zippel@linux-m68k.org> | 2006-06-09 01:12:44 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2006-06-09 01:31:30 -0400 |
commit | f6a88aa86027bdecfc74ef7c6bf6c68233e86bb3 (patch) | |
tree | 524a366add362ffae3fa550fd822293ffd84984e /scripts/kconfig/lkc.h | |
parent | f1d28fb043b325dad8944647a52b20287e59d8a1 (diff) |
kconfig: add symbol option config syntax
This adds the general framework to the parser to define options for config
symbols with a syntax like:
config FOO
option bar[="arg"]
Signed-off-by: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/kconfig/lkc.h')
-rw-r--r-- | scripts/kconfig/lkc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/kconfig/lkc.h b/scripts/kconfig/lkc.h index 52c296e0440e..8e89d342889e 100644 --- a/scripts/kconfig/lkc.h +++ b/scripts/kconfig/lkc.h | |||
@@ -40,6 +40,10 @@ extern "C" { | |||
40 | 40 | ||
41 | #define TF_COMMAND 0x0001 | 41 | #define TF_COMMAND 0x0001 |
42 | #define TF_PARAM 0x0002 | 42 | #define TF_PARAM 0x0002 |
43 | #define TF_OPTION 0x0004 | ||
44 | |||
45 | #define T_OPT_MODULES 1 | ||
46 | #define T_OPT_DEFCONFIG_LIST 2 | ||
43 | 47 | ||
44 | struct kconf_id { | 48 | struct kconf_id { |
45 | int name; | 49 | int name; |
@@ -78,6 +82,7 @@ struct property *menu_add_prop(enum prop_type type, char *prompt, struct expr *e | |||
78 | struct property *menu_add_prompt(enum prop_type type, char *prompt, struct expr *dep); | 82 | struct property *menu_add_prompt(enum prop_type type, char *prompt, struct expr *dep); |
79 | void menu_add_expr(enum prop_type type, struct expr *expr, struct expr *dep); | 83 | void menu_add_expr(enum prop_type type, struct expr *expr, struct expr *dep); |
80 | void menu_add_symbol(enum prop_type type, struct symbol *sym, struct expr *dep); | 84 | void menu_add_symbol(enum prop_type type, struct symbol *sym, struct expr *dep); |
85 | void menu_add_option(int token, char *arg); | ||
81 | void menu_finalize(struct menu *parent); | 86 | void menu_finalize(struct menu *parent); |
82 | void menu_set_type(int type); | 87 | void menu_set_type(int type); |
83 | 88 | ||