cmake: mcuboot: set align to 1 for overwrite only mode

Set align to 1 for CONFIG_MCUBOOT_IMGTOOL_OVERWRITE_ONLY,
used by non-swap update modes.
Fix imgtool error message for device with write size > 32B.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
This commit is contained in:
Andrej Butok 2023-12-15 14:17:41 +01:00 committed by Carles Cufí
parent 51e5ecf829
commit 6b84d29c0c

View file

@ -98,7 +98,7 @@ function(zephyr_mcuboot_tasks)
# Use overwrite-only instead of swap upgrades.
if(CONFIG_MCUBOOT_IMGTOOL_OVERWRITE_ONLY)
set(imgtool_extra --overwrite-only ${imgtool_extra})
set(imgtool_extra --overwrite-only --align 1 ${imgtool_extra})
endif()
set(imgtool_args -- ${imgtool_extra})