Skip to content

Commit 060f17a

Browse files
committed
modules: tfm: add required selection and dependencies
BUILD_WITH_TFM needs to depend on ARM_TRUSTZONE_M, which is selected by the SoC or Board definition. In addition to that we add an imply statement for INIT_ARCH_HW_AT_BOOT because Zephyr will be chain-loaded by TF-M, and needs to cleanup its core ARCH registers that might be left in non-reset state. Signed-off-by: Ioannis Glaropoulos <[email protected]>
1 parent 0924cb5 commit 060f17a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/Kconfig.tfm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ menuconfig BUILD_WITH_TFM
2222
bool "Build with TF-M as the Secure Execution Environment"
2323
depends on TRUSTED_EXECUTION_NONSECURE
2424
depends on TFM_BOARD != ""
25+
depends on ARM_TRUSTZONE_M
26+
imply INIT_ARCH_HW_AT_BOOT
2527
help
2628
When enabled, this option instructs the Zephyr build process to
2729
additionaly generate a TF-M image for the Secure Execution

0 commit comments

Comments
 (0)