mgmt: Added Kconfig values and west.yml changes for mcumgr new version
The new version of mcumgr adds a few new Kconfig values, so this commit adds them on Zephyr side. This commit also updates west.yml so it points to the latest changes on mcumgr's repo. Signed-off-by: Miguel Azevedo <miguellazev@gmail.com> Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
This commit is contained in:
parent
b4335a04ac
commit
61d56b4c53
2 changed files with 60 additions and 2 deletions
|
@ -10,8 +10,13 @@ config MCUMGR
|
||||||
|
|
||||||
if MCUMGR
|
if MCUMGR
|
||||||
|
|
||||||
menu "Command handlers"
|
config MGMT_CBORATTR_MAX_SIZE
|
||||||
|
int "The maximum size of a CBOR attribute during decoding"
|
||||||
|
default 512
|
||||||
|
help
|
||||||
|
The maximum size of a CBOR attribute during decoding
|
||||||
|
|
||||||
|
menu "Command Handlers"
|
||||||
menuconfig MCUMGR_CMD_FS_MGMT
|
menuconfig MCUMGR_CMD_FS_MGMT
|
||||||
bool "Enable mcumgr handlers for file management"
|
bool "Enable mcumgr handlers for file management"
|
||||||
depends on FILE_SYSTEM
|
depends on FILE_SYSTEM
|
||||||
|
@ -51,6 +56,7 @@ menuconfig MCUMGR_CMD_IMG_MGMT
|
||||||
help
|
help
|
||||||
Enables mcumgr handlers for image management
|
Enables mcumgr handlers for image management
|
||||||
|
|
||||||
|
if MCUMGR_CMD_IMG_MGMT
|
||||||
config IMG_MGMT_UL_CHUNK_SIZE
|
config IMG_MGMT_UL_CHUNK_SIZE
|
||||||
int "Maximum chunk size for image uploads"
|
int "Maximum chunk size for image uploads"
|
||||||
default 512
|
default 512
|
||||||
|
@ -60,6 +66,58 @@ config IMG_MGMT_UL_CHUNK_SIZE
|
||||||
this size gets allocated on the stack during handling of a image upload
|
this size gets allocated on the stack during handling of a image upload
|
||||||
command.
|
command.
|
||||||
|
|
||||||
|
|
||||||
|
config IMG_MGMT_VERBOSE_ERR
|
||||||
|
bool "Verbose logging when uploading a new image"
|
||||||
|
help
|
||||||
|
Enable verbose logging during a firmware upgrade.
|
||||||
|
|
||||||
|
config IMG_MGMT_DUMMY_HDR
|
||||||
|
bool "Return dummy image header data for imgr functions"
|
||||||
|
help
|
||||||
|
Returns dummy image header data for imgr functions,
|
||||||
|
useful when there are no images present, Eg: unit tests.
|
||||||
|
endif
|
||||||
|
|
||||||
|
menuconfig MCUMGR_CMD_LOG_MGMT
|
||||||
|
bool "Enable mcumgr handlers for log management"
|
||||||
|
help
|
||||||
|
Enables mcumgr handlers for log management
|
||||||
|
|
||||||
|
if MCUMGR_CMD_LOG_MGMT
|
||||||
|
config LOG_MGMT_CHUNK_LEN
|
||||||
|
int "Maximum chunk size for log downloads"
|
||||||
|
default 512
|
||||||
|
help
|
||||||
|
Limits the maximum chunk size for log downloads, in bytes. A buffer of
|
||||||
|
this size gets allocated on the stack during handling of the log show
|
||||||
|
command.
|
||||||
|
|
||||||
|
config LOG_MGMT_NAME_LEN
|
||||||
|
int "Maximum log name length"
|
||||||
|
default 64
|
||||||
|
help
|
||||||
|
Limits the maximum length of log names, in bytes. If a log's name length
|
||||||
|
exceeds this number, it gets truncated in management responses. A buffer
|
||||||
|
of this size gets allocated on the stack during handling of all log
|
||||||
|
management commands.
|
||||||
|
|
||||||
|
config LOG_MGMT_BODY_LEN
|
||||||
|
int "Maximum log body length"
|
||||||
|
default 128
|
||||||
|
help
|
||||||
|
Limits the maximum length of log entry bodies, in bytes. If a log
|
||||||
|
entry's body length exceeds this number, it gets truncated in management
|
||||||
|
responses. A buffer of this size gets allocated on the stack during
|
||||||
|
handling of the log show command.
|
||||||
|
|
||||||
|
config LOG_READ_WATERMARK_UPDATE
|
||||||
|
bool "Enable reading of log watermark update"
|
||||||
|
help
|
||||||
|
Enables reading of log watermark update.
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
menuconfig MCUMGR_CMD_OS_MGMT
|
menuconfig MCUMGR_CMD_OS_MGMT
|
||||||
bool "Enable mcumgr handlers for OS management"
|
bool "Enable mcumgr handlers for OS management"
|
||||||
select REBOOT
|
select REBOOT
|
||||||
|
|
2
west.yml
2
west.yml
|
@ -80,7 +80,7 @@ manifest:
|
||||||
revision: v1.5.0
|
revision: v1.5.0
|
||||||
path: bootloader/mcuboot
|
path: bootloader/mcuboot
|
||||||
- name: mcumgr
|
- name: mcumgr
|
||||||
revision: d4e97cd4fc80ff949415062b1c83fd42929e8fe4
|
revision: 0a7149965a5684a539213e9295115d6ee90be716
|
||||||
path: modules/lib/mcumgr
|
path: modules/lib/mcumgr
|
||||||
- name: net-tools
|
- name: net-tools
|
||||||
revision: 4bff01084d225996e4aae84b98be5969e2f9f33d
|
revision: 4bff01084d225996e4aae84b98be5969e2f9f33d
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue