modules: mbedtls: Build psa_crypto_slot_management conditionally
TFM redefines functions from mbed TLS's psa_crypto_slot_management.c, therefore that file should not be included in build when TFM is enabled. Otherwise, the linker reports an error about redefined functions like psa_open_key() etc. Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
This commit is contained in:
parent
561f220686
commit
d5f6fe484a
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,6 @@ zephyr_interface_library_named(mbedTLS)
|
|||
${ZEPHYR_CURRENT_MODULE_DIR}/library/psa_crypto_mac.c
|
||||
${ZEPHYR_CURRENT_MODULE_DIR}/library/psa_crypto_rsa.c
|
||||
${ZEPHYR_CURRENT_MODULE_DIR}/library/psa_crypto_se.c
|
||||
${ZEPHYR_CURRENT_MODULE_DIR}/library/psa_crypto_slot_management.c
|
||||
${ZEPHYR_CURRENT_MODULE_DIR}/library/psa_crypto_storage.c
|
||||
${ZEPHYR_CURRENT_MODULE_DIR}/library/psa_its_file.c
|
||||
)
|
||||
|
@ -127,6 +126,7 @@ zephyr_interface_library_named(mbedTLS)
|
|||
list(APPEND crypto_source
|
||||
${ZEPHYR_CURRENT_MODULE_DIR}/library/psa_crypto.c
|
||||
${ZEPHYR_CURRENT_MODULE_DIR}/library/psa_crypto_client.c
|
||||
${ZEPHYR_CURRENT_MODULE_DIR}/library/psa_crypto_slot_management.c
|
||||
)
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue