When $ARCH != $TEST_DIR we should look there too. This patch cheats
though and makes cscope always look there, but then gets rid of the
duplicates generated when $ARCH == $TEST_DIR.

Signed-off-by: Andrew Jones <[email protected]>
---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index dd7e6e94bfe7b..4f28f072ae3d7 100644
--- a/Makefile
+++ b/Makefile
@@ -82,6 +82,6 @@ distclean: clean libfdt_clean
 cscope: common_dirs = lib lib/libfdt lib/asm lib/asm-generic
 cscope:
        $(RM) ./cscope.*
-       find -L $(TEST_DIR) lib/$(TEST_DIR) $(common_dirs) -maxdepth 1 \
-               -name '*.[chsS]' -print | sed 's,^\./,,' > ./cscope.files
+       find -L $(TEST_DIR) lib/$(TEST_DIR) lib/$(ARCH) $(common_dirs) 
-maxdepth 1 \
+               -name '*.[chsS]' -print | sed 's,^\./,,' | sort -u > 
./cscope.files
        cscope -bk
-- 
1.9.3

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to