aboutsummaryrefslogtreecommitdiff
path: root/hw/mem
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2019-08-15 15:45:58 +0400
committerPaolo Bonzini <pbonzini@redhat.com>2020-08-21 06:30:26 -0400
commit97813b940d56712d456d8a1260ecd5320b10761c (patch)
treebcfaa5eb2a4171d92a1672a65b06be86a9ec03ce /hw/mem
parentd6c9b1f00365abe9bfde8cd67d49db3146f681a1 (diff)
downloadqemu-97813b940d56712d456d8a1260ecd5320b10761c.zip
qemu-97813b940d56712d456d8a1260ecd5320b10761c.tar.gz
qemu-97813b940d56712d456d8a1260ecd5320b10761c.tar.bz2
meson: convert hw/mem
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/mem')
-rw-r--r--hw/mem/Kconfig1
-rw-r--r--hw/mem/Makefile.objs3
-rw-r--r--hw/mem/meson.build6
3 files changed, 7 insertions, 3 deletions
diff --git a/hw/mem/Kconfig b/hw/mem/Kconfig
index c278449..a0ef2cf 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 56345be..0000000
--- 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 0000000..ba42462
--- /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)