From b20fcb55e7bf3cff8ac0bec5326636f8572b25ef Mon Sep 17 00:00:00 2001 From: Elena Uziunaite Date: Wed, 20 Nov 2024 16:24:04 +0000 Subject: [PATCH] Define FRAMEWORK Signed-off-by: Elena Uziunaite --- scripts/all-core.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/scripts/all-core.sh b/scripts/all-core.sh index 216c935a3..a2dc0d14e 100644 --- a/scripts/all-core.sh +++ b/scripts/all-core.sh @@ -132,14 +132,8 @@ pre_set_shell_options () { } pre_check_environment () { - # For project detection - if [[ -d ../include/mbedtls && -r ../framework/scripts/project_detection.sh ]]; then - # we're in tf-psa-crypto as a submodule of mbedtls, grab the framework from mbedtls - . ../framework/scripts/project_detection.sh - else - # we're in TF-PSA-Crypto standalone or in mbedtls, use the local framework - . framework/scripts/project_detection.sh - fi + + source $FRAMEWORK/scripts/project_detection.sh if in_mbedtls_repo || in_tf_psa_crypto_repo; then :; else echo "Must be run from Mbed TLS / TF-PSA-Crypto root" >&2