Skip to content

Commit 9119c69

Browse files
committed
bl2: add psa_util.c to list of crypto source files
psa_crypto_ecp.c and psa_crypto_rsa.c reference functions from psa_util.c, e.g., mbedtls_psa_get_random, so it should be included in the library build to get rid of linker errors such as arm-zephyr-eabi/bin/ld: bl2/libbl2_crypto.a(psa_crypto_ecp.o): in function `mbedtls_psa_ecp_load_public_part': /modules/crypto/mbedtls/library/psa_crypto_ecp.c:447: undefined reference to `mbedtls_psa_get_random' Change-Id: Iacf3fb97dd87d3dcb20b9302c383f4061e1371a6 Signed-off-by: Stefan Gloor <[email protected]> (cherry picked from commit 019755de4c86aebdae557ea59577eafd292338fb) Signed-off-by: Tim Pambor <[email protected]>
1 parent 9ca5e2b commit 9119c69

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bl2/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,15 @@ list(APPEND BL2_CRYPTO_SRC
7272
$<${build_sha_256}:${MBEDCRYPTO_PATH}/library/sha256.c>
7373
$<${build_sha_384}:${MBEDCRYPTO_PATH}/library/sha512.c>
7474
$<$<AND:${is_ec_signature},$<NOT:${build_p256m}>>:${MBEDCRYPTO_PATH}/library/psa_crypto_ecp.c>
75+
$<$<AND:${is_ec_signature},$<NOT:${build_p256m}>>:${MBEDCRYPTO_PATH}/library/psa_util.c>
7576
$<$<AND:${is_ec_signature},$<NOT:${build_p256m}>>:${MBEDCRYPTO_PATH}/library/ecp.c>
7677
$<$<AND:${is_ec_signature},$<NOT:${build_p256m}>>:${MBEDCRYPTO_PATH}/library/ecp_curves.c>
7778
$<$<AND:${is_ec_signature},$<NOT:${build_p256m}>>:${MBEDCRYPTO_PATH}/library/ecdsa.c>
7879
$<$<AND:${is_ec_signature},$<NOT:${build_p256m}>>:${MBEDCRYPTO_PATH}/library/bignum.c>
7980
$<$<AND:${is_ec_signature},$<NOT:${build_p256m}>>:${MBEDCRYPTO_PATH}/library/bignum_core.c>
8081
$<$<AND:${is_ec_signature},$<NOT:${build_p256m}>>:${MBEDCRYPTO_PATH}/library/constant_time.c>
8182
$<${is_rsa_signature}:${MBEDCRYPTO_PATH}/library/psa_crypto_rsa.c>
83+
$<${is_rsa_signature}:${MBEDCRYPTO_PATH}/library/psa_util.c>
8284
$<${is_rsa_signature}:${MBEDCRYPTO_PATH}/library/rsa.c>
8385
$<${is_rsa_signature}:${MBEDCRYPTO_PATH}/library/rsa_alt_helpers.c>
8486
$<${is_rsa_signature}:${MBEDCRYPTO_PATH}/library/bignum.c>

0 commit comments

Comments
 (0)