Skip to content

Commit ed206f3

Browse files
cmake: mcuboot: respect alignment size when signing for ramload mode
When signing for ramload mode, respect the write alignment size setting. This is required when creating a confirmed image, as the BOOT_MAGIC value changes based on the alignment size in use. Signed-off-by: Daniel DeGrasse <ddegrasse@tenstorrent.com>
1 parent f17100e commit ed206f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/mcuboot.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ function(zephyr_mcuboot_tasks)
136136
dt_nodelabel(slot1_partition NODELABEL "slot1_partition" REQUIRED)
137137
dt_reg_addr(slot1_partition_address PATH ${slot1_partition})
138138

139-
set(imgtool_args --align 1 --load-addr ${chosen_ram_address} ${imgtool_args})
139+
set(imgtool_args --align ${write_block_size} --load-addr ${chosen_ram_address} ${imgtool_args})
140140
set(imgtool_args_alt_slot ${imgtool_args} --hex-addr ${slot1_partition_address})
141141
set(imgtool_args ${imgtool_args} --hex-addr ${slot0_partition_address})
142142
elseif(CONFIG_MCUBOOT_BOOTLOADER_MODE_SINGLE_APP_RAM_LOAD)

0 commit comments

Comments
 (0)