summaryrefslogtreecommitdiff
path: root/src/security/vboot/Makefile.mk
diff options
context:
space:
mode:
authorSergii Dmytruk <sergii.dmytruk@3mdeb.com>2024-03-21 21:06:49 +0200
committerMartin L Roth <gaumless@gmail.com>2024-03-28 15:20:11 +0000
commitefc615e239004c604a2c907ee36fa21dc6adaf58 (patch)
treecfd1338e626f72472222880e70489a36798710de /src/security/vboot/Makefile.mk
parent47e9e8cde1810ee9f249027b14ee9f82a7a52d84 (diff)
security/vboot: extract secdata_tpm{1,2}.c
Most of the original secdata_tpm.c was TPM2-specific implementation. Just moving the code around, with trivial tweaks: - drop now unnecessary #ifdef directives from _factory_initialize_tpm() - drop leading underscore from _factory_initialize_tpm{1,2}() (external identifiers should not start with an underscore in C) - drop unused <security/vboot/tpm_common.h> include and sub-includes of tss.h which should be considered its part (so this isn't an indirect inclusion) - fixed formatting of RETURN_ON_FAILURE() which didn't have slashes aligned no matter what tab width was used Change-Id: I0090b748d7d3b2d76a941b87b5885682fd81c4fc Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/81415 Reviewed-by: Julius Werner <jwerner@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/security/vboot/Makefile.mk')
-rw-r--r--src/security/vboot/Makefile.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/security/vboot/Makefile.mk b/src/security/vboot/Makefile.mk
index 23271ea000..48a6c9de91 100644
--- a/src/security/vboot/Makefile.mk
+++ b/src/security/vboot/Makefile.mk
@@ -118,6 +118,14 @@ else
verstage-y += secdata_tpm.c
romstage-y += secdata_tpm.c
ramstage-y += secdata_tpm.c
+
+verstage-$(CONFIG_TPM1) += secdata_tpm1.c
+romstage-$(CONFIG_TPM1) += secdata_tpm1.c
+ramstage-$(CONFIG_TPM1) += secdata_tpm1.c
+
+verstage-$(CONFIG_TPM2) += secdata_tpm2.c
+romstage-$(CONFIG_TPM2) += secdata_tpm2.c
+ramstage-$(CONFIG_TPM2) += secdata_tpm2.c
endif
verstage-$(CONFIG_TPM) += tpm_common.c