@@ -5,13 +5,15 @@ choice SECURE_STORAGE_ITS_STORE_IMPLEMENTATION
55 prompt "ITS store module implementation"
66
77DT_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))
810DT_STORAGE_PARTITION := $(dt_nodelabel_path,storage_partition)
911
1012config SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_ZMS
1113 bool "ITS store module implementation using ZMS for storage"
1214 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)
1517 select ZMS
1618 help
1719 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
2527config SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_SETTINGS
2628 bool "ITS store module implementation using the settings subsystem for storage"
2729 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)))
3034 imply FLASH_MAP
3135 imply NVS
3236 select SETTINGS
0 commit comments