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.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c
index 5fdf10dc1d8..beeb92e75f8 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) &&
@@ -596,11 +597,10 @@ void menu_get_ext_help(struct menu *menu, struct gstr *help)
596 struct symbol *sym = menu->sym; 597 struct symbol *sym = menu->sym;
597 598
598 if (menu_has_help(menu)) { 599 if (menu_has_help(menu)) {
599 if (sym->name) { 600 if (sym->name)
600 str_printf(help, "%s%s:\n\n", CONFIG_, sym->name); 601 str_printf(help, "%s%s:\n\n", CONFIG_, sym->name);
601 str_append(help, _(menu_get_help(menu))); 602 str_append(help, _(menu_get_help(menu)));
602 str_append(help, "\n"); 603 str_append(help, "\n");
603 }
604 } else { 604 } else {
605 str_append(help, nohelp_text); 605 str_append(help, nohelp_text);
606 } 606 }