Commit 9663d9890d80408c4a5c8280c5db775fbe082203
Committed by
Michal Marek
1 parent
279f3dd356
Exists in
master
and in
39 other branches
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>
Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff
Makefile
... | ... | @@ -991,7 +991,8 @@ |
991 | 991 | |
992 | 992 | PHONY += headerdep |
993 | 993 | headerdep: |
994 | - $(Q)find include/ -name '*.h' | xargs --max-args 1 scripts/headerdep.pl | |
994 | + $(Q)find $(srctree)/include/ -name '*.h' | xargs --max-args 1 \ | |
995 | + $(srctree)/scripts/headerdep.pl -I$(srctree)/include | |
995 | 996 | |
996 | 997 | # --------------------------------------------------------------------------- |
997 | 998 |