summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorPeter Foley <pefoley2@verizon.net>2011-04-26 17:17:11 -0400
committerMichal Marek <mmarek@suse.cz>2011-05-12 16:30:40 +0200
commit9663d9890d80408c4a5c8280c5db775fbe082203 (patch)
tree2b699772031e3af8143b3205d836c004bf7e1db8 /Makefile
parent279f3dd3569d08226f8b8e41704d65e8b679d3d7 (diff)
downloadlinux-9663d9890d80408c4a5c8280c5db775fbe082203.tar.gz
linux-9663d9890d80408c4a5c8280c5db775fbe082203.tar.bz2
linux-9663d9890d80408c4a5c8280c5db775fbe082203.zip
kbuild: make headerdep work in KBUILD_OUTDIR
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 02134de65acf..6b21de15c82e 100644
--- 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
# ---------------------------------------------------------------------------