summaryrefslogtreecommitdiffstats
path: root/src/drivers/i2c/tpm/Makefile.mk
diff options
context:
space:
mode:
authorMartin Roth <gaumless@gmail.com>2024-01-18 13:16:21 -0700
committerFelix Singer <service+coreboot-gerrit@felixsinger.de>2024-01-24 10:03:54 +0000
commitb72ad6657c7a4a9cddfa0fc1a0e94a939c0caccc (patch)
tree1d7a8e862d6666062eda8131bb8b3481bb81f06a /src/drivers/i2c/tpm/Makefile.mk
parent1cad1e502aed3e0e2052a981c5839a878af7a44e (diff)
downloadcoreboot-b72ad6657c7a4a9cddfa0fc1a0e94a939c0caccc.tar.gz
coreboot-b72ad6657c7a4a9cddfa0fc1a0e94a939c0caccc.tar.bz2
coreboot-b72ad6657c7a4a9cddfa0fc1a0e94a939c0caccc.zip
driver/i2c: Rename Makefiles from .inc to .mk
The .inc suffix is confusing to various tools as it's not specific to Makefiles. This means that editors don't recognize the files, and don't open them with highlighting and any other specific editor functionality. This issue is also seen in the release notes generation script where Makefiles get renamed before running cloc. Signed-off-by: Martin Roth <gaumless@gmail.com> Change-Id: I358b878b97adfd9be156a5dd4a9cbaf9e81bca1a Reviewed-on: https://review.coreboot.org/c/coreboot/+/80078 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de> Reviewed-by: Maximilian Brune <maximilian.brune@9elements.com>
Diffstat (limited to 'src/drivers/i2c/tpm/Makefile.mk')
-rw-r--r--src/drivers/i2c/tpm/Makefile.mk17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/drivers/i2c/tpm/Makefile.mk b/src/drivers/i2c/tpm/Makefile.mk
new file mode 100644
index 000000000000..f576109eed9a
--- /dev/null
+++ b/src/drivers/i2c/tpm/Makefile.mk
@@ -0,0 +1,17 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
+ifeq ($(CONFIG_TPM)$(CONFIG_I2C_TPM),yy)
+
+all-$(CONFIG_DRIVER_TIS_DEFAULT) += tis.c
+
+ifeq ($(CONFIG_TPM_ATMEL),y)
+all-y += tis_atmel.c
+else ifeq ($(CONFIG_TPM_GOOGLE),y)
+all-y += cr50.c
+else
+all-y += tpm.c
+endif
+
+endif
+
+ramstage-$(CONFIG_DRIVER_I2C_TPM_ACPI) += chip.c