aboutsummaryrefslogtreecommitdiff
path: root/hw/tpm
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@redhat.com>2019-04-27 15:18:57 +0200
committerStefan Berger <stefanb@linux.vnet.ibm.com>2019-07-08 10:04:38 -0400
commit2bb086f779e079851dd2fd5edb87864893278fb6 (patch)
treeefeff40658f9f63b7851cc68586d0bd85304b081 /hw/tpm
parent506179e42112be77bfd071f050b15762d3b2cd43 (diff)
downloadqemu-2bb086f779e079851dd2fd5edb87864893278fb6.zip
qemu-2bb086f779e079851dd2fd5edb87864893278fb6.tar.gz
qemu-2bb086f779e079851dd2fd5edb87864893278fb6.tar.bz2
hw/tpm: Only build tpm_ppi.o if any of TPM_TIS/TPM_CRB is built
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>
Diffstat (limited to 'hw/tpm')
-rw-r--r--hw/tpm/Makefile.objs4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/tpm/Makefile.objs b/hw/tpm/Makefile.objs
index 700c878..de0b85d 100644
--- a/hw/tpm/Makefile.objs
+++ b/hw/tpm/Makefile.objs
@@ -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