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:
parent
51e5ecf829
commit
6b84d29c0c
|
@ -98,7 +98,7 @@ function(zephyr_mcuboot_tasks)
|
||||||
|
|
||||||
# Use overwrite-only instead of swap upgrades.
|
# Use overwrite-only instead of swap upgrades.
|
||||||
if(CONFIG_MCUBOOT_IMGTOOL_OVERWRITE_ONLY)
|
if(CONFIG_MCUBOOT_IMGTOOL_OVERWRITE_ONLY)
|
||||||
set(imgtool_extra --overwrite-only ${imgtool_extra})
|
set(imgtool_extra --overwrite-only --align 1 ${imgtool_extra})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(imgtool_args -- ${imgtool_extra})
|
set(imgtool_args -- ${imgtool_extra})
|
||||||
|
|
Loading…
Reference in a new issue