coreboot/src/security/vboot
Sergii Dmytruk efc615e239 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>
2024-03-28 15:20:11 +00:00
..
antirollback.h treewide: convert to tpm_result_t 2023-09-28 16:54:37 +00:00
bootmode.c security/vboot: Add Kconfig option to clear recovery request 2023-12-04 15:56:16 +00:00
common.c security/vboot: Die if vb2api_reinit() failed 2023-11-13 14:20:30 +00:00
ec_sync.c vboot: Drop argument to select slot from vb2ex_ec_protect() 2023-06-06 01:37:22 +00:00
Kconfig Kconfig: Make the SEPARATE_ROMSTAGE default configurable in other files 2024-02-27 20:35:11 +00:00
Makefile.mk security/vboot: extract secdata_tpm{1,2}.c 2024-03-28 15:20:11 +00:00
misc.h Allow to build romstage sources inside the bootblock 2023-11-09 13:20:18 +00:00
mrc_cache_hash_tpm.c treewide: convert to tpm_result_t 2023-09-28 16:54:37 +00:00
mrc_cache_hash_tpm.h security/vboot: Make mrc_cache hash functions generic 2020-10-20 23:25:39 +00:00
secdata_mock.c treewide: convert to tpm_result_t 2023-09-28 16:54:37 +00:00
secdata_tpm.c security/vboot: extract secdata_tpm{1,2}.c 2024-03-28 15:20:11 +00:00
secdata_tpm1.c security/vboot: extract secdata_tpm{1,2}.c 2024-03-28 15:20:11 +00:00
secdata_tpm2.c security/vboot: extract secdata_tpm{1,2}.c 2024-03-28 15:20:11 +00:00
secdata_tpm_private.h security/vboot: extract secdata_tpm{1,2}.c 2024-03-28 15:20:11 +00:00
symbols.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
tpm_common.c security/tpm: replace CONFIG(TPMx) checks with runtime check 2024-03-28 15:18:04 +00:00
tpm_common.h treewide: convert to tpm_result_t 2023-09-28 16:54:37 +00:00
vbios_cache_hash_tpm.c treewide: convert to tpm_result_t 2023-09-28 16:54:37 +00:00
vbios_cache_hash_tpm.h security/vboot: Add store/validate methods for AMD VBIOS FMAP cache 2023-02-13 14:56:22 +00:00
vbnv.c security/vboot: Drop assert call from vbnv_udc_enable_flag() 2022-12-21 18:52:50 +00:00
vbnv.h security/vboot: Update vbnv_init signature 2022-12-16 01:23:03 +00:00
vbnv_cmos.c coreboot_table: Move VBOOT_VBNV support 2021-02-04 08:43:39 +00:00
vbnv_flash.c security/vboot: Check RW_NVRAM at buildtime 2023-01-13 08:25:33 +00:00
vbnv_layout.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
vboot_common.c Allow to build romstage sources inside the bootblock 2023-11-09 13:20:18 +00:00
vboot_common.h vboot: Introduce handy vboot reboot functions 2022-11-08 14:44:54 +00:00
vboot_lib.c src: Change BOOL CONFIG_ to CONFIG() in comments & strings 2020-07-26 21:20:30 +00:00
vboot_loader.c vboot: Fix reboot loop in recovery with VBOOT_CBFS_INTEGRATION 2023-02-21 01:36:50 +00:00
vboot_logic.c vboot: Add firmware PCR support 2024-01-04 14:30:33 +00:00
verstage.c verstage: Add debug print when returning from verstage 2021-04-06 07:49:43 +00:00