aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 001a473234f5..92cbc05c31ad 100644
--- a/Makefile
+++ b/Makefile
@@ -1278,10 +1278,7 @@ endif
1278ALLSOURCE_ARCHS := $(ARCH) 1278ALLSOURCE_ARCHS := $(ARCH)
1279 1279
1280define find-sources 1280define find-sources
1281 ( find $(__srctree) $(RCS_FIND_IGNORE) \ 1281 ( for ARCH in $(ALLSOURCE_ARCHS) ; do \
1282 \( -name include -o -name arch \) -prune -o \
1283 -name $1 -print; \
1284 for ARCH in $(ALLSOURCE_ARCHS) ; do \
1285 find $(__srctree)arch/$${ARCH} $(RCS_FIND_IGNORE) \ 1282 find $(__srctree)arch/$${ARCH} $(RCS_FIND_IGNORE) \
1286 -name $1 -print; \ 1283 -name $1 -print; \
1287 done ; \ 1284 done ; \
@@ -1295,7 +1292,11 @@ define find-sources
1295 -name $1 -print; \ 1292 -name $1 -print; \
1296 done ; \ 1293 done ; \
1297 find $(__srctree)include/asm-generic $(RCS_FIND_IGNORE) \ 1294 find $(__srctree)include/asm-generic $(RCS_FIND_IGNORE) \
1298 -name $1 -print ) 1295 -name $1 -print; \
1296 find $(__srctree) $(RCS_FIND_IGNORE) \
1297 \( -name include -o -name arch \) -prune -o \
1298 -name $1 -print; \
1299 )
1299endef 1300endef
1300 1301
1301define all-sources 1302define all-sources