summaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/kconfig/Makefile')
-rw-r--r--scripts/kconfig/Makefile8
1 files changed, 2 insertions, 6 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index d3bd68754750..65cdf8c36cb4 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -143,11 +143,9 @@ help:
143 143
144# =========================================================================== 144# ===========================================================================
145# object files used by all kconfig flavours 145# object files used by all kconfig flavours
146common-objs := confdata.o expr.o symbol.o preprocess.o zconf.tab.o 146common-objs := confdata.o expr.o symbol.o preprocess.o zconf.lex.o zconf.tab.o
147 147
148targets += zconf.lex.c 148$(obj)/zconf.lex.o: $(obj)/zconf.tab.h
149
150# generated files seem to need this to find local include files
151HOSTCFLAGS_zconf.lex.o := -I$(src) 149HOSTCFLAGS_zconf.lex.o := -I$(src)
152HOSTCFLAGS_zconf.tab.o := -I$(src) 150HOSTCFLAGS_zconf.tab.o := -I$(src)
153 151
@@ -202,8 +200,6 @@ HOSTCFLAGS_gconf.o = $(shell . $(obj)/.gconf-cfg && echo $$cflags)
202 200
203$(obj)/gconf.o: $(obj)/.gconf-cfg 201$(obj)/gconf.o: $(obj)/.gconf-cfg
204 202
205$(obj)/zconf.tab.o: $(obj)/zconf.lex.c
206
207# check if necessary packages are available, and configure build flags 203# check if necessary packages are available, and configure build flags
208define filechk_conf_cfg 204define filechk_conf_cfg
209 $(CONFIG_SHELL) $< 205 $(CONFIG_SHELL) $<