Blame qemu-fix-non-PCI-target-build.patch

Justin M. Forbes bc9e71
commit 1a8364456c2f3946b4feb8fc78eaf00d974f4c03
Justin M. Forbes bc9e71
Author: Jan Kiszka <jan.kiszka@siemens.com>
Justin M. Forbes bc9e71
Date:   Wed Feb 23 09:28:53 2011 +0100
Justin M. Forbes bc9e71
Justin M. Forbes bc9e71
    qemu-kvm: Fix non-PCI target build
Justin M. Forbes bc9e71
    
Justin M. Forbes bc9e71
    Replace obsolete qemu-kvm.h with kvm.h in pci.c and build that module
Justin M. Forbes bc9e71
    just like upstream does. This fixes non-x86 targets which have no PCI
Justin M. Forbes bc9e71
    support.
Justin M. Forbes bc9e71
    
Justin M. Forbes bc9e71
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Justin M. Forbes bc9e71
    Signed-off-by: Avi Kivity <avi@redhat.com>
Justin M. Forbes bc9e71
Justin M. Forbes bc9e71
diff --git a/Makefile.objs b/Makefile.objs
Justin M. Forbes bc9e71
index f5702eb..3ec7121 100644
Justin M. Forbes bc9e71
--- a/Makefile.objs
Justin M. Forbes bc9e71
+++ b/Makefile.objs
Justin M. Forbes bc9e71
@@ -170,7 +170,7 @@ hw-obj-y =
Justin M. Forbes bc9e71
 hw-obj-y += loader.o
Justin M. Forbes bc9e71
 hw-obj-$(CONFIG_VIRTIO) += virtio.o virtio-console.o
Justin M. Forbes bc9e71
 hw-obj-y += fw_cfg.o
Justin M. Forbes bc9e71
-hw-obj-$(CONFIG_PCI) += pci_bridge.o
Justin M. Forbes bc9e71
+hw-obj-$(CONFIG_PCI) += pci.o pci_bridge.o
Justin M. Forbes bc9e71
 hw-obj-$(CONFIG_PCI) += msix.o msi.o
Justin M. Forbes bc9e71
 hw-obj-$(CONFIG_PCI) += pci_host.o pcie_host.o
Justin M. Forbes bc9e71
 hw-obj-$(CONFIG_PCI) += ioh3420.o xio3130_upstream.o xio3130_downstream.o
Justin M. Forbes bc9e71
diff --git a/Makefile.target b/Makefile.target
Justin M. Forbes bc9e71
index 6e9a024..23367eb 100644
Justin M. Forbes bc9e71
--- a/Makefile.target
Justin M. Forbes bc9e71
+++ b/Makefile.target
Justin M. Forbes bc9e71
@@ -195,7 +195,7 @@ endif #CONFIG_BSD_USER
Justin M. Forbes bc9e71
 # System emulator target
Justin M. Forbes bc9e71
 ifdef CONFIG_SOFTMMU
Justin M. Forbes bc9e71
Justin M. Forbes bc9e71
-obj-y = arch_init.o cpus.o monitor.o pci.o machine.o gdbstub.o vl.o balloon.o
Justin M. Forbes bc9e71
+obj-y = arch_init.o cpus.o monitor.o machine.o gdbstub.o vl.o balloon.o
Justin M. Forbes bc9e71
 # virtio has to be here due to weird dependency between PCI and virtio-net.
Justin M. Forbes bc9e71
 # need to fix this properly
Justin M. Forbes bc9e71
 obj-$(CONFIG_NO_PCI) += pci-stub.o
Justin M. Forbes bc9e71
diff --git a/hw/pci.c b/hw/pci.c
Justin M. Forbes bc9e71
index 0c44939..1f6cebe 100644
Justin M. Forbes bc9e71
--- a/hw/pci.c
Justin M. Forbes bc9e71
+++ b/hw/pci.c
Justin M. Forbes bc9e71
@@ -29,8 +29,8 @@
Justin M. Forbes bc9e71
 #include "net.h"
Justin M. Forbes bc9e71
 #include "sysemu.h"
Justin M. Forbes bc9e71
 #include "loader.h"
Justin M. Forbes bc9e71
-#include "qemu-kvm.h"
Justin M. Forbes bc9e71
 #include "hw/pc.h"
Justin M. Forbes bc9e71
+#include "kvm.h"
Justin M. Forbes bc9e71
 #include "device-assignment.h"
Justin M. Forbes bc9e71
 #include "qemu-objects.h"
Justin M. Forbes bc9e71
 #include "range.h"