Permalink
Browse files

kbuild: support arch/$ARCH/include for tags, cscope

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
  • Loading branch information...
1 parent 2fb9b1b commit a53ce098a763a33311b60c53161572f5789d5594 Sam Ravnborg committed Jun 22, 2008
Showing with 5 additions and 1 deletion.
  1. +5 −1 Makefile
View
@@ -1416,7 +1416,11 @@ define find-sources
\( -name config -o -name 'asm-*' \) -prune \
-o -name $1 -print; \
for arch in $(ALLINCLUDE_ARCHS) ; do \
- find $(__srctree)include/asm-$${arch} $(RCS_FIND_IGNORE) \
+ test -e $(__srctree)include/asm-$${arch} && \
+ find $(__srctree)include/asm-$${arch} $(RCS_FIND_IGNORE) \
+ -name $1 -print; \
+ test -e $(__srctree)arch/$${arch}/include/asm && \
+ find $(__srctree)arch/$${arch}/include/asm $(RCS_FIND_IGNORE) \
-name $1 -print; \
done ; \
find $(__srctree)include/asm-generic $(RCS_FIND_IGNORE) \

0 comments on commit a53ce09

Please sign in to comment.