Skip to content

Commit c484aac

Browse files
frkvrlubos
authored andcommitted
crypto: Allow for direct linking with nrf_oberon for TF-M builds
-This commit allows linking to nrf_oberon for samples/apps that enable TF-M but still rely on ocrypto_ prefixed APIs because some of the crypto not being available in PSA crypto APIs. Note: Previous to this it was required to enable NORDIC_SECURITY_BACKEND to get access to nrf_oberon library (and ocrypto_ prefixed APIs). This commit will allow CONFIG_NRF_OBERON to be used as a signal that ocrypto_ APIs are required with NRF_SECURITY being enabled ref: NCSDK-29217 Signed-off-by: Frank Audun Kvamtrø <[email protected]>
1 parent 9e41f3d commit c484aac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/nrf_security/src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ endif()
203203
add_subdirectory(drivers)
204204

205205
# Add legacy Mbed TLS APIs
206-
if(CONFIG_MBEDTLS_LEGACY_CRYPTO_C)
206+
if(CONFIG_MBEDTLS_LEGACY_CRYPTO_C OR (CONFIG_NRF_OBERON AND CONFIG_BUILD_WITH_TFM))
207207
add_subdirectory(legacy)
208208
endif()
209209

0 commit comments

Comments
 (0)