[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 091/143] meson: convert hw/tpm
From: |
Paolo Bonzini |
Subject: |
[PATCH 091/143] meson: convert hw/tpm |
Date: |
Thu, 6 Aug 2020 21:15:27 +0200 |
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/tpm/Makefile.objs | 6 ------
hw/tpm/meson.build | 8 ++++++++
4 files changed, 9 insertions(+), 7 deletions(-)
delete mode 100644 hw/tpm/Makefile.objs
create mode 100644 hw/tpm/meson.build
diff --git a/hw/Makefile.objs b/hw/Makefile.objs
index c2619bb..f0e5728 100644
--- a/hw/Makefile.objs
+++ b/hw/Makefile.objs
@@ -29,7 +29,6 @@ devices-dirs-$(CONFIG_SCSI) += scsi/
devices-dirs-y += sd/
devices-dirs-y += ssi/
devices-dirs-y += timer/
-devices-dirs-$(CONFIG_TPM) += tpm/
endif
common-obj-y += $(devices-dirs-y)
diff --git a/hw/meson.build b/hw/meson.build
index 89bd6ad..2ddf6ba 100644
--- a/hw/meson.build
+++ b/hw/meson.build
@@ -3,6 +3,7 @@ subdir('mem')
subdir('nubus')
subdir('semihosting')
subdir('smbios')
+subdir('tpm')
subdir('usb')
subdir('vfio')
subdir('virtio')
diff --git a/hw/tpm/Makefile.objs b/hw/tpm/Makefile.objs
deleted file mode 100644
index 6fc05be..0000000
--- a/hw/tpm/Makefile.objs
+++ /dev/null
@@ -1,6 +0,0 @@
-obj-$(call lor,$(CONFIG_TPM_TIS),$(CONFIG_TPM_CRB)) += tpm_ppi.o
-common-obj-$(CONFIG_TPM_TIS_ISA) += tpm_tis_isa.o
-common-obj-$(CONFIG_TPM_TIS_SYSBUS) += tpm_tis_sysbus.o
-common-obj-$(CONFIG_TPM_TIS) += tpm_tis_common.o
-common-obj-$(CONFIG_TPM_CRB) += tpm_crb.o
-obj-$(CONFIG_TPM_SPAPR) += tpm_spapr.o
diff --git a/hw/tpm/meson.build b/hw/tpm/meson.build
new file mode 100644
index 0000000..1c68d81
--- /dev/null
+++ b/hw/tpm/meson.build
@@ -0,0 +1,8 @@
+softmmu_ss.add(when: 'CONFIG_TPM_TIS', if_true: files('tpm_tis_common.c'))
+softmmu_ss.add(when: 'CONFIG_TPM_TIS_ISA', if_true: files('tpm_tis_isa.c'))
+softmmu_ss.add(when: 'CONFIG_TPM_TIS_SYSBUS', if_true:
files('tpm_tis_sysbus.c'))
+softmmu_ss.add(when: 'CONFIG_TPM_CRB', if_true: files('tpm_crb.c'))
+
+specific_ss.add(when: ['CONFIG_SOFTMMU', 'CONFIG_TPM_TIS'], if_true:
files('tpm_ppi.c'))
+specific_ss.add(when: ['CONFIG_SOFTMMU', 'CONFIG_TPM_CRB'], if_true:
files('tpm_ppi.c'))
+specific_ss.add(when: 'CONFIG_TPM_SPAPR', if_true: files('tpm_spapr.c'))
--
1.8.3.1
- [PATCH 079/143] meson: convert disas directory to Meson, (continued)
- [PATCH 079/143] meson: convert disas directory to Meson, Paolo Bonzini, 2020/08/06
- [PATCH 081/143] meson: convert hw/xen, Paolo Bonzini, 2020/08/06
- [PATCH 082/143] meson: convert hw/core, Paolo Bonzini, 2020/08/06
- [PATCH 084/143] meson: convert hw/nubus, Paolo Bonzini, 2020/08/06
- [PATCH 083/143] meson: convert hw/semihosting, Paolo Bonzini, 2020/08/06
- [PATCH 085/143] meson: convert hw/smbios, Paolo Bonzini, 2020/08/06
- [PATCH 087/143] meson: convert hw/watchdog, Paolo Bonzini, 2020/08/06
- [PATCH 086/143] meson: convert hw/mem, Paolo Bonzini, 2020/08/06
- [PATCH 088/143] meson: convert hw/virtio, Paolo Bonzini, 2020/08/06
- [PATCH 089/143] meson: convert hw/vfio, Paolo Bonzini, 2020/08/06
- [PATCH 091/143] meson: convert hw/tpm,
Paolo Bonzini <=
- [PATCH 090/143] meson: convert hw/usb, Paolo Bonzini, 2020/08/06
- [PATCH 093/143] meson: convert hw/rtc, Paolo Bonzini, 2020/08/06
- [PATCH 092/143] meson: convert hw/timer, Paolo Bonzini, 2020/08/06
- [PATCH 094/143] meson: convert hw/ssi, Paolo Bonzini, 2020/08/06
- [PATCH 095/143] meson: convert hw/sd, Paolo Bonzini, 2020/08/06
- [PATCH 096/143] meson: convert hw/scsi, Paolo Bonzini, 2020/08/06
- [PATCH 097/143] meson: convert hw/pcmcia, Paolo Bonzini, 2020/08/06
- [PATCH 098/143] meson: convert hw/pci-host, Paolo Bonzini, 2020/08/06
- [PATCH 099/143] meson: convert hw/pci-bridge, Paolo Bonzini, 2020/08/06