kbuild: make includecheck work in KBUILD_OUTDIR

This patch fixes the includecheck 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>
This commit is contained in:
Peter Foley 2011-04-26 17:18:29 -04:00 committed by Michal Marek
parent 9663d9890d
commit 436f876ccb
1 changed files with 1 additions and 1 deletions

View File

@ -1396,7 +1396,7 @@ tags TAGS cscope gtags: FORCE
PHONY += includecheck versioncheck coccicheck namespacecheck export_report
includecheck:
find * $(RCS_FIND_IGNORE) \
find $(srctree)/* $(RCS_FIND_IGNORE) \
-name '*.[hcS]' -type f -print | sort \
| xargs $(PERL) -w $(srctree)/scripts/checkincludes.pl