kbuild: make versioncheck work in KBUILD_OUTDIR
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / Makefile
index 9b6610e005aa037b2e216bdb792e7d4d22ecfc56..bfe3e36c2c435700edae733cb6bd25b1da9af0e8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1401,7 +1401,7 @@ includecheck:
                | xargs $(PERL) -w $(srctree)/scripts/checkincludes.pl
 
 versioncheck:
-       find * $(RCS_FIND_IGNORE) \
+       find $(srctree)/* $(RCS_FIND_IGNORE) \
                -name '*.[hcS]' -type f -print | sort \
                | xargs $(PERL) -w $(srctree)/scripts/checkversion.pl