[PATCH kvm-unit-tests 1/2] Makefile: fix cscope target

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <drjones@xxxxxxxxxx>
---
 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




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux