mirror of
https://github.com/Mbed-TLS/mbedtls-framework.git
synced 2026-10-01 14:27:22 +00:00
Edit file paths in all-core.sh
Signed-off-by: Elena Uziunaite <[email protected]>
This commit is contained in:
+6
-13
@@ -131,21 +131,14 @@ pre_set_shell_options () {
|
|||||||
set -e -o pipefail -u
|
set -e -o pipefail -u
|
||||||
}
|
}
|
||||||
|
|
||||||
# For project detection
|
|
||||||
in_mbedtls_repo () {
|
|
||||||
test "$PROJECT_NAME" = "Mbed TLS"
|
|
||||||
}
|
|
||||||
|
|
||||||
in_tf_psa_crypto_repo () {
|
|
||||||
test "$PROJECT_NAME" = "TF-PSA-Crypto"
|
|
||||||
}
|
|
||||||
|
|
||||||
pre_check_environment () {
|
pre_check_environment () {
|
||||||
# For project detection
|
# For project detection
|
||||||
PROJECT_NAME_FILE='./scripts/project_name.txt'
|
if [[ -d ../include/mbedtls && -r ../framework/scripts/project_detection.sh ]]; then
|
||||||
if read -r PROJECT_NAME < "$PROJECT_NAME_FILE"; then :; else
|
# we're in tf-psa-crypto as a submodule of mbedtls, grab the framework from mbedtls
|
||||||
echo "$PROJECT_NAME_FILE does not exist... Exiting..." >&2
|
. ../framework/scripts/project_detection.sh
|
||||||
exit 1
|
else
|
||||||
|
# we're in TF-PSA-Crypto standalone or in mbedtls, use the local framework
|
||||||
|
. framework/scripts/project_detection.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if in_mbedtls_repo || in_tf_psa_crypto_repo; then :; else
|
if in_mbedtls_repo || in_tf_psa_crypto_repo; then :; else
|
||||||
|
|||||||
Reference in New Issue
Block a user