From: Peter Foley Date: Tue, 26 Apr 2011 21:17:11 +0000 (-0400) Subject: kbuild: make headerdep work in KBUILD_OUTDIR X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9663d9890d80408c4a5c8280c5db775fbe082203;p=mv-sheeva.git 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 Signed-off-by: Michal Marek --- diff --git a/Makefile b/Makefile index 02134de65ac..6b21de15c82 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 # ---------------------------------------------------------------------------