diff options
author | Alexei Fedorov <Alexei.Fedorov@arm.com> | 2020-07-13 14:06:47 +0100 |
---|---|---|
committer | Alexei Fedorov <Alexei.Fedorov@arm.com> | 2020-07-21 20:33:20 +0000 |
commit | 3f498b0dc282f6229b0a894ba61dc1948c4fb384 (patch) | |
tree | cd38c1bd5a5d8bb6047154a43824013dede45ce5 /plat | |
parent | d686fa3b97af3a5e5b7de484ec8a0c7724cd54ce (diff) | |
download | trusted-firmware-a-3f498b0dc282f6229b0a894ba61dc1948c4fb384.tar.gz |
TF-A: Add support for Measured Boot driver in BL1 and BL2
This patch adds support for Measured Boot driver functionality
in BL1 and BL2 code.
Change-Id: I7239a94c3e32b0a3e9e73768a0140e0b52ab0361
Signed-off-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
Diffstat (limited to 'plat')
-rw-r--r-- | plat/common/plat_bl1_common.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/plat/common/plat_bl1_common.c b/plat/common/plat_bl1_common.c index 5733781ac4..2baa29abac 100644 --- a/plat/common/plat_bl1_common.c +++ b/plat/common/plat_bl1_common.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2015-2020, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -27,7 +27,9 @@ #pragma weak bl1_plat_fwu_done #pragma weak bl1_plat_handle_pre_image_load #pragma weak bl1_plat_handle_post_image_load - +#if MEASURED_BOOT +#pragma weak bl1_plat_set_bl2_hash +#endif unsigned int bl1_plat_get_next_image_id(void) { @@ -116,3 +118,12 @@ int bl1_plat_handle_post_image_load(unsigned int image_id) (void *) bl2_tzram_layout); return 0; } + +#if MEASURED_BOOT +/* + * Calculates and writes BL2 hash data to TB_FW_CONFIG DTB. + */ +void bl1_plat_set_bl2_hash(const image_desc_t *image_desc) +{ +} +#endif |