arm-trusted-firmware/plat
Sandrine Bailleux 8cd09cfc91 refactor(measured boot): move BL2 measurement to platform layer
Right now, event_log_init() does 2 things:
1) It writes all the necessary TCG data structures in the event log buffer.
2) It writes the first measurement (BL2's).

Step 2) introduces in the TCG event log driver an assumption on what
is getting measured and in what order. Ideally, the driver should only
be concerned about generic operations, such as initializing the event
log or recording a measurement in it. As much as possible, we should
design the driver such that it could be reused in another project that
has a different measure boot flow.

For these reasons, move step 2) up to the caller, plat_mboot_init() in
this case. Make event_log_record() a public function for this purpose.

This refactoring will also help when we make BL1 record BL2's
measurement into the event log (instead of BL2). Both BL1 and BL2 will
need to call the driver's init function but only BL1 will need
recording BL2's measurement. We can handle this through different
implementations of plat_mboot_init() for BL1 and BL2, leaving the TCG
event log driver unchanged.

Change-Id: I358e097c1eedb54f82b866548dfc6bcade83d519
Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
2021-10-12 17:53:47 +01:00
..
allwinner feat(plat/allwinner): add R329 support 2021-08-25 02:11:59 +08:00
amlogic Plat AXG: Fix PLAT_MAX_PWR_LVL value 2020-12-29 13:52:11 +00:00
arm refactor(measured boot): move BL2 measurement to platform layer 2021-10-12 17:53:47 +01:00
brcm Merge "driver: brcm: add USB driver" into integration 2021-04-12 16:44:11 +02:00
common refactor(plat/ea_handler): Use default ea handler implementation for panic 2021-08-13 11:12:11 +02:00
hisilicon plat/hisilicon: do not keep mmc_device_info in stack 2021-04-08 08:44:57 +02:00
imx feat(plat/imx/imx8m/imx8mp): enable Trusted Boot 2021-09-14 21:42:01 +08:00
intel/soc plat/intel: do not keep mmc_device_info in stack 2021-04-08 08:44:57 +02:00
layerscape Don't return error information from console_flush 2020-10-09 10:21:50 -05:00
marvell plat/marvell/a8k: add Globalscale Mochabin support 2021-10-11 16:26:02 +02:00
mediatek fix(plat/mediatek/mt8183): fix out-of-bound access 2021-09-29 09:33:56 +08:00
nvidia/tegra refactor(tegra132): deprecate platform 2021-08-16 11:58:24 -07:00
nxp feat(plat/nxp/ls1028ardb): add ls1028ardb board support 2021-09-23 12:44:42 +08:00
qemu Merge "fix(plat/qemu): reboot/shutdown with low to high gpio" into integration 2021-10-11 17:07:55 +02:00
qti feat(plat/qti/sc7280): support for qti sc7280 plat 2021-09-22 10:05:45 +02:00
renesas feat(plat/rcar3): keep RWDT enabled 2021-09-12 01:13:48 +02:00
rockchip fix(rk3399/suspend): correct LPDDR4 resume sequence 2021-07-19 23:06:33 +02:00
rpi fix(rpi4): drop /memreserve/ region 2021-08-16 17:29:59 +01:00
socionext fix(plat/synquacer): update scmi power domain off handling 2021-09-14 11:24:30 +09:00
st fix(plat/st): add UART reset in crash console init 2021-09-20 13:57:10 +02:00
ti/k3 plat: ti: k3: board: Let explicitly map our SEC_SRAM_BASE to 0x0 2021-03-26 02:25:44 -05:00
xilinx feat(plat/xilinx/zynqmp): add support for runtime feature config 2021-08-18 22:27:05 -07:00