diff options
-rw-r--r-- | Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -1193,6 +1193,17 @@ else | |||
1193 | __srctree = $(srctree)/ | 1193 | __srctree = $(srctree)/ |
1194 | endif | 1194 | endif |
1195 | 1195 | ||
1196 | ifeq ($(ALLSOURCE_ARCHS),) | ||
1197 | ifeq ($(ARCH),um) | ||
1198 | ALLINCLUDE_ARCHS := $(ARCH) $(SUBARCH) | ||
1199 | else | ||
1200 | ALLINCLUDE_ARCHS := $(ARCH) | ||
1201 | endif | ||
1202 | else | ||
1203 | #Allow user to specify only ALLSOURCE_PATHS on the command line, keeping existing behaviour. | ||
1204 | ALLINCLUDE_ARCHS := $(ALLSOURCE_ARCHS) | ||
1205 | endif | ||
1206 | |||
1196 | ALLSOURCE_ARCHS := $(ARCH) | 1207 | ALLSOURCE_ARCHS := $(ARCH) |
1197 | 1208 | ||
1198 | define all-sources | 1209 | define all-sources |
@@ -1208,7 +1219,7 @@ define all-sources | |||
1208 | find $(__srctree)include $(RCS_FIND_IGNORE) \ | 1219 | find $(__srctree)include $(RCS_FIND_IGNORE) \ |
1209 | \( -name config -o -name 'asm-*' \) -prune \ | 1220 | \( -name config -o -name 'asm-*' \) -prune \ |
1210 | -o -name '*.[chS]' -print; \ | 1221 | -o -name '*.[chS]' -print; \ |
1211 | for ARCH in $(ALLSOURCE_ARCHS) ; do \ | 1222 | for ARCH in $(ALLINCLUDE_ARCHS) ; do \ |
1212 | find $(__srctree)include/asm-$${ARCH} $(RCS_FIND_IGNORE) \ | 1223 | find $(__srctree)include/asm-$${ARCH} $(RCS_FIND_IGNORE) \ |
1213 | -name '*.[chS]' -print; \ | 1224 | -name '*.[chS]' -print; \ |
1214 | done ; \ | 1225 | done ; \ |