Skip to content

Commit

Permalink
[nrf noup] boards: Enable TF-M by default for nordic SoC NS boards
Browse files Browse the repository at this point in the history
Enable TF-M by default for nordic nRF5340 and nrf9160 SoC boards.

NCSDK-14811

Signed-off-by: Joakim Andersson <[email protected]>
Signed-off-by: Jamie McCrae <[email protected]>
Signed-off-by: Alex Tsamakos <[email protected]>
Signed-off-by: Johann Fischer <[email protected]>
(cherry picked from commit 1f9e520)
  • Loading branch information
joerchan authored and de-nordic committed May 26, 2023
1 parent 7f45aa4 commit 7999335
Show file tree
Hide file tree
Showing 6 changed files with 90 additions and 0 deletions.
15 changes: 15 additions & 0 deletions boards/arm/actinius_icarus/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,21 @@ if BOARD_ACTINIUS_ICARUS || BOARD_ACTINIUS_ICARUS_NS
config BOARD
default "actinius_icarus"

# By default, if we build for a Non-Secure version of the board,
# enable building with TF-M as the Secure Execution Environment.
config BUILD_WITH_TFM
default y if BOARD_ACTINIUS_ICARUS_NS

if BUILD_WITH_TFM

# By default, if we build with TF-M, instruct build system to
# flash the combined TF-M (Secure) & Zephyr (Non Secure) image
config TFM_FLASH_MERGED_BINARY
bool
default y

endif # BUILD_WITH_TFM

source "boards/common/actinius/Kconfig"

# For the secure version of the board the firmware is linked at the beginning
Expand Down
15 changes: 15 additions & 0 deletions boards/arm/actinius_icarus_bee/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,21 @@ if BOARD_ACTINIUS_ICARUS_BEE || BOARD_ACTINIUS_ICARUS_BEE_NS
config BOARD
default "actinius_icarus_bee"

# By default, if we build for a Non-Secure version of the board,
# enable building with TF-M as the Secure Execution Environment.
config BUILD_WITH_TFM
default y if BOARD_ACTINIUS_ICARUS_BEE_NS

if BUILD_WITH_TFM

# By default, if we build with TF-M, instruct build system to
# flash the combined TF-M (Secure) & Zephyr (Non Secure) image
config TFM_FLASH_MERGED_BINARY
bool
default y

endif # BUILD_WITH_TFM

source "boards/common/actinius/Kconfig"

# For the secure version of the board the firmware is linked at the beginning
Expand Down
15 changes: 15 additions & 0 deletions boards/arm/actinius_icarus_som/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,21 @@ if BOARD_ACTINIUS_ICARUS_SOM || BOARD_ACTINIUS_ICARUS_SOM_NS
config BOARD
default "actinius_icarus_som"

# By default, if we build for a Non-Secure version of the board,
# enable building with TF-M as the Secure Execution Environment.
config BUILD_WITH_TFM
default y if BOARD_ACTINIUS_ICARUS_SOM_NS

if BUILD_WITH_TFM

# By default, if we build with TF-M, instruct build system to
# flash the combined TF-M (Secure) & Zephyr (Non Secure) image
config TFM_FLASH_MERGED_BINARY
bool
default y

endif # BUILD_WITH_TFM

source "boards/common/actinius/Kconfig"

# For the secure version of the board the firmware is linked at the beginning
Expand Down
15 changes: 15 additions & 0 deletions boards/arm/circuitdojo_feather_nrf9160/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,21 @@ if BOARD_CIRCUITDOJO_FEATHER_NRF9160 || BOARD_CIRCUITDOJO_FEATHER_NRF9160_NS
config BOARD
default "circuitdojo_feather_nrf9160"

# By default, if we build for a Non-Secure version of the board,
# enable building with TF-M as the Secure Execution Environment.
config BUILD_WITH_TFM
default y if BOARD_CIRCUITDOJO_FEATHER_NRF9160_NS

if BUILD_WITH_TFM

# By default, if we build with TF-M, instruct build system to
# flash the combined TF-M (Secure) & Zephyr (Non Secure) image
config TFM_FLASH_MERGED_BINARY
bool
default y

endif # BUILD_WITH_TFM

# For the secure version of the board the firmware is linked at the beginning
# of the flash, or into the code-partition defined in DT if it is intended to
# be loaded by MCUboot. If the secure firmware is to be combined with a non-
Expand Down
15 changes: 15 additions & 0 deletions boards/arm/sparkfun_thing_plus_nrf9160/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,21 @@ if BOARD_SPARKFUN_THING_PLUS_NRF9160 || BOARD_SPARKFUN_THING_PLUS_NRF9160_NS
config BOARD
default "sparkfun_thing_plus_nrf9160"

# By default, if we build for a Non-Secure version of the board,
# enable building with TF-M as the Secure Execution Environment.
config BUILD_WITH_TFM
default y if BOARD_SPARKFUN_THING_PLUS_NRF9160_NS

if BUILD_WITH_TFM

# By default, if we build with TF-M, instruct build system to
# flash the combined TF-M (Secure) & Zephyr (Non Secure) image
config TFM_FLASH_MERGED_BINARY
bool
default y

endif # BUILD_WITH_TFM

# For the secure version of the board the firmware is linked at the beginning
# of the flash, or into the code-partition defined in DT if it is intended to
# be loaded by MCUboot. If the secure firmware is to be combined with a non-
Expand Down
15 changes: 15 additions & 0 deletions boards/arm/thingy53_nrf5340/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,21 @@ if BOARD_THINGY53_NRF5340_CPUAPP || BOARD_THINGY53_NRF5340_CPUAPP_NS
config BOARD
default "thingy53_nrf5340_cpuapp"

# By default, if we build for a Non-Secure version of the board,
# enable building with TF-M as the Secure Execution Environment.
config BUILD_WITH_TFM
default y if BOARD_THINGY53_NRF5340_CPUAPP_NS

if BUILD_WITH_TFM

# By default, if we build with TF-M, instruct build system to
# flash the combined TF-M (Secure) & Zephyr (Non Secure) image
config TFM_FLASH_MERGED_BINARY
bool
default y

endif # BUILD_WITH_TFM

# Code Partition:
#
# For the secure version of the board the firmware is linked at the beginning
Expand Down

0 comments on commit 7999335

Please sign in to comment.