diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -1159,19 +1159,25 @@ else | |||
1159 | __srctree = $(srctree)/ | 1159 | __srctree = $(srctree)/ |
1160 | endif | 1160 | endif |
1161 | 1161 | ||
1162 | ALLSOURCE_ARCHS := $(ARCH) | ||
1163 | |||
1162 | define all-sources | 1164 | define 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 ) |
1177 | endef | 1183 | endef |