Skip to content

Commit 521b29b

Browse files
committed
kconfig: split util.c out of parser.y
util.c exists both in scripts/kconfig/ and scripts/kconfig/lxdialog. Prior to commit 54b8ae6 ("kbuild: change *FLAGS_<basetarget>.o to take the path relative to $(obj)"), Kbuild could not pass different flags to source files with the same basename. Now that this issue was solved, you can split util.c out of parser.y and compile them independently of each other. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent 78a20a0 commit 521b29b

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

‎scripts/kconfig/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ help:
144144
# ===========================================================================
145145
# object files used by all kconfig flavours
146146
common-objs := confdata.o expr.o lexer.lex.o parser.tab.o preprocess.o \
147-
symbol.o
147+
symbol.o util.o
148148

149149
$(obj)/lexer.lex.o: $(obj)/parser.tab.h
150150
HOSTCFLAGS_lexer.lex.o := -I $(srctree)/$(src)

‎scripts/kconfig/parser.y‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,5 +727,4 @@ void zconfdump(FILE *out)
727727
}
728728
}
729729

730-
#include "util.c"
731730
#include "menu.c"

0 commit comments

Comments
 (0)