This is an automated email from the ASF dual-hosted git repository.
andrzej-kaczmarek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-mcumgr.git
The following commit(s) were added to refs/heads/master by this push:
new 0b63bc5 cmd/img_mgmt: Add Mynewt syscfg for frugal list option
0b63bc5 is described below
commit 0b63bc54308baccb39146acc8b2e3a68e5800a9c
Author: Andrzej Kaczmarek <[email protected]>
AuthorDate: Tue May 19 16:57:16 2026 +0200
cmd/img_mgmt: Add Mynewt syscfg for frugal list option
---
cmd/img_mgmt/include/img_mgmt/img_mgmt_config.h | 6 ++++--
cmd/img_mgmt/syscfg.yml | 8 ++++++++
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/cmd/img_mgmt/include/img_mgmt/img_mgmt_config.h
b/cmd/img_mgmt/include/img_mgmt/img_mgmt_config.h
index 033790a..abbee36 100644
--- a/cmd/img_mgmt/include/img_mgmt/img_mgmt_config.h
+++ b/cmd/img_mgmt/include/img_mgmt/img_mgmt_config.h
@@ -22,8 +22,6 @@
/* Number of updatable images */
#define IMG_MGMT_UPDATABLE_IMAGE_NUMBER 1
-/* Image status list will only contain image attributes that are true/non-zero
*/
-#define IMG_MGMT_FRUGAL_LIST 0
#if defined MYNEWT
@@ -33,6 +31,10 @@
#define IMG_MGMT_VERBOSE_ERR MYNEWT_VAL(IMG_MGMT_VERBOSE_ERR)
#define IMG_MGMT_LAZY_ERASE MYNEWT_VAL(IMG_MGMT_LAZY_ERASE)
#define IMG_MGMT_DUMMY_HDR MYNEWT_VAL(IMG_MGMT_DUMMY_HDR)
+#ifdef MYNEWT_VAL_IMG_MGMT_FRUGAL_LIST
+#undef IMG_MGMT_FRUGAL_LIST
+#define IMG_MGMT_FRUGAL_LIST MYNEWT_VAL(IMG_MGMT_FRUGAL_LIST)
+#endif
#define IMG_MGMT_BOOT_CURR_SLOT 0
#elif defined __ZEPHYR__
diff --git a/cmd/img_mgmt/syscfg.yml b/cmd/img_mgmt/syscfg.yml
index 250637c..56c56f4 100644
--- a/cmd/img_mgmt/syscfg.yml
+++ b/cmd/img_mgmt/syscfg.yml
@@ -42,6 +42,11 @@ syscfg.defs:
tests'
value: 0
+ IMG_MGMT_FRUGAL_LIST:
+ description: >
+ Include only true/non-zero attributes in image status list.
+ value: 0
+
syscfg.vals.IMGMGR_MAX_CHUNK_SIZE:
IMG_MGMT_UL_CHUNK_SIZE: MYNEWT_VAL(IMGMGR_MAX_CHUNK_SIZE)
@@ -53,3 +58,6 @@ syscfg.vals.IMGMGR_VERBOSE_ERR:
syscfg.vals.IMGMGR_DUMMY_HDR:
IMG_MGMT_DUMMY_HDR: MYNEWT_VAL(IMGMGR_DUMMY_HDR)
+
+syscfg.vals.IMGMGR_FRUGAL_LIST:
+ IMG_MGMT_FRUGAL_LIST: MYNEWT_VAL(IMGMGR_FRUGAL_LIST)