Skip to content

Commit

Permalink
hw/tpm: Only build tpm_ppi.o if any of TPM_TIS/TPM_CRB is built
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
philmd authored and stefanberger committed Jul 8, 2019
1 parent 506179e commit 2bb086f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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
Expand Down

0 comments on commit 2bb086f

Please sign in to comment.