Skip to content

Commit 7d1673e

Browse files
committed
nrf_security: core: oberon: build with -DBUILDING_MBEDTLS_CRYPTO
Define BUILDING_MBEDTLS_CRYPTO when building source files of the Oberon PSA Crypto core. This is done to be aligned with Mbed TLS in Zephyr. BUILDING_MBEDTLS_CRYPTO is used by the secure storage subsystem to identify that the ITS calls are coming from PSA Crypto. So it needs to be defined in all the PSA Crypto implementations. Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
1 parent 1a1f0fd commit 7d1673e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

subsys/nrf_security/src/core/nrf_oberon/CMakeLists.txt

+5-1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ target_compile_options(oberon_psa_core
4040
-Wno-strict-aliasing
4141
)
4242

43+
target_compile_definitions(oberon_psa_core
44+
PRIVATE
45+
BUILDING_MBEDTLS_CRYPTO
46+
)
47+
4348
target_link_libraries(oberon_psa_core
4449
PRIVATE
4550
psa_crypto_library_config
@@ -53,4 +58,3 @@ target_link_libraries(${mbedcrypto_target}
5358
PRIVATE
5459
oberon_psa_core
5560
)
56-

0 commit comments

Comments
 (0)