Update to MbedTLS 3.4.0
Update the MbedTLS external component version to the latest release and
make the necessary changes to integrate the new version:
- The install path of MbedTLSConfig.cmake has slightly changed, update
the PACKAGE_DIR passed to LazyFetch.
- A new config option was introduced to support the Armv8-A crypto
extension for AES (MBEDTLS_AESCE_C). The runtime feature detection
is current only supported for Linux, otherwise it's assumed that if
the config option is enabled, the hardware does have support. Since
this cannot be guaranteed in our case (e.g. the FVP platform doesn't
have this extension by default), the config option should be unset.
- Update the "Add capability to build libmbedcrypto only" carried
patch file.
Signed-off-by: Balint Dobszay <balint.dobszay@arm.com>
Change-Id: Ia8469134a42808e76524c6b0160470dc77a87d0c
diff --git a/external/MbedTLS/MbedTLS.cmake b/external/MbedTLS/MbedTLS.cmake
index a3d63f0..74513db 100644
--- a/external/MbedTLS/MbedTLS.cmake
+++ b/external/MbedTLS/MbedTLS.cmake
@@ -7,7 +7,7 @@
set(MBEDTLS_URL "https://github.com/Mbed-TLS/mbedtls.git"
CACHE STRING "Mbed TLS repository URL")
-set(MBEDTLS_REFSPEC "mbedtls-3.3.0"
+set(MBEDTLS_REFSPEC "mbedtls-3.4.0"
CACHE STRING "Mbed TLS git refspec")
set(MBEDTLS_SOURCE_DIR "${CMAKE_CURRENT_BINARY_DIR}/_deps/mbedtls-src"
CACHE PATH "MbedTLS source directory")
@@ -51,7 +51,7 @@
LazyFetch_MakeAvailable(DEP_NAME MbedTLS
FETCH_OPTIONS ${GIT_OPTIONS}
INSTALL_DIR ${MBEDTLS_INSTALL_DIR}
- PACKAGE_DIR ${MBEDTLS_INSTALL_DIR}/cmake
+ PACKAGE_DIR ${MBEDTLS_INSTALL_DIR}
CACHE_FILE "${TS_ROOT}/external/MbedTLS/mbedtls-init-cache.cmake.in"
SOURCE_DIR "${MBEDTLS_SOURCE_DIR}"
)