summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorGovindraj Raja <govindraj.raja@arm.com>2023-01-11 18:34:58 +0000
committerGovindraj Raja <govindraj.raja@arm.com>2023-02-21 11:09:47 +0000
commita8eadc51a32a30fceb64f534c378ba66b876e026 (patch)
tree523760f277311628680bc0360146c2a790030561 /tools
parent5a65fcd5f9c67baa681f664e4596760ca1f2606a (diff)
downloadarm-trusted-firmware-a8eadc51a32a30fceb64f534c378ba66b876e026.tar.gz
refactor(mbedtls): avoid including MBEDTLS_CONFIG_FILE
Currently we include MBEDTLS_CONFIG_FILE directly and if a custom config file is used it will included. However from mbedtls-3.x onwards it discourages usage of MBEDTLS_CONFIG_FILE include directly, so to resolve this and keep 2.28 compatibility include version.h which would include the custom config file if present and also would expose us with mbedtls-major-version number which could be used for selecting features and functions for mbedtls 2.28 or 3.3 Change-Id: I029992311be2a38b588ebbb350875b03ea29acdb Signed-off-by: Govindraj Raja <govindraj.raja@arm.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/marvell/doimage/doimage.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/tools/marvell/doimage/doimage.c b/tools/marvell/doimage/doimage.c
index e08b82072..513f33f32 100644
--- a/tools/marvell/doimage/doimage.c
+++ b/tools/marvell/doimage/doimage.c
@@ -17,12 +17,6 @@
#ifdef CONFIG_MVEBU_SECURE_BOOT
#include <libconfig.h> /* for parsing config file */
-#if !defined(MBEDTLS_CONFIG_FILE)
-#include "mbedtls/config.h"
-#else
-#include MBEDTLS_CONFIG_FILE
-#endif
-
/* mbedTLS stuff */
#if defined(MBEDTLS_BIGNUM_C) && defined(MBEDTLS_ENTROPY_C) && \
defined(MBEDTLS_SHA256_C) && \
@@ -34,6 +28,7 @@
#include <mbedtls/md.h>
#include <mbedtls/pk.h>
#include <mbedtls/sha256.h>
+#include <mbedtls/version.h>
#include <mbedtls/x509.h>
#else
#error "Bad mbedTLS configuration!"