Skip to content

Commit d9b6e58

Browse files
joerchannashif
authored andcommitted
modules: trusted-firmware-m: Add TF-M connection based NS API source
Add TF-M connection based NCS API source file to build. This file is needed when a secure service is using connection based method. Signed-off-by: Joakim Andersson <[email protected]> Signed-off-by: David Brown <[email protected]>
1 parent dd12dfb commit d9b6e58

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

modules/trusted-firmware-m/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ if (CONFIG_BUILD_WITH_TFM)
214214
${TFM_INTERFACE_SOURCE_DIR}/tfm_platform_api.c
215215
${TFM_INTERFACE_SOURCE_DIR}/tfm_ps_api.c
216216
${TFM_INTERFACE_SOURCE_DIR}/tfm_psa_ns_api.c
217+
${TFM_INTERFACE_SOURCE_DIR}/tfm_psa_ns_connection_api.c
217218

218219
# Specific to nordic_nrf platform
219220
${TFM_INTERFACE_SOURCE_DIR}/tfm_ioctl_core_ns_api.c
@@ -376,6 +377,7 @@ if (CONFIG_BUILD_WITH_TFM)
376377
zephyr_library_sources_ifdef(CONFIG_TFM_PARTITION_INITIAL_ATTESTATION ${TFM_INTERFACE_SOURCE_DIR}/tfm_attest_api.c)
377378
zephyr_library_sources_ifdef(CONFIG_TFM_PARTITION_FIRMWARE_UPDATE ${TFM_INTERFACE_SOURCE_DIR}/tfm_fwu_api.c)
378379

380+
zephyr_library_sources_ifdef(CONFIG_TFM_CONNECTION_BASED_SERVICE_API ${TFM_INTERFACE_SOURCE_DIR}/tfm_psa_ns_connection_api.c)
379381
zephyr_library_sources(${TFM_INTERFACE_SOURCE_DIR}/tfm_psa_ns_api.c)
380382

381383
if(CONFIG_SOC_FAMILY_NRF)

modules/trusted-firmware-m/Kconfig.tfm

+12
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,18 @@ config TFM_USE_NS_APP
231231
This option is intended for testing purposes only, since this is the
232232
easiest way to integrate and run the TF-M regression tests in the
233233
zephyr build system.
234+
235+
config TFM_CONNECTION_BASED_SERVICE_API
236+
bool "TF-M use connection based service APIs"
237+
help
238+
The TF-M build system produces an interface source file for accessing
239+
connection based services.
240+
Select this option when TF-M service models requires this source file.
241+
242+
Note: This is an auto-generated configuration in the TF-M build
243+
system. When this option is not enabled in the TF-M build system this
244+
will result in compilation error.
245+
234246
if TFM_BL2
235247

236248
config TFM_MCUBOOT_IMAGE_NUMBER

0 commit comments

Comments
 (0)