Skip to content

Commit a166290

Browse files
Flavio Ceolincfriedt
authored andcommitted
tfm: boards: Add ZEPHYR_TRUSTED_FIRMWARE_M_MODULE dependency
Enable BUILD_WITH_TFM only when TF-M module is available. Signed-off-by: Flavio Ceolin <[email protected]>
1 parent 21e0870 commit a166290

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

boards/arm/bl5340_dvk/Kconfig.defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ endif # BOARD_BL5340_DVK_CPUAPP
2727

2828
config BUILD_WITH_TFM
2929
default y if BOARD_BL5340_DVK_CPUAPP_NS
30+
depends on ZEPHYR_TRUSTED_FIRMWARE_M_MODULE
3031

3132
if BUILD_WITH_TFM
3233

boards/arm/mps2_an521/Kconfig.defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ config BOARD
2020
# force building with TF-M as the Secure Execution Environment.
2121
config BUILD_WITH_TFM
2222
default y if TRUSTED_EXECUTION_NONSECURE
23+
depends on ZEPHYR_TRUSTED_FIRMWARE_M_MODULE
2324

2425

2526
if GPIO

boards/arm/nrf5340dk_nrf5340/Kconfig.defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ config BOARD
1313

1414
config BUILD_WITH_TFM
1515
default y if BOARD_NRF5340DK_NRF5340_CPUAPP_NS
16+
depends on ZEPHYR_TRUSTED_FIRMWARE_M_MODULE
1617

1718
if BUILD_WITH_TFM
1819

boards/arm/nrf9160dk_nrf9160/Kconfig.defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ config BOARD
1313

1414
config BUILD_WITH_TFM
1515
default y if BOARD_NRF9160DK_NRF9160_NS
16+
depends on ZEPHYR_TRUSTED_FIRMWARE_M_MODULE
1617

1718
if BUILD_WITH_TFM
1819

modules/trusted-firmware-m/Kconfig.tfm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ config TFM_BOARD
2424

2525
menuconfig BUILD_WITH_TFM
2626
bool "Build with TF-M as the Secure Execution Environment"
27+
depends on ZEPHYR_TRUSTED_FIRMWARE_M_MODULE
2728
depends on TRUSTED_EXECUTION_NONSECURE
2829
depends on TFM_BOARD != ""
2930
depends on ARM_TRUSTZONE_M

0 commit comments

Comments
 (0)