Skip to contentSkip to conversation

Enable other archs to build kvmtrace tool

PATCH New Jerone Young 1 participant 3 messages Jun 12, 2008 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Enable other archs to build kvmtrace tool

These patches fix up the build system in the /user dircectory so that other archs (besides x86) can build the kvm-trace tool.

3 files changed, 3 insertions(+), 2 deletions(-)
user/Makefile              |    2 ++
user/config-powerpc.mak    |    2 +-
user/config-x86-common.mak |    1 -
#1 lore raw

PATCH 1/1 Fix building of kvmtrace tool for all archs

2 files changed, 2 insertions(+), 1 deletion(-)
user/Makefile              |    2 ++
user/config-x86-common.mak |    1 -

$(kvmtrace_objs) is defined in config-x86-common.mak. This needs to be moved to the common Makefile so everyone can build it. Also it is just one c file as opposed to multiple diffrering c files as with kvmctl.

user/Makefile +2 -0
@@ -33,6 +33,8 @@ autodepend-flags = -MMD -MF $(dir $*).$(
 
 LDFLAGS += -pthread -lrt
 
+kvmtrace_objs= kvmtrace.o
+
 kvmctl: $(kvmctl_objs)
 	$(CC) $(LDFLAGS) $^ -o $@
 
user/config-x86-common.mak +0 -1
@@ -3,7 +3,6 @@ all: kvmctl kvmtrace test_cases
 all: kvmctl kvmtrace test_cases
 
 kvmctl_objs= main.o iotable.o ../libkvm/libkvm.a
-kvmtrace_objs= kvmtrace.o
 balloon_ctl: balloon_ctl.o
 
 FLATLIBS = $(TEST_DIR)/libcflat.a $(libgcc)
#2 lore raw

PATCH 1/1 kvmtrace tool build by default for powerpc

In reply to Jerone Young
1 file changed, 1 insertion(+), 1 deletion(-)

user/config-powerpc.mak | 2 +-

Patch adds kvmtrace to standard build in /user diretory for powerpc.

user/config-powerpc.mak +1 -1
@@ -18,7 +18,7 @@ testobjs := \
 
 tests := $(addprefix test/powerpc/, $(testobjs))
 
-all: kvmctl $(tests)
+all: kvmtrace kvmctl $(tests)
 
 kvmctl_objs = main-ppc.o iotable.o ../libkvm/libkvm.a