]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/tpm/Makefile.objs
hw/tpm: Only build tpm_ppi.o if any of TPM_TIS/TPM_CRB is built
[mirror_qemu.git] / hw / tpm / Makefile.objs
index 41f0b7a5909c76bf5a38ae234dfe55b88e31fd2b..de0b85d02ae7c32d4b843934dcd34dcd56b40b93 100644 (file)
@@ -1,3 +1,6 @@
+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_PASSTHROUGH) += tpm_passthrough.o tpm_util.o
-common-obj-$(CONFIG_TPM_EMULATOR) += tpm_emulator.o tpm_util.o
+common-obj-$(CONFIG_TPM_CRB) += tpm_crb.o
+common-obj-$(CONFIG_TPM_PASSTHROUGH) += tpm_passthrough.o
+common-obj-$(CONFIG_TPM_EMULATOR) += tpm_emulator.o