From ef8fcdfd9343aff66158a75a44d234ea2bf5316a Mon Sep 17 00:00:00 2001 From: Ioannis Glaropoulos Date: Fri, 20 Nov 2020 09:49:47 +0100 Subject: [PATCH] boards: arm: nrf5340: enable by default TF-M on non-secure builds Enable building with TF-M by default on nRF5340 DK Application core (cpuapp) when building for the non-secure version of the board. Signed-off-by: Ioannis Glaropoulos --- boards/arm/nrf5340dk_nrf5340/Kconfig.defconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/boards/arm/nrf5340dk_nrf5340/Kconfig.defconfig b/boards/arm/nrf5340dk_nrf5340/Kconfig.defconfig index 8c3d55255a3..f04a905bdb7 100644 --- a/boards/arm/nrf5340dk_nrf5340/Kconfig.defconfig +++ b/boards/arm/nrf5340dk_nrf5340/Kconfig.defconfig @@ -16,6 +16,12 @@ config BOARD default "nrf5340pdk_nrf5340_cpuapp" if BOARD_NRF5340PDK_NRF5340_CPUAPP || BOARD_NRF5340PDK_NRF5340_CPUAPPNS default "nrf5340dk_nrf5340_cpuapp" if BOARD_NRF5340DK_NRF5340_CPUAPP || BOARD_NRF5340DK_NRF5340_CPUAPPNS +# By default, if we build for a Non-Secure version of the board, +# force building with TF-M as the Secure Execution Environment. + +config BUILD_WITH_TFM + default y if BOARD_NRF5340DK_NRF5340_CPUAPPNS || BOARD_NRF5340PDK_NRF5340_CPUAPPNS + # Code Partition: # # For the secure version of the board the firmware is linked at the beginning