kbuild: support arch/$ARCH/include for tags, cscope
authorSam Ravnborg <sam@ravnborg.org>
Sun, 22 Jun 2008 19:41:13 +0000 (21:41 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Fri, 25 Jul 2008 20:12:33 +0000 (22:12 +0200)
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Makefile

index c5ab2b8a138aabe1f02d01e3e95228f91ed64bf0..ad0533b9a0d473d4de9127965e51462cd534edae 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -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) \