Skip to content

Commit

Permalink
flash_map_pm: add support for ZMS storage
Browse files Browse the repository at this point in the history
This adds the support of ZMS for the partition manager

Signed-off-by: Riadh Ghaddab <rghaddab@baylibre.com>
  • Loading branch information
rghaddab committed Sep 27, 2024
1 parent 21cd8df commit 88e306e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/flash_map_pm.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
#define image_scratch mcuboot_scratch
#define image_scratch mcuboot_scratch

#if (CONFIG_SETTINGS_FCB || CONFIG_SETTINGS_NVS || defined(PM_SETTINGS_STORAGE_ID))
#if (CONFIG_SETTINGS_FCB || CONFIG_SETTINGS_NVS || defined(PM_SETTINGS_STORAGE_ID) ||\
CONFIG_SETTINGS_ZMS)
#define storage settings_storage
#define storage_partition settings_storage
#elif CONFIG_FILE_SYSTEM_LITTLEFS
Expand All @@ -38,6 +39,9 @@
#elif CONFIG_NVS
#define storage nvs_storage
#define storage_partition nvs_storage
#elif CONFIG_ZMS
#define storage zms_storage
#define storage_partition zms_storage
#endif

#define PM_ID(label) PM_##label##_ID
Expand Down

0 comments on commit 88e306e

Please sign in to comment.