meson: convert hw/mem
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
d6c9b1f003
commit
97813b940d
@ -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)
|
||||
|
@ -9,3 +9,4 @@ config NVDIMM
|
||||
bool
|
||||
default y
|
||||
depends on (PC || PSERIES || ARM_VIRT)
|
||||
select MEM_DEVICE
|
||||
|
@ -1,3 +0,0 @@
|
||||
common-obj-$(CONFIG_DIMM) += pc-dimm.o
|
||||
common-obj-y += memory-device.o
|
||||
common-obj-$(CONFIG_NVDIMM) += nvdimm.o
|
6
hw/mem/meson.build
Normal file
6
hw/mem/meson.build
Normal file
@ -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)
|
@ -1,4 +1,5 @@
|
||||
subdir('core')
|
||||
subdir('mem')
|
||||
subdir('nubus')
|
||||
subdir('semihosting')
|
||||
subdir('smbios')
|
||||
|
Loading…
Reference in New Issue
Block a user