Loading scripts/kconfig/Makefile +2 −2 Original line number Diff line number Diff line Loading @@ -143,8 +143,8 @@ help: # =========================================================================== # object files used by all kconfig flavours common-objs := confdata.o expr.o lexer.lex.o parser.tab.o preprocess.o \ symbol.o util.o common-objs := confdata.o expr.o lexer.lex.o menu.o parser.tab.o \ preprocess.o symbol.o util.o $(obj)/lexer.lex.o: $(obj)/parser.tab.h HOSTCFLAGS_lexer.lex.o := -I $(srctree)/$(src) Loading scripts/kconfig/internal.h 0 → 100644 +9 −0 Original line number Diff line number Diff line /* SPDX-License-Identifier: GPL-2.0-only */ #ifndef INTERNAL_H #define INTERNAL_H struct menu; extern struct menu *current_menu, *current_entry; #endif /* INTERNAL_H */ scripts/kconfig/menu.c +1 −0 Original line number Diff line number Diff line Loading @@ -9,6 +9,7 @@ #include <string.h> #include "lkc.h" #include "internal.h" static const char nohelp_text[] = "There is no help available for this option."; Loading scripts/kconfig/parser.y +2 −3 Original line number Diff line number Diff line Loading @@ -12,6 +12,7 @@ #include <stdbool.h> #include "lkc.h" #include "internal.h" #define printd(mask, fmt...) if (cdebug & (mask)) printf(fmt) Loading @@ -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; %} Loading Loading @@ -713,5 +714,3 @@ void zconfdump(FILE *out) } } } #include "menu.c" Loading
scripts/kconfig/Makefile +2 −2 Original line number Diff line number Diff line Loading @@ -143,8 +143,8 @@ help: # =========================================================================== # object files used by all kconfig flavours common-objs := confdata.o expr.o lexer.lex.o parser.tab.o preprocess.o \ symbol.o util.o common-objs := confdata.o expr.o lexer.lex.o menu.o parser.tab.o \ preprocess.o symbol.o util.o $(obj)/lexer.lex.o: $(obj)/parser.tab.h HOSTCFLAGS_lexer.lex.o := -I $(srctree)/$(src) Loading
scripts/kconfig/internal.h 0 → 100644 +9 −0 Original line number Diff line number Diff line /* SPDX-License-Identifier: GPL-2.0-only */ #ifndef INTERNAL_H #define INTERNAL_H struct menu; extern struct menu *current_menu, *current_entry; #endif /* INTERNAL_H */
scripts/kconfig/menu.c +1 −0 Original line number Diff line number Diff line Loading @@ -9,6 +9,7 @@ #include <string.h> #include "lkc.h" #include "internal.h" static const char nohelp_text[] = "There is no help available for this option."; Loading
scripts/kconfig/parser.y +2 −3 Original line number Diff line number Diff line Loading @@ -12,6 +12,7 @@ #include <stdbool.h> #include "lkc.h" #include "internal.h" #define printd(mask, fmt...) if (cdebug & (mask)) printf(fmt) Loading @@ -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; %} Loading Loading @@ -713,5 +714,3 @@ void zconfdump(FILE *out) } } } #include "menu.c"