Skip to content

Commit ed95d0f

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 5de74d8 commit ed95d0f

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
@@ -113,7 +113,7 @@ function(zephyr_mcuboot_tasks)
113113
dt_nodelabel(slot1_partition NODELABEL "slot1_partition" REQUIRED)
114114
dt_reg_addr(slot1_partition_address PATH ${slot1_partition})
115115

116-
set(imgtool_args --align 1 --load-addr ${chosen_ram_address} ${imgtool_args})
116+
set(imgtool_args --align ${write_block_size} --load-addr ${chosen_ram_address} ${imgtool_args})
117117
set(imgtool_args_alt_slot ${imgtool_args} --hex-addr ${slot1_partition_address})
118118
set(imgtool_args ${imgtool_args} --hex-addr ${slot0_partition_address})
119119
else()

0 commit comments

Comments
 (0)