aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/kconfig/menu.c')
-rw-r--r--scripts/kconfig/menu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c
index 5fdf10dc1d8a..d66008639a43 100644
--- a/scripts/kconfig/menu.c
+++ b/scripts/kconfig/menu.c
@@ -3,10 +3,11 @@
3 * Released under the terms of the GNU GPL v2.0. 3 * Released under the terms of the GNU GPL v2.0.
4 */ 4 */
5 5
6#include <ctype.h>
7#include <stdarg.h>
6#include <stdlib.h> 8#include <stdlib.h>
7#include <string.h> 9#include <string.h>
8 10
9#define LKC_DIRECT_LINK
10#include "lkc.h" 11#include "lkc.h"
11 12
12static const char nohelp_text[] = N_( 13static const char nohelp_text[] = N_(
@@ -350,7 +351,7 @@ void menu_finalize(struct menu *parent)
350 last_menu->next = NULL; 351 last_menu->next = NULL;
351 } 352 }
352 353
353 sym->dir_dep.expr = parent->dep; 354 sym->dir_dep.expr = expr_alloc_or(sym->dir_dep.expr, parent->dep);
354 } 355 }
355 for (menu = parent->list; menu; menu = menu->next) { 356 for (menu = parent->list; menu; menu = menu->next) {
356 if (sym && sym_is_choice(sym) && 357 if (sym && sym_is_choice(sym) &&