]> git.proxmox.com Git - mirror_qemu.git/commitdiff
hw/tpm: Only build tpm_ppi.o if any of TPM_TIS/TPM_CRB is built
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Sat, 27 Apr 2019 13:18:57 +0000 (15:18 +0200)
committerStefan Berger <stefanb@linux.vnet.ibm.com>
Mon, 8 Jul 2019 14:04:38 +0000 (10:04 -0400)
The TPM Physical Presence Interface routines are only used
by the CRB/TIS interfaces. Do not compile this file if any
of them is built.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
hw/tpm/Makefile.objs

index 700c878622895b5340f5a763bdcf8d7ac005d863..de0b85d02ae7c32d4b843934dcd34dcd56b40b93 100644 (file)
@@ -1,5 +1,5 @@
-common-obj-y += tpm_util.o
-obj-y += tpm_ppi.o
+common-obj-$(CONFIG_TPM) += tpm_util.o
+obj-$(call lor,$(CONFIG_TPM_TIS),$(CONFIG_TPM_CRB)) += tpm_ppi.o
 common-obj-$(CONFIG_TPM_TIS) += tpm_tis.o
 common-obj-$(CONFIG_TPM_CRB) += tpm_crb.o
 common-obj-$(CONFIG_TPM_PASSTHROUGH) += tpm_passthrough.o