diff options
author | Roman Zippel <zippel@linux-m68k.org> | 2008-01-13 22:50:54 -0500 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2008-01-28 17:14:39 -0500 |
commit | 93449082e905ce73d0346d617dd67c4b668b58af (patch) | |
tree | eba7030f32ce18fa71562224ee2e0d8ddda33421 /scripts/kconfig/lkc.h | |
parent | 7a962923359768e04137125bd479fd0dfa6117d3 (diff) |
kconfig: environment symbol support
Add the possibility to import a value from the environment into kconfig
via the option syntax. Beside flexibility this has the advantage
providing proper dependencies.
Documented the options syntax.
Signed-off-by: Roman Zippel <zippel@linux-m68k.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 8a07ee4f6bd..4bc68f20a73 100644 --- a/scripts/kconfig/lkc.h +++ b/scripts/kconfig/lkc.h | |||
@@ -44,6 +44,7 @@ extern "C" { | |||
44 | 44 | ||
45 | #define T_OPT_MODULES 1 | 45 | #define T_OPT_MODULES 1 |
46 | #define T_OPT_DEFCONFIG_LIST 2 | 46 | #define T_OPT_DEFCONFIG_LIST 2 |
47 | #define T_OPT_ENV 3 | ||
47 | 48 | ||
48 | struct kconf_id { | 49 | struct kconf_id { |
49 | int name; | 50 | int name; |
@@ -74,6 +75,7 @@ void kconfig_load(void); | |||
74 | 75 | ||
75 | /* menu.c */ | 76 | /* menu.c */ |
76 | void menu_init(void); | 77 | void menu_init(void); |
78 | void menu_warn(struct menu *menu, const char *fmt, ...); | ||
77 | struct menu *menu_add_menu(void); | 79 | struct menu *menu_add_menu(void); |
78 | void menu_end_menu(void); | 80 | void menu_end_menu(void); |
79 | void menu_add_entry(struct symbol *sym); | 81 | void menu_add_entry(struct symbol *sym); |
@@ -103,6 +105,8 @@ void str_printf(struct gstr *gs, const char *fmt, ...); | |||
103 | const char *str_get(struct gstr *gs); | 105 | const char *str_get(struct gstr *gs); |
104 | 106 | ||
105 | /* symbol.c */ | 107 | /* symbol.c */ |
108 | extern struct expr *sym_env_list; | ||
109 | |||
106 | void sym_init(void); | 110 | void sym_init(void); |
107 | void sym_clear_all_valid(void); | 111 | void sym_clear_all_valid(void); |
108 | void sym_set_all_changed(void); | 112 | void sym_set_all_changed(void); |
@@ -110,6 +114,7 @@ void sym_set_changed(struct symbol *sym); | |||
110 | struct symbol *sym_check_deps(struct symbol *sym); | 114 | struct symbol *sym_check_deps(struct symbol *sym); |
111 | struct property *prop_alloc(enum prop_type type, struct symbol *sym); | 115 | struct property *prop_alloc(enum prop_type type, struct symbol *sym); |
112 | struct symbol *prop_get_symbol(struct property *prop); | 116 | struct symbol *prop_get_symbol(struct property *prop); |
117 | struct property *sym_get_env_prop(struct symbol *sym); | ||
113 | 118 | ||
114 | static inline tristate sym_get_tristate_value(struct symbol *sym) | 119 | static inline tristate sym_get_tristate_value(struct symbol *sym) |
115 | { | 120 | { |