boards: Enable TF-M by default for nordic SoC NS boards

Enable TF-M by default for nordic nRF5340 and nrf9160 SoC boards.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
Joakim Andersson 2022-05-05 12:04:26 +02:00 committed by Carles Cufí
commit 17fd1f8fba
7 changed files with 17 additions and 90 deletions

View file

@ -25,13 +25,29 @@ config NRF_SOC_SECURE_SUPPORTED
For non-secure the functions must redirect to secure services exposed
by the secure firmware.
config BUILD_WITH_TFM
default y if TRUSTED_EXECUTION_NONSECURE
help
By default, if we build for a Non-Secure version of the board,
enable building with TF-M as the Secure Execution Environment.
if BUILD_WITH_TFM
config TFM_FLASH_MERGED_BINARY
default y
help
By default, if we build with TF-M, instruct build system to
flash the combined TF-M (Secure) & Zephyr (Non Secure) image
config TFM_LOG_LEVEL_SILENCE
default y if !$(dt_nodelabel_has_prop,uart1,pinctrl-names)
depends on BUILD_WITH_TFM
help
Disable TF-M secure output if the uart1 node has not assigned GPIO
pins using pinctrl.
endif # BUILD_WITH_TFM
config NRF_MPU_FLASH_REGION_SIZE
hex
default 0x1000