Skip to contentSkip to conversation

kvm: add cscope for whole userspace

PATCH Applied Sheng Yang 2 participants 2 messages Oct 14, 2008 – Oct 15, 2008

Subsystems (2)
lore
Share & tools
lore

Sheng Yang

author
#0 lore raw

PATCH 1/1 kvm: add cscope for whole userspace

Notice that the patch exclude kernel directory in cscope.files of userspace.

---
 Makefile |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
Makefile +7 -1
index 402c3e9..6581679 100644
@@ -7,7 +7,7 @@ rpmrelease = devel
 
 sane-arch = $(subst i386,x86,$(subst x86_64,x86,$(subst s390x,s390,$(ARCH))))
 
-.PHONY: kernel user libkvm qemu bios vgabios extboot clean libfdt
+.PHONY: kernel user libkvm qemu bios vgabios extboot clean libfdt cscope
 
 all: libkvm qemu
 ifneq '$(filter $(ARCH), x86_64 i386 ia64)' ''
@@ -110,7 +110,13 @@ srpm:
 clean:
 	for i in $(if $(WANT_MODULE), kernel) user libkvm qemu libfdt; do \
 		make -C $$i clean; \
+	rm -f ./cscope.*
 	done
 
 distclean: clean
 	rm -f config.mak user/config.mak
+
+cscope:
+	rm -f ./cscope.*
+	find . -wholename './kernel' -prune -o -name "*.[ch]" -print > ./cscope.files
+	cscope -b
Signature · 1 line
1.5.4.5
Applied
#1 lore raw
Quoted 2 lines · Sheng Yang

Notice that the patch exclude kernel directory in cscope.files of userspace.

Applied, thanks.

Signature · 1 line
error compiling committee.c: too many arguments to function