summaryrefslogtreecommitdiff
path: root/Makefile.target
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2010-04-19 18:59:30 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-04-19 18:59:30 +0000
commit98c8573eb37bf5d7bb0c07225985a78537c73101 (patch)
treec709ea4646f51f34804bbf8de7dc1245254334b2 /Makefile.target
parentc66b5c2cb6bf5ab9869bf0739ff3cdf143ab778c (diff)
downloadqemu-98c8573eb37bf5d7bb0c07225985a78537c73101.tar.gz
provide a stub version of kvm-all.c if !CONFIG_KVM
This allows limited use of kvm functions (which will return ENOSYS) even in once-compiled modules. The patch also improves a bit the error messages for KVM initialization. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> [blauwirbel@gmail.com: fixed Win32 build] Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'Makefile.target')
-rw-r--r--Makefile.target2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.target b/Makefile.target
index 95c9d23439..34ceed60bd 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -1,6 +1,7 @@
# -*- Mode: makefile -*-
GENERATED_HEADERS = config-target.h
+CONFIG_NO_KVM = $(if $(subst n,,$(CONFIG_KVM)),n,y)
include ../config-host.mak
include config-devices.mak
@@ -171,6 +172,7 @@ obj-y += vhost_net.o
obj-$(CONFIG_VHOST_NET) += vhost.o
obj-y += rwhandler.o
obj-$(CONFIG_KVM) += kvm.o kvm-all.o
+obj-$(CONFIG_NO_KVM) += kvm-stub.o
LIBS+=-lz
QEMU_CFLAGS += $(VNC_TLS_CFLAGS)