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 26, 2024
1 parent 52c79ed commit c1a0cb1
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)

Check warning on line 33 in include/flash_map_pm.h

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

include/flash_map_pm.h:33 please, no spaces at the start of a line
#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 c1a0cb1

Please sign in to comment.