aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSam Ravnborg <sam@mars.ravnborg.org>2003-09-07 01:26:51 +0200
committerSam Ravnborg <sam@mars.ravnborg.org>2003-09-07 01:26:51 +0200
commit0292ae9d3cb57a685f00d0acdac70900ccac0a16 (patch)
treec7db135cfa0446e4f42fa87f755ca4cada56902b /scripts
parent6126f86bdbc2b5ff728cdb8a537872a16ace14d6 (diff)
downloadhistory-0292ae9d3cb57a685f00d0acdac70900ccac0a16.tar.gz
kbuild: genksyms, add explicit reference to include dir
genksyms references .h files in the genksyms directory from a generated .c file. Explicit tell kbuild to search the genksyms directory in the kernel src tree for .h files.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/genksyms/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/genksyms/Makefile b/scripts/genksyms/Makefile
index ed8b9635e1376..76f1fd10e16fb 100644
--- a/scripts/genksyms/Makefile
+++ b/scripts/genksyms/Makefile
@@ -4,12 +4,14 @@ always := $(host-progs)
genksyms-objs := genksyms.o parse.o lex.o
-HOSTCFLAGS_parse.o := -Wno-uninitialized
+# -I needed for generated C source (shipped source)
+HOSTCFLAGS_parse.o := -Wno-uninitialized -I$(src)
# dependencies on generated files need to be listed explicitly
-
$(obj)/lex.o: $(obj)/parse.h $(obj)/keywords.c
+# -I needed for generated C source (shipped source)
+HOSTCFLAGS_lex.o := -I$(src)
ifdef GENERATE_PARSER