Skip to content

Commit

Permalink
kconfig: split util.c out of parser.y
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
masahir0y committed Nov 11, 2019
1 parent 78a20a0 commit 521b29b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/kconfig/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ help:
# ===========================================================================
# object files used by all kconfig flavours
common-objs := confdata.o expr.o lexer.lex.o parser.tab.o preprocess.o \
symbol.o
symbol.o util.o

$(obj)/lexer.lex.o: $(obj)/parser.tab.h
HOSTCFLAGS_lexer.lex.o := -I $(srctree)/$(src)
Expand Down
1 change: 0 additions & 1 deletion scripts/kconfig/parser.y
Original file line number Diff line number Diff line change
Expand Up @@ -727,5 +727,4 @@ void zconfdump(FILE *out)
}
}

#include "util.c"
#include "menu.c"

0 comments on commit 521b29b

Please sign in to comment.