[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 090/150] meson: convert hw/mem
From: |
Paolo Bonzini |
Subject: |
[PULL 090/150] meson: convert hw/mem |
Date: |
Tue, 18 Aug 2020 10:09:25 -0400 |
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/mem/Kconfig | 1 +
hw/mem/Makefile.objs | 3 ---
hw/mem/meson.build | 6 ++++++
hw/meson.build | 1 +
5 files changed, 8 insertions(+), 4 deletions(-)
delete mode 100644 hw/mem/Makefile.objs
create mode 100644 hw/mem/meson.build
diff --git a/hw/Makefile.objs b/hw/Makefile.objs
index 73c49ddd3b..df72b25a64 100644
--- a/hw/Makefile.objs
+++ b/hw/Makefile.objs
@@ -34,7 +34,6 @@ devices-dirs-y += usb/
devices-dirs-$(CONFIG_VFIO) += vfio/
devices-dirs-y += virtio/
devices-dirs-y += watchdog/
-devices-dirs-$(CONFIG_MEM_DEVICE) += mem/
endif
common-obj-y += $(devices-dirs-y)
diff --git a/hw/mem/Kconfig b/hw/mem/Kconfig
index c27844900d..a0ef2cf648 100644
--- a/hw/mem/Kconfig
+++ b/hw/mem/Kconfig
@@ -9,3 +9,4 @@ config NVDIMM
bool
default y
depends on (PC || PSERIES || ARM_VIRT)
+ select MEM_DEVICE
diff --git a/hw/mem/Makefile.objs b/hw/mem/Makefile.objs
deleted file mode 100644
index 56345befd0..0000000000
--- a/hw/mem/Makefile.objs
+++ /dev/null
@@ -1,3 +0,0 @@
-common-obj-$(CONFIG_DIMM) += pc-dimm.o
-common-obj-y += memory-device.o
-common-obj-$(CONFIG_NVDIMM) += nvdimm.o
diff --git a/hw/mem/meson.build b/hw/mem/meson.build
new file mode 100644
index 0000000000..ba424622bb
--- /dev/null
+++ b/hw/mem/meson.build
@@ -0,0 +1,6 @@
+mem_ss = ss.source_set()
+mem_ss.add(files('memory-device.c'))
+mem_ss.add(when: 'CONFIG_DIMM', if_true: files('pc-dimm.c'))
+mem_ss.add(when: 'CONFIG_NVDIMM', if_true: files('nvdimm.c'))
+
+softmmu_ss.add_all(when: 'CONFIG_MEM_DEVICE', if_true: mem_ss)
diff --git a/hw/meson.build b/hw/meson.build
index dccc2d19a6..542d675618 100644
--- a/hw/meson.build
+++ b/hw/meson.build
@@ -1,4 +1,5 @@
subdir('core')
+subdir('mem')
subdir('nubus')
subdir('semihosting')
subdir('smbios')
--
2.26.2
- [PULL 074/150] meson: convert trace/, (continued)
- [PULL 074/150] meson: convert trace/, Paolo Bonzini, 2020/08/18
- [PULL 064/150] meson: convert block, Paolo Bonzini, 2020/08/18
- [PULL 073/150] meson: convert most of softmmu/, Paolo Bonzini, 2020/08/18
- [PULL 078/150] meson: convert replay directory to Meson, Paolo Bonzini, 2020/08/18
- [PULL 076/150] meson: convert common QMP bits for qemu and qemu-storage-daemon, Paolo Bonzini, 2020/08/18
- [PULL 082/150] meson: convert fsdev/, Paolo Bonzini, 2020/08/18
- [PULL 081/150] meson: convert backends directory to Meson, Paolo Bonzini, 2020/08/18
- [PULL 085/150] meson: convert hw/xen, Paolo Bonzini, 2020/08/18
- [PULL 086/150] meson: convert hw/core, Paolo Bonzini, 2020/08/18
- [PULL 088/150] meson: convert hw/nubus, Paolo Bonzini, 2020/08/18
- [PULL 090/150] meson: convert hw/mem,
Paolo Bonzini <=
- [PULL 084/150] meson: convert qapi-specific to meson, Paolo Bonzini, 2020/08/18
- [PULL 089/150] meson: convert hw/smbios, Paolo Bonzini, 2020/08/18
- [PULL 091/150] meson: convert hw/watchdog, Paolo Bonzini, 2020/08/18
- [PULL 099/150] meson: convert hw/sd, Paolo Bonzini, 2020/08/18
- [PULL 096/150] meson: convert hw/timer, Paolo Bonzini, 2020/08/18
- [PULL 087/150] meson: convert hw/semihosting, Paolo Bonzini, 2020/08/18
- [PULL 080/150] meson: convert net directory to Meson, Paolo Bonzini, 2020/08/18
- [PULL 093/150] meson: convert hw/vfio, Paolo Bonzini, 2020/08/18
- [PULL 095/150] meson: convert hw/tpm, Paolo Bonzini, 2020/08/18
- [PULL 092/150] meson: convert hw/virtio, Paolo Bonzini, 2020/08/18