aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>2005-11-13 19:07:00 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-13 21:14:14 -0500
commit2ab23c95a0b77d45dc764dd4aed48fe6e8906e59 (patch)
tree025735a1a35238ca2e2045b68322d350ad6d81b5 /Makefile
parent3b66a1edb01b82269a668a478625765b1fa4936f (diff)
[PATCH] Kbuild: index asm-$(SUBARCH) headers for UML
In Uml, many definitions are borrowed from underlying subarch headers (with #include <asm/arch/stuff.h>). And it has become annoying to keep switching tag files all time, so by default index the underlying subarch headers too. Btw, it adds negligible space to the tags file (less than 1M surely, IIRC it was around 500k over 40M). Finally, preserve the ALLSOURCE_ARCHS command line option (I hope) - if it is set, it is used for headers too as before. But check my construct please, I didn't test this. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Acked-by: Jeff Dike <jdike@addtoit.com> Cc: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8560b79268ba..c31914400953 100644
--- a/Makefile
+++ b/Makefile
@@ -1193,6 +1193,17 @@ else
1193__srctree = $(srctree)/ 1193__srctree = $(srctree)/
1194endif 1194endif
1195 1195
1196ifeq ($(ALLSOURCE_ARCHS),)
1197ifeq ($(ARCH),um)
1198ALLINCLUDE_ARCHS := $(ARCH) $(SUBARCH)
1199else
1200ALLINCLUDE_ARCHS := $(ARCH)
1201endif
1202else
1203#Allow user to specify only ALLSOURCE_PATHS on the command line, keeping existing behaviour.
1204ALLINCLUDE_ARCHS := $(ALLSOURCE_ARCHS)
1205endif
1206
1196ALLSOURCE_ARCHS := $(ARCH) 1207ALLSOURCE_ARCHS := $(ARCH)
1197 1208
1198define all-sources 1209define 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 ; \