Skip to content

Commit 190f09d

Browse files
Flavio Ceolincfriedt
authored andcommitted
samples: tfm: Add ZEPHYR_TRUSTED_FIRMWARE_M_MODULE dependency
Only build / run these TF-M samples when TF-M module is available. Signed-off-by: Flavio Ceolin <[email protected]>
1 parent a166290 commit 190f09d

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

samples/tfm_integration/psa_crypto/sample.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ tests:
88
platform_allow: mps2_an521_ns lpcxpresso55s69_ns nrf5340dk_nrf5340_cpuapp_ns
99
nrf9160dk_nrf9160_ns nucleo_l552ze_q_ns v2m_musca_s1_ns stm32l562e_dk_ns
1010
bl5340_dvk_cpuapp_ns
11+
filter: CONFIG_ZEPHYR_TRUSTED_FIRMWARE_M_MODULE
1112
harness: console
1213
harness_config:
1314
type: multi_line

samples/tfm_integration/psa_protected_storage/sample.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ common:
55
tags: psa
66
platform_allow: mps2_an521_ns v2m_musca_s1_ns
77
nrf5340dk_nrf5340_cpuapp_ns nrf9160dk_nrf9160_ns bl5340_dvk_cpuapp_ns
8+
filter: CONFIG_ZEPHYR_TRUSTED_FIRMWARE_M_MODULE
89
harness: console
910
harness_config:
1011
type: multi_line
@@ -22,3 +23,4 @@ common:
2223
tests:
2324
sample.tfm.protected_storage:
2425
tags: tfm
26+
filter: CONFIG_ZEPHYR_TRUSTED_FIRMWARE_M_MODULE

samples/tfm_integration/tfm_ipc/sample.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ tests:
88
platform_allow: mps2_an521_ns lpcxpresso55s69_ns
99
nrf5340dk_nrf5340_cpuapp_ns nrf9160dk_nrf9160_ns nucleo_l552ze_q_ns
1010
stm32l562e_dk_ns v2m_musca_s1_ns v2m_musca_b1_ns bl5340_dvk_cpuapp_ns
11+
filter: CONFIG_ZEPHYR_TRUSTED_FIRMWARE_M_MODULE
1112
harness: console
1213
harness_config:
1314
type: multi_line
@@ -21,6 +22,7 @@ tests:
2122
platform_allow: mps2_an521_ns
2223
extra_configs:
2324
- CONFIG_TFM_BL2=n
25+
filter: CONFIG_ZEPHYR_TRUSTED_FIRMWARE_M_MODULE
2426
harness: console
2527
harness_config:
2628
type: multi_line

samples/tfm_integration/tfm_psa_test/sample.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ common:
33
platform_allow: mps2_an521_ns
44
nrf5340dk_nrf5340_cpuapp_ns nrf9160dk_nrf9160_ns
55
v2m_musca_s1_ns
6+
filter: CONFIG_ZEPHYR_TRUSTED_FIRMWARE_M_MODULE
67
harness: console
78
harness_config:
89
type: multi_line
@@ -16,5 +17,7 @@ tests:
1617
sample.tfm.psa_protected_storage_test:
1718
extra_args: "CONFIG_TFM_PSA_TEST_PROTECTED_STORAGE=y"
1819
timeout: 100
20+
filter: CONFIG_ZEPHYR_TRUSTED_FIRMWARE_M_MODULE
1921
sample.tfm.psa_internal_trusted_storage_test:
2022
extra_args: "CONFIG_TFM_PSA_TEST_INTERNAL_TRUSTED_STORAGE=y"
23+
filter: CONFIG_ZEPHYR_TRUSTED_FIRMWARE_M_MODULE

samples/tfm_integration/tfm_regression_test/sample.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ common:
33
platform_allow: lpcxpresso55s69_ns
44
nrf5340dk_nrf5340_cpuapp_ns nrf9160dk_nrf9160_ns
55
v2m_musca_s1_ns
6+
filter: CONFIG_ZEPHYR_TRUSTED_FIRMWARE_M_MODULE
67
harness: console
78
harness_config:
89
type: multi_line
@@ -18,3 +19,4 @@ tests:
1819
sample.tfm.tfm_regression:
1920
extra_args: ""
2021
timeout: 200
22+
filter: CONFIG_ZEPHYR_TRUSTED_FIRMWARE_M_MODULE

0 commit comments

Comments
 (0)