]> git.hungrycats.org Git - linux/commitdiff
kbuild: genksyms, add explicit reference to include dir
authorSam Ravnborg <sam@mars.ravnborg.org>
Sat, 6 Sep 2003 23:26:51 +0000 (01:26 +0200)
committerSam Ravnborg <sam@mars.ravnborg.org>
Sat, 6 Sep 2003 23:26:51 +0000 (01:26 +0200)
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.

scripts/genksyms/Makefile

index ed8b9635e137657ed8f4ec647355753b3e014d87..76f1fd10e16fb2b0d912da4c26e1eb98338f822f 100644 (file)
@@ -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