We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9942fe1 commit 6a6b7a6Copy full SHA for 6a6b7a6
boot/zephyr/include/mcuboot_config/mcuboot_config.h
@@ -430,7 +430,9 @@
430
#endif
431
432
/* Support 32-byte aligned flash sizes */
433
-#if DT_HAS_CHOSEN(zephyr_flash)
+#if defined(CONFIG_MCUBOOT_BOOT_MAX_ALIGN) && CONFIG_MCUBOOT_BOOT_MAX_ALIGN > 0
434
+#define MCUBOOT_BOOT_MAX_ALIGN CONFIG_MCUBOOT_BOOT_MAX_ALIGN
435
+#elif DT_HAS_CHOSEN(zephyr_flash)
436
#if DT_PROP_OR(DT_CHOSEN(zephyr_flash), write_block_size, 0) > 8
437
#define MCUBOOT_BOOT_MAX_ALIGN \
438
DT_PROP(DT_CHOSEN(zephyr_flash), write_block_size)
0 commit comments