aboutsummaryrefslogtreecommitdiff
path: root/hw/sd/Makefile.objs
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2019-02-20 12:19:14 +0100
committerThomas Huth <thuth@redhat.com>2019-03-12 07:49:04 +0100
commitce864603443567b8186dc435ebba08338ef4a6d6 (patch)
tree25b78abc39911375e6870c9b28ff2bf3b394086c /hw/sd/Makefile.objs
parenta189a9375bfe07549dd506e91bfa8af8165f05e2 (diff)
hw/sd/sdhci: Move PCI-related code into a separate file
Some machines have an SDHCI device, but no PCI. To be able to compile hw/sd/sdhci.c without CONFIG_PCI, we must not call functions like pci_get_address_space() and pci_allocate_irq() there. Thus move the PCI-related code into a separate file. This is required for the new Kconfig-like build system, e.g. it is needed if a user wants to compile a QEMU binary with just one machine that has SDHCI, but no PCI, like the ARM "raspi" machines for example. Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'hw/sd/Makefile.objs')
-rw-r--r--hw/sd/Makefile.objs1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/sd/Makefile.objs b/hw/sd/Makefile.objs
index a99d9fbb04..06657279d1 100644
--- a/hw/sd/Makefile.objs
+++ b/hw/sd/Makefile.objs
@@ -2,6 +2,7 @@ common-obj-$(CONFIG_PL181) += pl181.o
common-obj-$(CONFIG_SSI_SD) += ssi-sd.o
common-obj-$(CONFIG_SD) += sd.o core.o sdmmc-internal.o
common-obj-$(CONFIG_SDHCI) += sdhci.o
+common-obj-$(CONFIG_SDHCI_PCI) += sdhci-pci.o
obj-$(CONFIG_MILKYMIST) += milkymist-memcard.o
obj-$(CONFIG_OMAP) += omap_mmc.o