From 267c106f02e6996071985adbe695406a4978e97f Mon Sep 17 00:00:00 2001 From: Govindraj Raja Date: Fri, 10 Nov 2023 09:00:09 -0600 Subject: [PATCH] build(mbedtls): add deprecation notice Add a deprecation notice for building TF-A with mbedtls-2.x This was notified earlier in TF-A mailing list: https://lists.trustedfirmware.org/archives/list/tf-a@lists.trustedfirmware.org/message/YDPOPASMGEQBCOI5TKUSD3V3J75NAT7A/ We will be removing support to build TF-A with mbedtls-2.x after TF-A 2.10 release. Change-Id: I669b423ee9af9f5c5255fce370413fffaf38e8eb Signed-off-by: Govindraj Raja --- docs/about/release-information.rst | 2 ++ drivers/auth/mbedtls/mbedtls_common.mk | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/about/release-information.rst b/docs/about/release-information.rst index d6e2ee9f4..654d65fd1 100644 --- a/docs/about/release-information.rst +++ b/docs/about/release-information.rst @@ -81,6 +81,8 @@ after which it will be removed. | | Date | after | | | | | Release | | +================================+=============+=========+=========================================================+ +| Mbedtls-2.x | 2.10 | 2.10 | Support for TF-A builds with Mbedtls-2.x will be removed| ++--------------------------------+-------------+---------+---------------------------------------------------------+ | STM32MP15_OPTEE_RSV_SHM | 2.10 | 3.0 | OP-TEE manages its own memory on STM32MP15 | +--------------------------------+-------------+---------+---------------------------------------------------------+ diff --git a/drivers/auth/mbedtls/mbedtls_common.mk b/drivers/auth/mbedtls/mbedtls_common.mk index e380c86de..a2c643039 100644 --- a/drivers/auth/mbedtls/mbedtls_common.mk +++ b/drivers/auth/mbedtls/mbedtls_common.mk @@ -21,7 +21,8 @@ $(info MBEDTLS_VERSION_MAJOR is [${MBEDTLS_MAJOR}] MBEDTLS_VERSION_MINOR is [${M # Specify mbed TLS configuration file ifeq (${MBEDTLS_MAJOR}, 2) - MBEDTLS_CONFIG_FILE ?= "" + $(info Deprecation Notice: Please migrate to Mbedtls version 3.x (refer to TF-A documentation for the exact version number)) + MBEDTLS_CONFIG_FILE ?= "" else ifeq (${MBEDTLS_MAJOR}, 3) ifeq (${PSA_CRYPTO},1) MBEDTLS_CONFIG_FILE ?= ""