Commit e486b533 authored by Jerzy Kasenberg's avatar Jerzy Kasenberg Committed by Fabio Utzig
Browse files

boot: mynewt: add support for the mcumgr echo command in serial boot 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: default avatarJerzy Kasenberg <jerzy.kasenberg@codecoup.pl>
parent daabd6a8
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -90,3 +90,7 @@ syscfg.defs:
            - '(BOOT_SERIAL_DETECT_PIN != -1) ||
            - '(BOOT_SERIAL_DETECT_PIN != -1) ||
               (BOOT_SERIAL_DETECT_TIMEOUT != 0) ||
               (BOOT_SERIAL_DETECT_TIMEOUT != 0) ||
               (BOOT_SERIAL_NVREG_INDEX != -1)'
               (BOOT_SERIAL_NVREG_INDEX != -1)'

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