arm-trusted-firmware/bl2
Manish V Badarkhe 47bf3ac31e feat(measured boot): move init and teardown functions to platform layer
Right now, the measured boot driver is strongly coupled with the TCG
event log driver. It would not be possible to push the measurements
somewhere else, for instance to a physical TPM.

To enable this latter use case, turn the driver's init and teardown
functions into platform hooks. Call them bl2_plat_mboot_init()/finish().
This allows each platform to implement them appropriately, depending on
the type of measured boot backend they use. For example, on a platform
with a physical TPM, the plat_mboot_init() hook would startup the TPM
and setup it underlying bus (e.g. SPI).

Move the current implementation of the init and teardown function to the
FVP platform layer.

Finally move the conditional compilation logic (#if MEASURED_BOOT) out
of bl2_main() to improve its readability. Provide a dummy implementation
in the case measured boot is not included in the build.

Change-Id: Ib6474cb5a9c1e3d4a30c7f228431b22d1a6e85e3
Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
2021-10-12 17:53:47 +01:00
..
aarch32 feat(rme): run BL2 in root world when FEAT_RME is enabled 2021-10-04 21:13:20 +02:00
aarch64 feat(rme): run BL2 in root world when FEAT_RME is enabled 2021-10-04 21:13:20 +02:00
bl2.ld.S feat(rme): run BL2 in root world when FEAT_RME is enabled 2021-10-04 21:13:20 +02:00
bl2.mk refactor(gpt): productize and refactor GPT library 2021-10-05 16:24:57 -05:00
bl2_el3.ld.S linker_script: move .rela.dyn section to bl_common.ld.h 2020-06-29 15:51:50 +09:00
bl2_image_load_v2.c Fix MISRA C issues in BL1/BL2/BL31 2020-04-03 16:20:59 -05:00
bl2_main.c feat(measured boot): move init and teardown functions to platform layer 2021-10-12 17:53:47 +01:00
bl2_private.h Move BL1 and BL2 private defines to bl_common.h 2019-01-15 13:52:32 +00:00