]> git.baikalelectronics.ru Git - arm-tf.git/commit
refactor(mbedtls): avoid including MBEDTLS_CONFIG_FILE
authorGovindraj Raja <govindraj.raja@arm.com>
Wed, 11 Jan 2023 18:34:58 +0000 (18:34 +0000)
committerGovindraj Raja <govindraj.raja@arm.com>
Tue, 21 Feb 2023 11:09:47 +0000 (11:09 +0000)
commita8eadc51a32a30fceb64f534c378ba66b876e026
tree523760f277311628680bc0360146c2a790030561
parent5a65fcd5f9c67baa681f664e4596760ca1f2606a
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>
14 files changed:
drivers/auth/cca/cot.c
drivers/auth/dualroot/cot.c
drivers/auth/mbedtls/mbedtls_common.c
drivers/auth/mbedtls/mbedtls_crypto.c
drivers/auth/tbbr/tbbr_cot_bl1.c
drivers/auth/tbbr/tbbr_cot_bl1_r64.c
drivers/auth/tbbr/tbbr_cot_bl2.c
drivers/auth/tbbr/tbbr_cot_common.c
include/common/tbbr/cot_def.h
include/drivers/auth/auth_mod.h
include/drivers/auth/tbbr_cot_common.h
lib/fconf/fconf_cot_getter.c
plat/arm/common/arm_dyn_cfg.c
tools/marvell/doimage/doimage.c