tests: flash: Use a flash partition that is known to be nonsecure
With TF-M enabled the storage_partition can be used as memory that is known to be configured as non-secure flash region. The slot1_ns_partition partition is only correct when TF-M is built with BL2 enabled. Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
parent
afe4cce831
commit
a8e340eb7e
|
@ -0,0 +1,4 @@
|
|||
CONFIG_FCB=y
|
||||
CONFIG_FLASH_MAP=y
|
||||
CONFIG_SETTINGS=y
|
||||
CONFIG_SETTINGS_FCB=y
|
|
@ -0,0 +1,4 @@
|
|||
CONFIG_FCB=y
|
||||
CONFIG_FLASH_MAP=y
|
||||
CONFIG_SETTINGS=y
|
||||
CONFIG_SETTINGS_FCB=y
|
|
@ -0,0 +1,4 @@
|
|||
CONFIG_FCB=y
|
||||
CONFIG_FLASH_MAP=y
|
||||
CONFIG_SETTINGS=y
|
||||
CONFIG_SETTINGS_FCB=y
|
|
@ -14,9 +14,6 @@
|
|||
#define TEST_AREA_DEV_NODE DT_INST(0, nordic_qspi_nor)
|
||||
#elif defined(CONFIG_SPI_NOR)
|
||||
#define TEST_AREA_DEV_NODE DT_INST(0, jedec_spi_nor)
|
||||
#elif defined(CONFIG_TRUSTED_EXECUTION_NONSECURE)
|
||||
/* SoC embedded NVM */
|
||||
#define TEST_AREA slot1_ns_partition
|
||||
#else
|
||||
#define TEST_AREA storage_partition
|
||||
#endif
|
||||
|
|
|
@ -38,7 +38,7 @@ tests:
|
|||
drivers.flash.common.tfm_ns:
|
||||
build_only: true
|
||||
filter: (CONFIG_FLASH_HAS_DRIVER_ENABLED and CONFIG_TRUSTED_EXECUTION_NONSECURE
|
||||
and dt_label_with_parent_compat_enabled("slot1_ns_partition", "fixed-partitions"))
|
||||
and dt_label_with_parent_compat_enabled("storage_partition", "fixed-partitions"))
|
||||
integration_platforms:
|
||||
- nrf9161dk_nrf9161_ns
|
||||
drivers.flash.common.stm32:
|
||||
|
|
Loading…
Reference in a new issue