From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Jones Subject: [PATCH kvm-unit-tests 1/2] Makefile: fix cscope target Date: Tue, 21 Nov 2017 17:49:20 +0100 Message-ID: <20171121164921.8396-2-drjones@redhat.com> References: <20171121164921.8396-1-drjones@redhat.com> Cc: pbonzini@redhat.com, rkrcmar@redhat.com To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:36298 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751145AbdKUQtY (ORCPT ); Tue, 21 Nov 2017 11:49:24 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E2BFE13AAA for ; Tue, 21 Nov 2017 16:49:24 +0000 (UTC) In-Reply-To: <20171121164921.8396-1-drjones@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Since 031755db "arm: enable vmalloc" one of arm's source files is a symlink. cscope doesn't like that. Fix how we generate cscope.files in order to make it happy. Signed-off-by: Andrew Jones --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 72313347b8b0..7c0f8e220912 100644 --- a/Makefile +++ b/Makefile @@ -121,5 +121,5 @@ cscope: cscope_dirs = lib lib/libfdt lib/linux $(TEST_DIR) $(ARCH_LIBDIRS) lib/a cscope: $(RM) ./cscope.* find -L $(cscope_dirs) -maxdepth 1 \ - -name '*.[chsS]' -print | sed 's,^\./,,' | sort -u > ./cscope.files + -name '*.[chsS]' -exec realpath --relative-base=$(PWD) {} \; | sort -u > ./cscope.files cscope -bk -- 2.13.6