1
0
mirror of https://github.com/ARMmbed/mbedtls.git synced 2025-05-10 17:01:41 +08:00

Make lcov.sh run from the build directory

lcov.sh can now be called from any build directory and
also still works with in-place builds too.

Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
This commit is contained in:
Thomas Daubney 2023-10-23 17:25:52 +01:00
parent 11120f9c4d
commit c0ae569066

View File

@ -43,8 +43,8 @@ EOF
set -eu set -eu
# Repository detection # Repository detection
in_mbedtls_repo () { in_mbedtls_build_dir () {
test -d include -a -d library -a -d programs -a -d tests test -d library
} }
# Collect stats and build a HTML report. # Collect stats and build a HTML report.
@ -74,11 +74,11 @@ if [ $# -gt 0 ] && [ "$1" = "--help" ]; then
exit exit
fi fi
if in_mbedtls_repo; then if in_mbedtls_build_dir; then
library_dir='library' library_dir='library'
title='Mbed TLS' title='Mbed TLS'
else else
library_dir='build/core' library_dir='core'
title='TF-PSA-Crypto' title='TF-PSA-Crypto'
fi fi