Skip to content

Commit 6f60f53

Browse files
Vge0rgenordicjm
authored andcommitted
tf-m: Use the driver contexts from nrf_security
And not from the Oberon PSA core headers since the Oberon PSA core ones doesn't include the drivers for the hardware crypto accelerators. Also make sure that TF-M always get the nrf_security inlcludes first in order. Signed-off-by: Georgios Vasilakis <[email protected]>
1 parent e4e2378 commit 6f60f53

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

modules/trusted-firmware-m/tfm_boards/external_core.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ if(TARGET psa_interface)
3838
set(EXTERNAL_CRYPTO_CORE_HANDLED_PSA_INTERFACE True)
3939
target_include_directories(psa_interface
4040
INTERFACE
41+
${NRF_SECURITY_ROOT}/include
4142
$<BUILD_INTERFACE:${OBERON_PSA_CORE_PATH}/include>
4243
# Oberon library
4344
${OBERON_PSA_CORE_PATH}/library

modules/trusted-firmware-m/tfm_boards/external_core_install.cmake

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ install(
1111
${OBERON_PSA_CORE_PATH}/include/psa/crypto_adjust_config_synonyms.h
1212
${OBERON_PSA_CORE_PATH}/include/psa/crypto_compat.h
1313
${OBERON_PSA_CORE_PATH}/include/psa/crypto_driver_common.h
14-
${OBERON_PSA_CORE_PATH}/include/psa/crypto_driver_contexts_composites.h
15-
${OBERON_PSA_CORE_PATH}/include/psa/crypto_driver_contexts_key_derivation.h
16-
${OBERON_PSA_CORE_PATH}/include/psa/crypto_driver_contexts_primitives.h
1714
${OBERON_PSA_CORE_PATH}/include/psa/crypto_extra.h
1815
${OBERON_PSA_CORE_PATH}/include/psa/crypto_legacy.h
1916
${OBERON_PSA_CORE_PATH}/include/psa/crypto_platform.h
@@ -23,6 +20,10 @@ install(
2320
${OBERON_PSA_CORE_PATH}/include/psa/crypto_types.h
2421
${OBERON_PSA_CORE_PATH}/include/psa/crypto_values.h
2522
${OBERON_PSA_CORE_PATH}/include/psa/crypto.h
23+
# The driver contexts are taken from nrf_security
24+
${NRF_SECURITY_ROOT}/include/psa/crypto_driver_contexts_key_derivation.h
25+
${NRF_SECURITY_ROOT}/include/psa/crypto_driver_contexts_primitives.h
26+
${NRF_SECURITY_ROOT}/include/psa/crypto_driver_contexts_composites.h
2627
DESTINATION ${INSTALL_INTERFACE_INC_DIR}/psa
2728
)
2829

0 commit comments

Comments
 (0)