From b72ad6657c7a4a9cddfa0fc1a0e94a939c0caccc Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Thu, 18 Jan 2024 13:16:21 -0700 Subject: 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 Change-Id: I358b878b97adfd9be156a5dd4a9cbaf9e81bca1a Reviewed-on: https://review.coreboot.org/c/coreboot/+/80078 Tested-by: build bot (Jenkins) Reviewed-by: Felix Singer Reviewed-by: Maximilian Brune --- src/drivers/i2c/tpm/Makefile.inc | 17 ----------------- src/drivers/i2c/tpm/Makefile.mk | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 17 deletions(-) delete mode 100644 src/drivers/i2c/tpm/Makefile.inc create mode 100644 src/drivers/i2c/tpm/Makefile.mk (limited to 'src/drivers/i2c/tpm') diff --git a/src/drivers/i2c/tpm/Makefile.inc b/src/drivers/i2c/tpm/Makefile.inc deleted file mode 100644 index f576109eed..0000000000 --- a/src/drivers/i2c/tpm/Makefile.inc +++ /dev/null @@ -1,17 +0,0 @@ -## 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 diff --git a/src/drivers/i2c/tpm/Makefile.mk b/src/drivers/i2c/tpm/Makefile.mk new file mode 100644 index 0000000000..f576109eed --- /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 -- cgit v1.2.3