Commit a53ce098a763a33311b60c53161572f5789d5594
1 parent
2fb9b1bd9d
Exists in
master
and in
20 other branches
kbuild: support arch/$ARCH/include for tags, cscope
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Showing 1 changed file with 5 additions and 1 deletions Side-by-side Diff
Makefile
... | ... | @@ -1416,7 +1416,11 @@ |
1416 | 1416 | \( -name config -o -name 'asm-*' \) -prune \ |
1417 | 1417 | -o -name $1 -print; \ |
1418 | 1418 | for arch in $(ALLINCLUDE_ARCHS) ; do \ |
1419 | - find $(__srctree)include/asm-$${arch} $(RCS_FIND_IGNORE) \ | |
1419 | + test -e $(__srctree)include/asm-$${arch} && \ | |
1420 | + find $(__srctree)include/asm-$${arch} $(RCS_FIND_IGNORE) \ | |
1421 | + -name $1 -print; \ | |
1422 | + test -e $(__srctree)arch/$${arch}/include/asm && \ | |
1423 | + find $(__srctree)arch/$${arch}/include/asm $(RCS_FIND_IGNORE) \ | |
1420 | 1424 | -name $1 -print; \ |
1421 | 1425 | done ; \ |
1422 | 1426 | find $(__srctree)include/asm-generic $(RCS_FIND_IGNORE) \ |