Skip to content

Commit a542ad1

Browse files
committed
modules: mcuboot: Add Kconfig option for BOOT_MAX_ALIGN
Add a configuration option to override the default BOOT_MAX_ALIGN value in mcuboot. This can be used when image slots are on different flash devices. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
1 parent d1e1e52 commit a542ad1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

modules/Kconfig.mcuboot

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,4 +430,13 @@ config MCUBOOT_BOOTUTIL_LIB_FOR_DIRECT_XIP
430430
when bootloader is in DirectXIP-revert mode.
431431
endif
432432

433+
config MCUBOOT_BOOT_MAX_ALIGN
434+
int "Override programmable flash block alignment"
435+
default 0
436+
help
437+
Allow to override the programmable flash block alignment size.
438+
By default it's set to the maximum of the write block size of
439+
the chosen zephyr,flash node and 8.
440+
This option is ignored if set to zero.
441+
433442
endif # MCUBOOT_BOOTUTIL_LIB

0 commit comments

Comments
 (0)