aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 8294cd73b3aa..206b2833ee6b 100644
--- a/Makefile
+++ b/Makefile
@@ -1159,19 +1159,25 @@ else
1159__srctree = $(srctree)/ 1159__srctree = $(srctree)/
1160endif 1160endif
1161 1161
1162ALLSOURCE_ARCHS := $(ARCH)
1163
1162define all-sources 1164define all-sources
1163 ( find $(__srctree) $(RCS_FIND_IGNORE) \ 1165 ( find $(__srctree) $(RCS_FIND_IGNORE) \
1164 \( -name include -o -name arch \) -prune -o \ 1166 \( -name include -o -name arch \) -prune -o \
1165 -name '*.[chS]' -print; \ 1167 -name '*.[chS]' -print; \
1166 find $(__srctree)arch/$(ARCH) $(RCS_FIND_IGNORE) \ 1168 for ARCH in $(ALLSOURCE_ARCHS) ; do \
1167 -name '*.[chS]' -print; \ 1169 find $(__srctree)arch/$${ARCH} $(RCS_FIND_IGNORE) \
1170 -name '*.[chS]' -print; \
1171 done ; \
1168 find $(__srctree)security/selinux/include $(RCS_FIND_IGNORE) \ 1172 find $(__srctree)security/selinux/include $(RCS_FIND_IGNORE) \
1169 -name '*.[chS]' -print; \ 1173 -name '*.[chS]' -print; \
1170 find $(__srctree)include $(RCS_FIND_IGNORE) \ 1174 find $(__srctree)include $(RCS_FIND_IGNORE) \
1171 \( -name config -o -name 'asm-*' \) -prune \ 1175 \( -name config -o -name 'asm-*' \) -prune \
1172 -o -name '*.[chS]' -print; \ 1176 -o -name '*.[chS]' -print; \
1173 find $(__srctree)include/asm-$(ARCH) $(RCS_FIND_IGNORE) \ 1177 for ARCH in $(ALLSOURCE_ARCHS) ; do \
1174 -name '*.[chS]' -print; \ 1178 find $(__srctree)include/asm-$${ARCH} $(RCS_FIND_IGNORE) \
1179 -name '*.[chS]' -print; \
1180 done ; \
1175 find $(__srctree)include/asm-generic $(RCS_FIND_IGNORE) \ 1181 find $(__srctree)include/asm-generic $(RCS_FIND_IGNORE) \
1176 -name '*.[chS]' -print ) 1182 -name '*.[chS]' -print )
1177endef 1183endef