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: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
Jamie McCrae 2023-08-29 07:43:16 +01:00 committed by Dominik Ermel
parent 11ecbf639d
commit e188dbb0e1
1 changed files with 5 additions and 2 deletions

View File

@ -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) {