Commit e188dbb0 authored by Jamie McCrae's avatar Jamie McCrae Committed by Dominik Ermel
Browse files

zephyr: Fix boot serial extensions

Fixes building the bootloader with serial recovery mode and boot
serial extensions enabled due to changes in Zephyr's MCUmgr file
and naming changes.

Signed-off-by: default avatarJamie McCrae <jamie.mccrae@nordicsemi.no>
parent 11ecbf63
Loading
Loading
Loading
Loading
+5 −2
Changes for boot/zephyr/boot_serial_extensions.c: 5 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -4,9 +4,12 @@
 * SPDX-License-Identifier: Apache-2.0
 */

#include <stdio.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/flash.h>
#include <zephyr/mgmt/mcumgr/zephyr_groups.h>
#include <zephyr/mgmt/mcumgr/mgmt/mgmt_defines.h>
#include <zephyr/mgmt/mcumgr/grp/zephyr/zephyr_basic.h>
#include <../subsys/mgmt/mcumgr/transport/include/mgmt/mcumgr/transport/smp_internal.h>

#include <flash_map_backend/flash_map_backend.h>
#include <sysflash/sysflash.h>
@@ -140,7 +143,7 @@ int bs_peruser_system_specific(const struct nmgr_hdr *hdr, const char *buffer,
{
    int mgmt_rc = MGMT_ERR_ENOTSUP;

    if (hdr->nh_group == ZEPHYR_MGMT_GRP_BASE) {
    if (hdr->nh_group == ZEPHYR_MGMT_GRP_BASIC) {
        if (hdr->nh_op == NMGR_OP_WRITE) {
#ifdef CONFIG_BOOT_MGMT_CUSTOM_STORAGE_ERASE
            if (hdr->nh_id == ZEPHYR_MGMT_GRP_BASIC_CMD_ERASE_STORAGE) {