Skip to content

Commit

Permalink
cmake: sysbuild: b0: Add slot numbers to MCUboot update
Browse files Browse the repository at this point in the history
Adds slot numbers to the manifest used when building MCUboot
updates for b0

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
  • Loading branch information
nordicjm committed Dec 30, 2024
1 parent 133ff8e commit c1a739f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/sysbuild/b0_mcuboot_signing.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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=$<TARGET_PROPERTY:partition_manager,PM_S1_ADDRESS>")
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")
endif()

if(bin_files)
Expand All @@ -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()
Expand Down

0 comments on commit c1a739f

Please sign in to comment.