Skip to content

Commit 34a6b7a

Browse files
test_psa_compliance: Link only with tfpsacrypto library
Following the change to only one crypto library instead of a core one and driver libraries, link the PSA crypto compliance test suites only to the tfpsacrypto library. Signed-off-by: Ronald Cron <[email protected]>
1 parent 893ad9e commit 34a6b7a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

scripts/test_psa_compliance.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,9 @@ def main(library_build_dir: str):
4444
subprocess.check_call(['cmake', '--build', library_build_dir, '--target', 'install'])
4545

4646
if build_tree.is_mbedtls_3_6():
47-
libraries_to_link = [str(install_dir.joinpath("lib/libmbedcrypto.a"))]
47+
crypto_library_path = install_dir.joinpath("lib/libmbedcrypto.a")
4848
else:
49-
libraries_to_link = [str(install_dir.joinpath("lib/" + lib))
50-
for lib in ["libtfpsacrypto.a", "libbuiltin.a",
51-
"libp256m.a", "libeverest.a"]]
49+
crypto_library_path = install_dir.joinpath("lib/libtfpsacrypto.a")
5250

5351
psa_arch_tests_dir = 'psa-arch-tests'
5452
os.makedirs(psa_arch_tests_dir, exist_ok=True)
@@ -75,7 +73,7 @@ def main(library_build_dir: str):
7573
'-DTARGET=tgt_dev_apis_stdc',
7674
'-DTOOLCHAIN=HOST_GCC',
7775
'-DSUITE=CRYPTO',
78-
'-DPSA_CRYPTO_LIB_FILENAME={}'.format(';'.join(libraries_to_link)),
76+
'-DPSA_CRYPTO_LIB_FILENAME={}'.format(str(crypto_library_path)),
7977
'-DPSA_INCLUDE_PATHS=' + str(install_dir.joinpath("include"))
8078
])
8179

0 commit comments

Comments
 (0)