From 203ff5e1651b8df9de49ad55e7f0d3d152221efe Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Fri, 31 Oct 2025 22:11:00 +0100 Subject: [PATCH] Support new location of crypto_adjust_config_synonyms.h in TF-PSA-Crypto >1.0.0 Signed-off-by: Gilles Peskine --- scripts/mbedtls_framework/psa_test_case.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/scripts/mbedtls_framework/psa_test_case.py b/scripts/mbedtls_framework/psa_test_case.py index 5964cad33..430f76353 100644 --- a/scripts/mbedtls_framework/psa_test_case.py +++ b/scripts/mbedtls_framework/psa_test_case.py @@ -47,10 +47,15 @@ def find_dependencies_not_implemented(dependencies: List[str]) -> List[str]: acc = set() #type: Set[str] for filename in [ - os.path.join(include_dir, 'psa/crypto_config.h'), - os.path.join(include_dir, 'psa/crypto_adjust_config_synonyms.h'), + 'psa/crypto_config.h', + 'psa/crypto_adjust_config_synonyms.h', + 'tf-psa-crypto/private/crypto_adjust_config_synonyms.h', ]: - read_implemented_dependencies(acc, filename) + path = os.path.join(build_tree.guess_project_root(), + include_dir, + filename) + if os.path.exists(path): + read_implemented_dependencies(acc, path) _implemented_dependencies = frozenset(acc) return [dep for dep in dependencies