Skip to content

Commit 16ea1c3

Browse files
committed
cmake: sysbuild: b0: Add slot numbers to MCUboot update
Adds slot numbers to the manifest used when building MCUboot updates for b0 Signed-off-by: Jamie McCrae <[email protected]>
1 parent a3094d1 commit 16ea1c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmake/sysbuild/b0_mcuboot_signing.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ if(SB_CONFIG_BOOTLOADER_MCUBOOT)
138138

139139
if(SB_CONFIG_SECURE_BOOT_BUILD_S1_VARIANT_IMAGE)
140140
ncs_secure_boot_mcuboot_sign(s1_image "${bin_files}" "${signed_targets}" "")
141-
set(extra_bin_data "signed_by_mcuboot_and_b0_s1_image.binload_address=$<TARGET_PROPERTY:partition_manager,PM_S1_ADDRESS>")
141+
set(extra_bin_data "signed_by_mcuboot_and_b0_s1_image.binload_address=$<TARGET_PROPERTY:partition_manager,PM_S1_ADDRESS>;signed_by_mcuboot_and_b0_s1_image.binslot=1")
142142
endif()
143143

144144
if(bin_files)
@@ -156,6 +156,7 @@ if(SB_CONFIG_BOOTLOADER_MCUBOOT)
156156
${extra_bin_data}
157157
"version_MCUBOOT=${SB_CONFIG_SECURE_BOOT_MCUBOOT_VERSION}"
158158
"version_B0=${mcuboot_fw_info_firmware_version}"
159+
"signed_by_mcuboot_and_b0_mcuboot.binslot=0"
159160
DEPENDS ${signed_targets}
160161
)
161162
endif()

0 commit comments

Comments
 (0)