From 092a5bad386aa3f5e28aab1cdebfd396bb7e2e25 Mon Sep 17 00:00:00 2001 From: Ben Taylor Date: Mon, 20 Oct 2025 09:13:57 +0100 Subject: [PATCH] Add improvements to the lcov script to better handle 3.6 Signed-off-by: Ben Taylor --- scripts/lcov.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/lcov.sh b/scripts/lcov.sh index b8f16e82c..70755a5f3 100755 --- a/scripts/lcov.sh +++ b/scripts/lcov.sh @@ -73,12 +73,15 @@ if [ $# -gt 0 ] && [ "$1" = "--help" ]; then exit fi -if in_mbedtls_repo; then +if [ -d tf-psa-crypto ]; then library_dirs='library tf-psa-crypto/core tf-psa-crypto/drivers/builtin' - title='Mbed TLS' + title='Mbed TLS > 4.0' +elif in_mbedtls_repo; then + library_dirs='library' + title='Mbed TLS < 4.0' elif in_tf_psa_crypto_repo; then library_dirs='core drivers/builtin' - title='TF-PSA-Crypto' + title='TF-PSA-CRYPTO' else echo "Cannot auto detect build files" exit