mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-05-03 09:29:57 +00:00

Update the TC's platform test Makefile and related common definitions to correspond to newer TF-M code (commit hash: 4ab7a20). Change-Id: I6ef3effe194a780a0533f9c0c2eab9d0f4efc1fc Signed-off-by: David Vincze <david.vincze@arm.com>
30 lines
853 B
C
30 lines
853 B
C
/*
|
|
* Copyright (c) 2022-2024, Arm Ltd. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef PLAT_TC_MBEDTLS_CONFIG_H
|
|
#define PLAT_TC_MBEDTLS_CONFIG_H
|
|
|
|
#include <export/lib/utils_def_exp.h>
|
|
#include <mbedtls_config-3.h>
|
|
|
|
#ifndef TF_MBEDTLS_HEAP_SIZE
|
|
#error TF_MBEDTLS_HEAP_SIZE is not defined
|
|
#else
|
|
#define PLATFORM_TEST_MIN_MBEDTLS_HEAP_SIZE (8 * 1024)
|
|
/* Only change heap size if it is less then the minimum required. */
|
|
#if TF_MBEDTLS_HEAP_SIZE < PLATFORM_TEST_MIN_MBEDTLS_HEAP_SIZE
|
|
#undef TF_MBEDTLS_HEAP_SIZE
|
|
#define TF_MBEDTLS_HEAP_SIZE PLATFORM_TEST_MIN_MBEDTLS_HEAP_SIZE
|
|
#endif
|
|
#endif /* TF_MBEDTLS_HEAP_SIZE */
|
|
|
|
#define MBEDTLS_PSA_CRYPTO_C
|
|
#define MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG
|
|
#define MBEDTLS_ECP_C
|
|
#define MBEDTLS_ECP_DP_SECP384R1_ENABLED
|
|
#define MBEDTLS_ECP_NO_INTERNAL_RNG
|
|
|
|
#endif /* PLAT_TC_MBEDTLS_CONFIG_H */
|