aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/parser.y
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2021-04-14 00:08:17 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2021-04-14 15:26:09 +0900
commita77a05dc9cf24a8c88b9d9c70e8984f936d075f3 (patch)
tree1f5bd384aa5e1c7b946fd2d645c0408c713a95e9 /scripts/kconfig/parser.y
parentkconfig: nconf: refactor in print_in_middle() (diff)
downloadlinux-dev-a77a05dc9cf24a8c88b9d9c70e8984f936d075f3.tar.xz
linux-dev-a77a05dc9cf24a8c88b9d9c70e8984f936d075f3.zip
kconfig: split menu.c out of parser.y
Compile menu.c as an independent compilation unit. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to '')
-rw-r--r--scripts/kconfig/parser.y5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/kconfig/parser.y b/scripts/kconfig/parser.y
index e90889edf5b3..2af7ce4e1531 100644
--- a/scripts/kconfig/parser.y
+++ b/scripts/kconfig/parser.y
@@ -12,6 +12,7 @@
#include <stdbool.h>
#include "lkc.h"
+#include "internal.h"
#define printd(mask, fmt...) if (cdebug & (mask)) printf(fmt)
@@ -28,7 +29,7 @@ static bool zconf_endtoken(const char *tokenname,
struct symbol *symbol_hash[SYMBOL_HASHSIZE];
-static struct menu *current_menu, *current_entry;
+struct menu *current_menu, *current_entry;
%}
@@ -713,5 +714,3 @@ void zconfdump(FILE *out)
}
}
}
-
-#include "menu.c"