From c1a739fbc56e3d54594d60f4390ef3d0e572296b Mon Sep 17 00:00:00 2001 From: Jamie McCrae Date: Mon, 30 Dec 2024 10:55:52 +0000 Subject: [PATCH] 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 --- cmake/sysbuild/b0_mcuboot_signing.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/sysbuild/b0_mcuboot_signing.cmake b/cmake/sysbuild/b0_mcuboot_signing.cmake index 3ff9fbd98fe0..a404d3a2a335 100644 --- a/cmake/sysbuild/b0_mcuboot_signing.cmake +++ b/cmake/sysbuild/b0_mcuboot_signing.cmake @@ -138,7 +138,7 @@ if(SB_CONFIG_BOOTLOADER_MCUBOOT) if(SB_CONFIG_SECURE_BOOT_BUILD_S1_VARIANT_IMAGE) ncs_secure_boot_mcuboot_sign(s1_image "${bin_files}" "${signed_targets}" "") - set(extra_bin_data "signed_by_mcuboot_and_b0_s1_image.binload_address=$") + set(extra_bin_data "signed_by_mcuboot_and_b0_s1_image.binload_address=$;signed_by_mcuboot_and_b0_s1_image.binslot=1") endif() if(bin_files) @@ -156,6 +156,7 @@ if(SB_CONFIG_BOOTLOADER_MCUBOOT) ${extra_bin_data} "version_MCUBOOT=${SB_CONFIG_SECURE_BOOT_MCUBOOT_VERSION}" "version_B0=${mcuboot_fw_info_firmware_version}" + "signed_by_mcuboot_and_b0_mcuboot.binslot=0" DEPENDS ${signed_targets} ) endif()