Use new functions

Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
This commit is contained in:
Elena Uziunaite 2024-11-07 14:39:32 +00:00
parent 23a6432af1
commit ef40183c34
2 changed files with 2 additions and 17 deletions

View File

@ -30,16 +30,7 @@ EOF
set -eu
# Project detection
PROJECT_NAME_FILE='./scripts/project_name.txt'
if read -r PROJECT_NAME < "$PROJECT_NAME_FILE"; then :; else
echo "$PROJECT_NAME_FILE does not exist... Exiting..." >&2
exit 1
fi
in_mbedtls_repo () {
test "$PROJECT_NAME" = "Mbed TLS"
}
. ../framework/scripts/project_detection.sh
# Collect stats and build a HTML report.
lcov_library_report () {

View File

@ -22,13 +22,7 @@ EOF
exit
fi
in_mbedtls_repo () {
test -d include -a -d library -a -d programs -a -d tests
}
in_tf_psa_crypto_repo () {
test -d include -a -d core -a -d drivers -a -d programs -a -d tests
}
. framework/scripts/project_detection.sh
if in_mbedtls_repo; then
if [ -d tf-psa-crypto ]; then