aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorIan Campbell <ijc@hellion.org.uk>2008-10-28 09:36:25 -0400
committerSam Ravnborg <sam@ravnborg.org>2008-10-29 17:27:17 -0400
commitde2addf592894b31b8149cca008f00d8102401e9 (patch)
treee3341ff1b9bea3392def8879bad68080f61aca17 /Makefile
parentf03b283f081f538ec71b9e87cb8411bb62e2abc9 (diff)
kbuild: do not include arch/<ARCH>/include/asm in find-sources twice.
Architectures which have moved their includes to arch/<ARCH>/include now list the headers twice in the source listing used by "make cscope" and friends, causing those tools to list symbols twice. Skipping these files in the ALLSOURCE_ARCHS pass rather than removing the ALLINCLUDE_ARCHS pass preserves the semantics of the later. Signed-off-by: Ian Campbell <ijc@hellion.org.uk> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ffac7126c944..d50081751e02 100644
--- a/Makefile
+++ b/Makefile
@@ -1436,7 +1436,8 @@ ALLSOURCE_ARCHS := $(SRCARCH)
1436define find-sources 1436define find-sources
1437 ( for arch in $(ALLSOURCE_ARCHS) ; do \ 1437 ( for arch in $(ALLSOURCE_ARCHS) ; do \
1438 find $(__srctree)arch/$${arch} $(RCS_FIND_IGNORE) \ 1438 find $(__srctree)arch/$${arch} $(RCS_FIND_IGNORE) \
1439 -name $1 -print; \ 1439 -wholename $(__srctree)arch/$${arch}/include/asm -type d -prune \
1440 -o -name $1 -print; \
1440 done ; \ 1441 done ; \
1441 find $(__srctree)security/selinux/include $(RCS_FIND_IGNORE) \ 1442 find $(__srctree)security/selinux/include $(RCS_FIND_IGNORE) \
1442 -name $1 -print; \ 1443 -name $1 -print; \