Skip to content

Commit d677123

Browse files
kapi-nojukkar
authored andcommitted
samples: common: mcumgr_bt_ota_dfu: add suit support
Added the SUIT support to the MCUmgr Bluetooth DFU Kconfig helper. Ref: NCSDK-30339 Signed-off-by: Kamil Piszczek <[email protected]>
1 parent 8ce46e3 commit d677123

File tree

1 file changed

+30
-20
lines changed
  • samples/common/mcumgr_bt_ota_dfu

1 file changed

+30
-20
lines changed

samples/common/mcumgr_bt_ota_dfu/Kconfig

Lines changed: 30 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,52 @@
44
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
#
66

7-
DT_CHOSEN_EXT_FLASH:= nordic,pm-ext-flash
8-
97
config NCS_SAMPLE_MCUMGR_BT_OTA_DFU
108
bool "MCUmgr OTA DFU over Bluetooth"
9+
select CRC
10+
select FLASH
11+
select FLASH_MAP
1112
select MCUMGR
13+
select MCUMGR_TRANSPORT_BT
1214
select NET_BUF
1315
select ZCBOR
14-
select CRC
15-
select MCUMGR_TRANSPORT_BT
16-
imply MCUMGR_TRANSPORT_BT_CONN_PARAM_CONTROL
17-
imply IMG_MANAGER
18-
imply STREAM_FLASH
19-
imply FLASH_MAP
20-
imply FLASH
21-
imply MCUMGR_GRP_IMG
2216
imply MCUMGR_GRP_OS
2317
imply MCUMGR_GRP_OS_BOOTLOADER_INFO
18+
imply MCUMGR_TRANSPORT_BT_CONN_PARAM_CONTROL
2419
imply MCUMGR_TRANSPORT_BT_REASSEMBLY
2520
imply NCS_SAMPLE_MCUMGR_BT_OTA_DFU_SPEEDUP
2621
depends on BT_PERIPHERAL
27-
depends on BOOTLOADER_MCUBOOT
22+
depends on BOOTLOADER_MCUBOOT || SUIT
2823
help
2924
Enable this option to include MCUmgr in the build which will enable
3025
the Bluetooth transport and image management group, which allows
3126
for firmware over the air update support of the device.
3227

3328
if NCS_SAMPLE_MCUMGR_BT_OTA_DFU
3429

35-
config NCS_SAMPLE_MCUMGR_BT_OTA_DFU_MCUBOOT_DIRECT_XIP_SUPPORT
30+
config NCS_SAMPLE_MCUMGR_BT_OTA_DFU_BACKEND_MCUBOOT
3631
bool
37-
default y if MCUBOOT_BOOTLOADER_MODE_DIRECT_XIP
38-
default y if MCUBOOT_BOOTLOADER_MODE_DIRECT_XIP_WITH_REVERT
39-
imply MCUMGR_GRP_IMG_REJECT_DIRECT_XIP_MISMATCHED_SLOT
32+
default y
33+
select IMG_MANAGER
34+
select MCUMGR_GRP_IMG
35+
select STREAM_FLASH
36+
imply MCUMGR_GRP_IMG_REJECT_DIRECT_XIP_MISMATCHED_SLOT if \
37+
MCUBOOT_BOOTLOADER_MODE_DIRECT_XIP || MCUBOOT_BOOTLOADER_MODE_DIRECT_XIP_WITH_REVERT
38+
depends on BOOTLOADER_MCUBOOT
39+
help
40+
This option enables the necessary configuration for the MCUboot-based DFU.
41+
42+
config NCS_SAMPLE_MCUMGR_BT_OTA_DFU_BACKEND_SUIT
43+
bool
44+
default y
45+
select MCUMGR_SMP_LEGACY_RC_BEHAVIOUR
46+
select MGMT_SUITFU
47+
select MGMT_SUITFU_GRP_SUIT
48+
select SSF_SUIT_SERVICE_ENABLED
49+
select ZCBOR_CANONICAL
50+
depends on SUIT
51+
help
52+
This option enables the necessary configuration for the SUIT-based DFU.
4053

4154
choice MCUMGR_TRANSPORT_BT_PERM
4255
default MCUMGR_TRANSPORT_BT_PERM_RW
@@ -55,18 +68,15 @@ config MCUMGR_GRP_OS_MCUMGR_PARAMS
5568

5669
endif # MCUMGR_TRANSPORT_BT_REASSEMBLY
5770

58-
if (SETTINGS_FCB || SETTINGS_NVS)
59-
60-
# Enable support for the storage erase operation only when the storage
61-
# partition is created by the Partition Manager.
71+
if (SETTINGS_FCB || SETTINGS_NVS || SETTINGS_ZMS)
6272

6373
config MCUMGR_GRP_ZBASIC
6474
default y
6575

6676
config MCUMGR_GRP_ZBASIC_STORAGE_ERASE
6777
default y
6878

69-
endif # (SETTINGS_FCB || SETTINGS_NVS)
79+
endif # (SETTINGS_FCB || SETTINGS_NVS || SETTINGS_ZMS)
7080

7181
if NORDIC_QSPI_NOR
7282

0 commit comments

Comments
 (0)