diff options
author | Qixiang Xu <qixiang.xu@arm.com> | 2017-10-13 09:23:42 +0800 |
---|---|---|
committer | Qixiang Xu <qixiang.xu@arm.com> | 2017-10-25 09:27:15 +0800 |
commit | 9b1eae96bff907e80992dbc66278cf0c913f3e17 (patch) | |
tree | 8339cf3039494a63a2778ab15c9fdfc9ff8a22c4 /plat | |
parent | 7ca267bd8aaa8ea6a2a01d953bbcd4fc672ffe51 (diff) | |
download | arm-trusted-firmware-9b1eae96bff907e80992dbc66278cf0c913f3e17.tar.gz |
plat/arm: enlarge the BL2 size on Arm platforms when TBB is enabled
For Trusted Board Boot, BL2 needs more space to support the ECDSA
and ECDSA+RSA algorithms.
Change-Id: Ie7eda9a1315ce836dbc6d18d6588f8d17891a92d
Signed-off-by: Qixiang Xu <qixiang.xu@arm.com>
Diffstat (limited to 'plat')
-rw-r--r-- | plat/arm/board/juno/include/platform_def.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/plat/arm/board/juno/include/platform_def.h b/plat/arm/board/juno/include/platform_def.h index 395d1fb6..ccc7771e 100644 --- a/plat/arm/board/juno/include/platform_def.h +++ b/plat/arm/board/juno/include/platform_def.h @@ -12,6 +12,9 @@ #include <board_css_def.h> #include <common_def.h> #include <css_def.h> +#if TRUSTED_BOARD_BOOT +#include <mbedtls_config.h> +#endif #include <soc_css_def.h> #include <tzc400.h> #include <v2m_def.h> @@ -106,7 +109,11 @@ * little space for growth. */ #if TRUSTED_BOARD_BOOT -# define PLAT_ARM_MAX_BL2_SIZE 0x19000 +#if TF_MBEDTLS_KEY_ALG_ID == TF_MBEDTLS_RSA_AND_ECDSA +# define PLAT_ARM_MAX_BL2_SIZE 0x1E000 +#else +# define PLAT_ARM_MAX_BL2_SIZE 0x1A000 +#endif #else # define PLAT_ARM_MAX_BL2_SIZE 0xC000 #endif |