Skip to content

Commit 22399fc

Browse files
rghaddabrlubos
authored andcommitted
flash_map_pm: add support for ZMS storage
This adds the support of ZMS for the partition manager Signed-off-by: Riadh Ghaddab <rghaddab@baylibre.com>
1 parent 851c149 commit 22399fc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

include/flash_map_pm.h

+5-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
#define image_scratch mcuboot_scratch
3030
#define image_scratch mcuboot_scratch
3131

32-
#if (CONFIG_SETTINGS_FCB || CONFIG_SETTINGS_NVS || defined(PM_SETTINGS_STORAGE_ID))
32+
#if (CONFIG_SETTINGS_FCB || CONFIG_SETTINGS_NVS || defined(PM_SETTINGS_STORAGE_ID) ||\
33+
CONFIG_SETTINGS_ZMS)
3334
#define storage settings_storage
3435
#define storage_partition settings_storage
3536
#elif CONFIG_FILE_SYSTEM_LITTLEFS
@@ -38,6 +39,9 @@
3839
#elif CONFIG_NVS
3940
#define storage nvs_storage
4041
#define storage_partition nvs_storage
42+
#elif CONFIG_ZMS
43+
#define storage zms_storage
44+
#define storage_partition zms_storage
4145
#endif
4246

4347
#define PM_ID(label) PM_##label##_ID

0 commit comments

Comments
 (0)