From f51cf54fd4b4b5b57d0bb7b2c8161c2c7eb25802 Mon Sep 17 00:00:00 2001 From: Minos Galanakis Date: Wed, 7 Jan 2026 16:55:33 +0000 Subject: [PATCH] all-core.sh: Allow overriding of the psa-sim location Signed-off-by: Minos Galanakis --- scripts/all-core.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/scripts/all-core.sh b/scripts/all-core.sh index 3197b062a..7f965d78c 100644 --- a/scripts/all-core.sh +++ b/scripts/all-core.sh @@ -267,7 +267,18 @@ pre_initialize_variables () { # defined in this script whose name starts with "component_". ALL_COMPONENTS=$(compgen -A function component_ | sed 's/component_//') - PSASIM_PATH='framework/psasim/' + + # Allow overriding PSASIM_PATH with the following priority: + # 1) Environment override + # 2) Mbed TLS's version of psa-client-server + # 3) Fallback to the framework location (default after move) + if [ -z "${PSASIM_PATH+set}" ]; then + if [ -d tests/psa-client-server ]; then + PSASIM_PATH='tests/psa-client-server/psasim/' + else + PSASIM_PATH='framework/psasim/' + fi + fi # Delay determining SUPPORTED_COMPONENTS until the command line options have a chance to override # the commands set by the environment