Skip to content

Commit

Permalink
boot: mynewt: add support for the mcumgr echo command in serial boot …
Browse files Browse the repository at this point in the history
…mode

This allows user to enable echo for mcumgr command in serial boot.
Code was enabled in zephyr only so far.
Now mynewt build can also have this feature if enabled.

No code changes just option in mynewt build to enable existing
mcuboot feature.

Signed-off-by: Jerzy Kasenberg <jerzy.kasenberg@codecoup.pl>
  • Loading branch information
kasjer authored and utzig committed Jul 17, 2023
1 parent daabd6a commit e486b53
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions boot/boot_serial/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,7 @@ syscfg.defs:
- '(BOOT_SERIAL_DETECT_PIN != -1) ||
(BOOT_SERIAL_DETECT_TIMEOUT != 0) ||
(BOOT_SERIAL_NVREG_INDEX != -1)'

BOOT_SERIAL_MGMT_ECHO:
description: If enabled, support for the mcumgr echo command is being added.
value: 0
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
#if MYNEWT_VAL(BOOT_SERIAL)
#define MCUBOOT_SERIAL 1
#endif
#if MYNEWT_VAL(BOOT_SERIAL_MGMT_ECHO)
#define MCUBOOT_BOOT_MGMT_ECHO 1
#endif
#if MYNEWT_VAL(BOOTUTIL_VALIDATE_SLOT0)
#define MCUBOOT_VALIDATE_PRIMARY_SLOT 1
#endif
Expand Down

0 comments on commit e486b53

Please sign in to comment.