From aa04e1396c72b8d65dbdd261c41c1a2b1fd10733 Mon Sep 17 00:00:00 2001 From: Javernaut Date: Fri, 29 Mar 2024 10:10:23 +0100 Subject: [PATCH] Update mbedtls to 3.6.0 --- scripts/mbedtls/download.sh | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/scripts/mbedtls/download.sh b/scripts/mbedtls/download.sh index 8e4cedd..f5b8933 100755 --- a/scripts/mbedtls/download.sh +++ b/scripts/mbedtls/download.sh @@ -1,9 +1,13 @@ #!/usr/bin/env bash -source ${SCRIPTS_DIR}/common-functions.sh +MBEDTLS_VERSION=v3.6.0 -export MBEDTLS_VERSION=3.5.2 -downloadTarArchive \ - "mbedtls" \ - "https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v${MBEDTLS_VERSION}.tar.gz" \ - true \ No newline at end of file +git clone \ + --depth 1 \ + --branch $MBEDTLS_VERSION \ + --recursive \ + https://github.com/Mbed-TLS/mbedtls.git \ + $MBEDTLS_VERSION + +LIBRARY_NAME=mbedtls +export SOURCES_DIR_${LIBRARY_NAME}=$(pwd)/${MBEDTLS_VERSION} \ No newline at end of file