提交 de2addf5 编写于 作者: I Ian Campbell 提交者: Sam Ravnborg

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: NIan Campbell <ijc@hellion.org.uk>
Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
上级 f03b283f
...@@ -1436,7 +1436,8 @@ ALLSOURCE_ARCHS := $(SRCARCH) ...@@ -1436,7 +1436,8 @@ ALLSOURCE_ARCHS := $(SRCARCH)
define find-sources define find-sources
( for arch in $(ALLSOURCE_ARCHS) ; do \ ( for arch in $(ALLSOURCE_ARCHS) ; do \
find $(__srctree)arch/$${arch} $(RCS_FIND_IGNORE) \ find $(__srctree)arch/$${arch} $(RCS_FIND_IGNORE) \
-name $1 -print; \ -wholename $(__srctree)arch/$${arch}/include/asm -type d -prune \
-o -name $1 -print; \
done ; \ done ; \
find $(__srctree)security/selinux/include $(RCS_FIND_IGNORE) \ find $(__srctree)security/selinux/include $(RCS_FIND_IGNORE) \
-name $1 -print; \ -name $1 -print; \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册