Compile pcie_host only once
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
diff --git a/Makefile.objs b/Makefile.objs
index dd33ca4..11dbc62 100644
--- a/Makefile.objs
+++ b/Makefile.objs
@@ -129,7 +129,7 @@
hw-obj-y =
hw-obj-y += loader.o
hw-obj-y += virtio.o virtio-console.o
-hw-obj-y += fw_cfg.o pci.o
+hw-obj-y += fw_cfg.o pci.o pcie_host.o
hw-obj-y += watchdog.o
hw-obj-$(CONFIG_ISA_MMIO) += isa_mmio.o
hw-obj-$(CONFIG_ECC) += ecc.o
diff --git a/Makefile.target b/Makefile.target
index fc8589c..b1d6a7f 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -161,7 +161,7 @@
# System emulator target
ifdef CONFIG_SOFTMMU
-obj-y = vl.o monitor.o pci_host.o pcie_host.o machine.o gdbstub.o
+obj-y = vl.o monitor.o pci_host.o machine.o gdbstub.o
obj-y += qemu-timer.o
# virtio has to be here due to weird dependency between PCI and virtio-net.
# need to fix this properly