From: Sam Ravnborg Date: Sun, 22 Jun 2008 19:41:13 +0000 (+0200) Subject: kbuild: support arch/$ARCH/include for tags, cscope X-Git-Tag: v2.6.27-rc1~58^2~14 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a53ce098a763a33311b60c53161572f5789d5594;p=linux-2.6-omap-h63xx.git kbuild: support arch/$ARCH/include for tags, cscope Signed-off-by: Sam Ravnborg --- diff --git a/Makefile b/Makefile index c5ab2b8a138..ad0533b9a0d 100644 --- 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) \