public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
* KBUILD: do not include arch/<ARCH>/include/asm in find-sources twice.
@ 2008-10-28 13:36 Ian Campbell
  2008-10-29 19:07 ` Sam Ravnborg
  0 siblings, 1 reply; 6+ messages in thread
From: Ian Campbell @ 2008-10-28 13:36 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: linux-kbuild

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>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: linux-kbuild@vger.kernel.org

diff -r a613b893f5b5 Makefile
--- a/Makefile	Mon Oct 27 10:29:49 2008 +0000
+++ b/Makefile	Tue Oct 28 13:33:04 2008 +0000
@@ -1435,7 +1435,8 @@
 define find-sources
         ( for arch in $(ALLSOURCE_ARCHS) ; do \
 	       find $(__srctree)arch/$${arch} $(RCS_FIND_IGNORE) \
-	            -name $1 -print; \
+		    -wholename $(__srctree)arch/$${arch}/include/asm -type d -prune \
+	            -o -name $1 -print; \
 	  done ; \
 	  find $(__srctree)security/selinux/include $(RCS_FIND_IGNORE) \
 	       -name $1 -print; \

-- 
Ian Campbell
Current Noise: Exodus - The Garden Of Bleeding

Whatever you want to do, you have to do something else first.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-10-30 11:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-28 13:36 KBUILD: do not include arch/<ARCH>/include/asm in find-sources twice Ian Campbell
2008-10-29 19:07 ` Sam Ravnborg
2008-10-29 19:51   ` Ian Campbell
2008-10-29 21:29     ` Sam Ravnborg
2008-10-30 11:02   ` Ian Campbell
2008-10-30 11:09     ` Ian Campbell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox