@@ -5,13 +5,15 @@ choice SECURE_STORAGE_ITS_STORE_IMPLEMENTATION
5
5
prompt "ITS store module implementation"
6
6
7
7
DT_ITS_PARTITION := $(dt_chosen_path,secure_storage_its_partition)
8
+ DT_CHOSEN_Z_SETTINGS_PARTITION := zephyr,settings-partition
9
+ DT_SETTINGS_PARTITIION := $(dt_chosen_path,$(DT_CHOSEN_Z_SETTINGS_PARTITION))
8
10
DT_STORAGE_PARTITION := $(dt_nodelabel_path,storage_partition)
9
11
10
12
config SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_ZMS
11
13
bool "ITS store module implementation using ZMS for storage"
12
14
depends on FLASH_HAS_DRIVER_ENABLED \
13
- && $(dt_path_enabled,$(DT_ITS_PARTITION)) \
14
- && $(dt_node_has_compat,$(dt_node_parent,$(DT_ITS_PARTITION)),fixed-partitions)
15
+ && $(dt_path_enabled,$(DT_ITS_PARTITION)) \
16
+ && $(dt_node_has_compat,$(dt_node_parent,$(DT_ITS_PARTITION)),fixed-partitions)
15
17
select ZMS
16
18
help
17
19
This implementation of the ITS store module makes direct use of ZMS for storage.
@@ -25,8 +27,10 @@ config SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_ZMS
25
27
config SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_SETTINGS
26
28
bool "ITS store module implementation using the settings subsystem for storage"
27
29
depends on FLASH_HAS_DRIVER_ENABLED \
28
- && $(dt_path_enabled,$(DT_STORAGE_PARTITION)) \
29
- && $(dt_node_has_compat,$(dt_node_parent,$(DT_STORAGE_PARTITION)),fixed-partitions)
30
+ && (($(dt_path_enabled,$(DT_SETTINGS_PARTITIION)) \
31
+ && $(dt_node_has_compat,$(dt_node_parent,$(DT_SETTINGS_PARTITIION)),fixed-partitions))\
32
+ || ($(dt_path_enabled,$(DT_STORAGE_PARTITION)) \
33
+ && $(dt_node_has_compat,$(dt_node_parent,$(DT_STORAGE_PARTITION)),fixed-partitions)))
30
34
imply FLASH_MAP
31
35
imply NVS
32
36
select SETTINGS
0 commit comments