From d7f9956864b438dde78304793c1b7f90aa56f8ad Mon Sep 17 00:00:00 2001 From: Riadh Ghaddab Date: Thu, 26 Sep 2024 12:22:12 +0200 Subject: [PATCH] flash_map_pm: add support for ZMS storage This adds the support of ZMS for the partition manager Signed-off-by: Riadh Ghaddab --- include/flash_map_pm.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/flash_map_pm.h b/include/flash_map_pm.h index 4232f646ccff..baa5cfdb7476 100644 --- a/include/flash_map_pm.h +++ b/include/flash_map_pm.h @@ -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 @@ -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