[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 089/150] meson: convert hw/smbios
From: |
Paolo Bonzini |
Subject: |
[PULL 089/150] meson: convert hw/smbios |
Date: |
Tue, 18 Aug 2020 10:09:24 -0400 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
hw/Makefile.objs | 1 -
hw/meson.build | 1 +
hw/smbios/Makefile.objs | 10 ----------
hw/smbios/meson.build | 13 +++++++++++++
4 files changed, 14 insertions(+), 11 deletions(-)
delete mode 100644 hw/smbios/Makefile.objs
create mode 100644 hw/smbios/meson.build
diff --git a/hw/Makefile.objs b/hw/Makefile.objs
index 86bc201a55..73c49ddd3b 100644
--- a/hw/Makefile.objs
+++ b/hw/Makefile.objs
@@ -35,7 +35,6 @@ devices-dirs-$(CONFIG_VFIO) += vfio/
devices-dirs-y += virtio/
devices-dirs-y += watchdog/
devices-dirs-$(CONFIG_MEM_DEVICE) += mem/
-devices-dirs-y += smbios/
endif
common-obj-y += $(devices-dirs-y)
diff --git a/hw/meson.build b/hw/meson.build
index 03ef30212e..dccc2d19a6 100644
--- a/hw/meson.build
+++ b/hw/meson.build
@@ -1,4 +1,5 @@
subdir('core')
subdir('nubus')
subdir('semihosting')
+subdir('smbios')
subdir('xen')
diff --git a/hw/smbios/Makefile.objs b/hw/smbios/Makefile.objs
deleted file mode 100644
index 23bb2bac07..0000000000
--- a/hw/smbios/Makefile.objs
+++ /dev/null
@@ -1,10 +0,0 @@
-ifeq ($(CONFIG_SMBIOS),y)
-common-obj-y += smbios.o
-common-obj-$(CONFIG_IPMI) += smbios_type_38.o
-common-obj-$(call lnot,$(CONFIG_IPMI)) += smbios_type_38-stub.o
-else
-common-obj-y += smbios-stub.o
-endif
-
-common-obj-$(CONFIG_ALL) += smbios-stub.o
-common-obj-$(CONFIG_ALL) += smbios_type_38-stub.o
diff --git a/hw/smbios/meson.build b/hw/smbios/meson.build
new file mode 100644
index 0000000000..9e762c7108
--- /dev/null
+++ b/hw/smbios/meson.build
@@ -0,0 +1,13 @@
+smbios_ss = ss.source_set()
+smbios_ss.add(files('smbios.c'))
+smbios_ss.add(when: 'CONFIG_IPMI',
+ if_true: files('smbios_type_38.c'),
+ if_false: files('smbios_type_38-stub.c'))
+
+softmmu_ss.add_all(when: 'CONFIG_SMBIOS', if_true: smbios_ss)
+softmmu_ss.add(when: 'CONFIG_SMBIOS', if_false: files('smbios-stub.c'))
+
+softmmu_ss.add(when: 'CONFIG_ALL', if_true: files(
+ 'smbios-stub.c',
+ 'smbios_type_38-stub.c',
+))
--
2.26.2
- [PULL 073/150] meson: convert most of softmmu/, (continued)
- [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, 2020/08/18
- [PULL 084/150] meson: convert qapi-specific to meson, Paolo Bonzini, 2020/08/18
- [PULL 089/150] meson: convert hw/smbios,
Paolo Bonzini <=
- [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
- [PULL 097/150] meson: convert hw/rtc, Paolo Bonzini, 2020/08/18
- [PULL 061/150] meson: infrastructure for building emulators, Paolo Bonzini, 2020/08/18