[PATCH 1 of 6] [PATCH] kvm-userspace: ppc: fix compatfd build decision

Christian Ehrhardt
2008-12-10T15:47:01Z

# Date 1228922788 -3600
# Node ID b41f0d6129f51fb86bf799a5fe7b14a9270eeca4
# Parent 3af3fa5e009e143e1167979e55d547c453661059
[PATCH] kvm-userspace: ppc: fix compatfd build decision

From: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>

qemu-kvm.c uses qemu_eventfd/qemu_signalfd. The code of compatfd takes care
if CONFIG_eventfd/CONFIG_signalfd is really enabled. But currently compatfd is
not build if --disable-aio is set. This patch lets compatfd.c build if USE_KVM
is set to allow qemu-kvm to be linked in all cases (with/without --disable-aio)

Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
---

[diffstat]
Makefile | 2 +-
Makefile.target | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

[diff]

diff --git a/qemu/Makefile b/qemu/Makefile
--- a/qemu/Makefile
+++ b/qemu/Makefile
@@ -59,7 +59,7 @@ BLOCK_OBJS += block-raw-posix.o
BLOCK_OBJS += block-raw-posix.o
endif

-ifdef CONFIG_AIO
+ifeq ($(USE_KVM), 1)
BLOCK_OBJS += compatfd.o
endif

diff --git a/qemu/Makefile.target b/qemu/Makefile.target
--- a/qemu/Makefile.target
+++ b/qemu/Makefile.target
@@ -655,7 +655,7 @@ OBJS+=block-raw-posix.o
OBJS+=block-raw-posix.o
endif

-ifdef CONFIG_AIO
+ifeq ($(USE_KVM), 1)
OBJS+=compatfd.o
endif