summaryrefslogtreecommitdiff
path: root/Makefile.target
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2010-12-22 19:54:48 +0900
committerMichael S. Tsirkin <mst@redhat.com>2010-12-22 13:06:24 +0200
commita48f7f446d42bf01c7a3d70ff9977897887c3e68 (patch)
treee8b5c23b231401ece11f799686b7cbeb0cac8d55 /Makefile.target
parent97ec721c3bf01d0f4ccaa1c98305cdfbd76dff6a (diff)
downloadqemu-a48f7f446d42bf01c7a3d70ff9977897887c3e68.tar.gz
qemu-a48f7f446d42bf01c7a3d70ff9977897887c3e68.tar.bz2
qemu-a48f7f446d42bf01c7a3d70ff9977897887c3e68.zip
build, pci: remove QMP dependency on core PCI code
by introducing pci-stub.c, eliminate QMP dependency on core PCI code rquired by query-pci command. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Michael S. Tsirkin <mst@redhat.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 d08f5dd4ef..38582d4bde 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -1,6 +1,7 @@
# -*- Mode: makefile -*-
GENERATED_HEADERS = config-target.h
+CONFIG_NO_PCI = $(if $(subst n,,$(CONFIG_PCI)),n,y)
CONFIG_NO_KVM = $(if $(subst n,,$(CONFIG_KVM)),n,y)
include ../config-host.mak
@@ -188,6 +189,7 @@ ifdef CONFIG_SOFTMMU
obj-y = arch_init.o cpus.o monitor.o machine.o gdbstub.o balloon.o
# virtio has to be here due to weird dependency between PCI and virtio-net.
# need to fix this properly
+obj-$(CONFIG_NO_PCI) += pci-stub.o
obj-$(CONFIG_VIRTIO) += virtio-blk.o virtio-balloon.o virtio-net.o virtio-serial-bus.o
obj-$(CONFIG_VIRTIO_PCI) += virtio-pci.o
obj-y += vhost_net.o