]> xenbits.xensource.com Git - qemu-xen-unstable.git/commitdiff
qemu-xen-traditional: allow build without blktap1
authorIan Campbell <ian.campbell@citrix.com>
Wed, 31 Jul 2013 15:16:16 +0000 (16:16 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 7 Aug 2013 15:11:09 +0000 (16:11 +0100)
I intend this to become optional at the xen build level so it needs to become
optional here. Until the matching Xen patch is applied and exports
CONFIG_BLKTAP1=y|n there should be no change.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
hw/xen_machine_pv.c
xen-config-host.h
xen-hooks.mak

index c09adbb7f4d7adf3f7d6d3ad7f93a444a37b5f2c..e7283b0d6472607d1ff09021f29b16ec3ff19208 100644 (file)
@@ -29,7 +29,7 @@
 #include "xen_backend.h"
 #include "qemu-xen.h"
 
-#ifndef CONFIG_STUBDOM
+#if defined(CONFIG_BLKTAP1) && !defined(CONFIG_STUBDOM)
 #include <hw/xen_blktap.h>
 #endif
 
@@ -47,7 +47,7 @@ static void xen_init_pv(ram_addr_t ram_size, int vga_ram_size,
     CPUState *env;
     uint32_t domid_target;
 
-#if !defined(CONFIG_STUBDOM) && !defined(__NetBSD__)
+#if defined(CONFIG_BLKTAP1) && !defined(CONFIG_STUBDOM) && !defined(__NetBSD__)
     /* Initialize tapdisk client */
     init_blktap();
 #endif
index 647f6be18ce5a0f2a78f0e79013432958a669fd8..3a020215ecb621b94aadcfd1cb6ec25adc00e60a 100644 (file)
@@ -18,7 +18,7 @@ extern int domid, domid_backend;
 
 #include "xenctrl.h"
 #include "xenstore.h"
-#if !defined(CONFIG_STUBDOM) && !defined(__NetBSD__)
+#if defined(CONFIG_BLKTAP1) && !defined(CONFIG_STUBDOM) && !defined(__NetBSD__)
 #include "blktaplib.h"
 #endif
 
index 58d61c92a9463f34e9bf666c5ce5892959fbf020..b91400ecadfc4fd0dcb415bc1f5834611b6f473d 100644 (file)
@@ -47,9 +47,11 @@ CONFIG_AUDIO=
 OBJS += xenfbfront.o
 else
 ifndef CONFIG_NetBSD
-CPPFLAGS+= -I$(XEN_ROOT)/tools/blktap/lib
+ifneq ($(CONFIG_BLKTAP1),n)
+CPPFLAGS+= -DCONFIG_BLKTAP1 -I$(XEN_ROOT)/tools/blktap/lib
 LIBS += -L$(XEN_ROOT)/tools/blktap/lib -lblktap
 OBJS += xen_blktap.o
+endif
 OBJS += tpm_tis.o
 endif
 endif