Skip to content

Commit

Permalink
nrf_security: Fix dependency for threading_alt.h
Browse files Browse the repository at this point in the history
This fixes a dependency when including the threading_alt.h
from nrf_security.

The CC3XX platform library provides the implementation of the
mbedtls_mutex functions and it expects the mbedTLS mutexes to be of
type nrf_cc3xx_platform_mutex_t.
The definitions of the mutexes included in the files
nrf_cc3xx_platform_mutex_(zephyr/freertos).c

The threading_alt.c in nrf_security defines the mbedTLS mutexes
as Zephyr mutexes (k_mutex). This doesn't work when the CC3XX
platform library is used, so here this dependency is added.

Ref: NCSDK-31155

Signed-off-by: Georgios Vasilakis <[email protected]>
  • Loading branch information
Vge0rge committed Jan 14, 2025
1 parent aa302a2 commit e14a45d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/nrf_security/src/threading/threading.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# This file includes threading support required by the PSA crypto core
# Which was added in Mbed TLS 3.6.0.

if(CONFIG_MBEDTLS_THREADING_C AND NOT (CONFIG_PSA_CRYPTO_DRIVER_CC3XX OR CONFIG_CC3XX_BACKEND))
if(CONFIG_MBEDTLS_THREADING_C AND NOT CONFIG_NRF_CC3XX_PLATFORM)

append_with_prefix(src_crypto_base ${CMAKE_CURRENT_LIST_DIR}
threading_alt.c
Expand Down

0 comments on commit e14a45d

Please sign in to comment.