[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 098/150] meson: convert hw/sd
From: |
Paolo Bonzini |
Subject: |
[PATCH 098/150] meson: convert hw/sd |
Date: |
Mon, 17 Aug 2020 16:40:01 +0200 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
hw/Makefile.objs | 1 -
hw/meson.build | 1 +
hw/sd/Makefile.objs | 12 ------------
hw/sd/meson.build | 12 ++++++++++++
4 files changed, 13 insertions(+), 13 deletions(-)
delete mode 100644 hw/sd/Makefile.objs
create mode 100644 hw/sd/meson.build
diff --git a/hw/Makefile.objs b/hw/Makefile.objs
index e50eb04635..6f9c0b7983 100644
--- a/hw/Makefile.objs
+++ b/hw/Makefile.objs
@@ -25,7 +25,6 @@ devices-dirs-y += pci/
devices-dirs-$(CONFIG_PCI) += pci-bridge/ pci-host/
devices-dirs-y += pcmcia/
devices-dirs-$(CONFIG_SCSI) += scsi/
-devices-dirs-y += sd/
endif
common-obj-y += $(devices-dirs-y)
diff --git a/hw/meson.build b/hw/meson.build
index 75644266f2..a73f4aebde 100644
--- a/hw/meson.build
+++ b/hw/meson.build
@@ -2,6 +2,7 @@ subdir('core')
subdir('mem')
subdir('nubus')
subdir('rtc')
+subdir('sd')
subdir('semihosting')
subdir('smbios')
subdir('ssi')
diff --git a/hw/sd/Makefile.objs b/hw/sd/Makefile.objs
deleted file mode 100644
index 0d1df1721c..0000000000
--- a/hw/sd/Makefile.objs
+++ /dev/null
@@ -1,12 +0,0 @@
-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
-
-common-obj-$(CONFIG_ALLWINNER_H3) += allwinner-sdhost.o
-common-obj-$(CONFIG_MILKYMIST) += milkymist-memcard.o
-common-obj-$(CONFIG_OMAP) += omap_mmc.o
-common-obj-$(CONFIG_PXA2XX) += pxa2xx_mmci.o
-common-obj-$(CONFIG_RASPI) += bcm2835_sdhost.o
-common-obj-$(CONFIG_ASPEED_SOC) += aspeed_sdhci.o
diff --git a/hw/sd/meson.build b/hw/sd/meson.build
new file mode 100644
index 0000000000..b43e59bd00
--- /dev/null
+++ b/hw/sd/meson.build
@@ -0,0 +1,12 @@
+softmmu_ss.add(when: 'CONFIG_PL181', if_true: files('pl181.c'))
+softmmu_ss.add(when: 'CONFIG_SD', if_true: files('sd.c', 'core.c',
'sdmmc-internal.c'))
+softmmu_ss.add(when: 'CONFIG_SDHCI', if_true: files('sdhci.c'))
+softmmu_ss.add(when: 'CONFIG_SDHCI_PCI', if_true: files('sdhci-pci.c'))
+softmmu_ss.add(when: 'CONFIG_SSI_SD', if_true: files('ssi-sd.c'))
+
+softmmu_ss.add(when: 'CONFIG_MILKYMIST', if_true: files('milkymist-memcard.c'))
+softmmu_ss.add(when: 'CONFIG_OMAP', if_true: files('omap_mmc.c'))
+softmmu_ss.add(when: 'CONFIG_PXA2XX', if_true: files('pxa2xx_mmci.c'))
+softmmu_ss.add(when: 'CONFIG_RASPI', if_true: files('bcm2835_sdhost.c'))
+softmmu_ss.add(when: 'CONFIG_ASPEED_SOC', if_true: files('aspeed_sdhci.c'))
+softmmu_ss.add(when: 'CONFIG_ALLWINNER_H3', if_true:
files('allwinner-sdhost.c'))
--
2.26.2
- Re: [PATCH 090/150] meson: convert hw/watchdog, (continued)
- [PATCH 091/150] meson: convert hw/virtio, Paolo Bonzini, 2020/08/17
- [PATCH 092/150] meson: convert hw/vfio, Paolo Bonzini, 2020/08/17
- [PATCH 094/150] meson: convert hw/tpm, Paolo Bonzini, 2020/08/17
- [PATCH 093/150] meson: convert hw/usb, Paolo Bonzini, 2020/08/17
- [PATCH 095/150] meson: convert hw/timer, Paolo Bonzini, 2020/08/17
- [PATCH 096/150] meson: convert hw/rtc, Paolo Bonzini, 2020/08/17
- [PATCH 097/150] meson: convert hw/ssi, Paolo Bonzini, 2020/08/17
- [PATCH 098/150] meson: convert hw/sd,
Paolo Bonzini <=
- [PATCH 099/150] meson: convert hw/scsi, Paolo Bonzini, 2020/08/17
- [PATCH 100/150] meson: convert hw/pcmcia, Paolo Bonzini, 2020/08/17
- [PATCH 103/150] meson: convert hw/pci, Paolo Bonzini, 2020/08/17
- [PATCH 101/150] meson: convert hw/pci-host, Paolo Bonzini, 2020/08/17
- [PATCH 102/150] meson: convert hw/pci-bridge, Paolo Bonzini, 2020/08/17
- [PATCH 104/150] meson: convert hw/nvram, Paolo Bonzini, 2020/08/17