summaryrefslogtreecommitdiffstats
path: root/src/drivers/tpm/Makefile.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/tpm/Makefile.mk')
-rw-r--r--src/drivers/tpm/Makefile.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/drivers/tpm/Makefile.mk b/src/drivers/tpm/Makefile.mk
new file mode 100644
index 000000000000..3ed5173db74d
--- /dev/null
+++ b/src/drivers/tpm/Makefile.mk
@@ -0,0 +1,15 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
+ifeq ($(CONFIG_TPM),y)
+
+ramstage-$(CONFIG_TPM_INIT_RAMSTAGE) += tpm.c
+
+ifeq ($(CONFIG_TPM_PPI),y)
+ramstage-$(CONFIG_HAVE_ACPI_TABLES) += ppi.c
+else
+ramstage-$(CONFIG_HAVE_ACPI_TABLES) += ppi_stub.c
+endif
+
+all-$(CONFIG_TPM_GOOGLE) += cr50.c
+
+endif