kbuild: make headerdep work in KBUILD_OUTDIR
authorPeter Foley <pefoley2@verizon.net>
Tue, 26 Apr 2011 21:17:11 +0000 (17:17 -0400)
committerMichal Marek <mmarek@suse.cz>
Thu, 12 May 2011 14:30:40 +0000 (16:30 +0200)
This patch fixes the headerdep target so it works when make is invoked
in KBUILD_OUTDIR.

Signed-off-by: Peter Foley <pefoley2@verizon.net>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Makefile

index 02134de65acf9f4e8b618ba7120b31ce0af3fa40..6b21de15c82eb583c121cf797e0b90e13ac5114c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -991,7 +991,8 @@ include/generated/utsrelease.h: include/config/kernel.release FORCE
 
 PHONY += headerdep
 headerdep:
-       $(Q)find include/ -name '*.h' | xargs --max-args 1 scripts/headerdep.pl
+       $(Q)find $(srctree)/include/ -name '*.h' | xargs --max-args 1 \
+       $(srctree)/scripts/headerdep.pl -I$(srctree)/include
 
 # ---------------------------------------------------------------------------