diff options
Diffstat (limited to 'scripts/kconfig/menu.c')
-rw-r--r-- | scripts/kconfig/menu.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c index 3a9c67493260..c1d53200c306 100644 --- a/scripts/kconfig/menu.c +++ b/scripts/kconfig/menu.c | |||
@@ -199,6 +199,12 @@ void menu_add_option(int token, char *arg) | |||
199 | { | 199 | { |
200 | switch (token) { | 200 | switch (token) { |
201 | case T_OPT_MODULES: | 201 | case T_OPT_MODULES: |
202 | if (modules_sym) | ||
203 | zconf_error("symbol '%s' redefines option 'modules'" | ||
204 | " already defined by symbol '%s'", | ||
205 | current_entry->sym->name, | ||
206 | modules_sym->name | ||
207 | ); | ||
202 | modules_sym = current_entry->sym; | 208 | modules_sym = current_entry->sym; |
203 | break; | 209 | break; |
204 | case T_OPT_DEFCONFIG_LIST: | 210 | case T_OPT_DEFCONFIG_LIST: |