]> git.baikalelectronics.ru Git - arm-tf.git/commit
feat(mbedtls): add support for mbedtls-3.3
authorGovindraj Raja <govindraj.raja@arm.com>
Thu, 12 Jan 2023 15:34:12 +0000 (15:34 +0000)
committerGovindraj Raja <govindraj.raja@arm.com>
Tue, 21 Feb 2023 11:09:47 +0000 (11:09 +0000)
commit51e061591bbf13af2486c3bb5f37ed609578d145
treee68b79e2544ca7078970c0b072553d542a9268e3
parent47c7171348d70c2d369363c247d74f954e3b778d
feat(mbedtls): add support for mbedtls-3.3

TF-A support for mbedtls3.x has been overdue by number of releases.
As per mbedtls support it was advised to use latest and greatest
mbedtls-3.3. But mbedtls-3.x breaks API compatibility with
mbedtls-2.x

To maintain comptability for mbedtls-2.x and enable mbedtls-3.x
support add a functionality into makefile to determine the major version
of mbedtls and use that to selective include or compile files
that are present.

With mbedtls-3.x numerous other config changes have been done.
Some of the config options deprecated or enabled by default.
Thus we decided to introduce a new 3.x config file part of this
change for building TF-A with mbedtls-3.3.

For futher information on migrating to mbedtls 3.x refer to:
https://github.com/Mbed-TLS/mbedtls/blob/development/docs/3.0-migration-guide.md

Change-Id: Ia8106d6f526809df927d608db27fe149623258ed
Signed-off-by: Govindraj Raja <govindraj.raja@arm.com>
drivers/auth/mbedtls/mbedtls_common.mk
drivers/auth/mbedtls/mbedtls_crypto.c
include/drivers/auth/mbedtls/mbedtls_config-2.h [new file with mode: 0644]
include/drivers/auth/mbedtls/mbedtls_config-3.h [new file with mode: 0644]
include/drivers/auth/mbedtls/mbedtls_config.h [deleted file]