Skip to content

Commit 1a6d40d

Browse files
committed
modules: mcuboot: Fix missing chosen node lookup
Fixes an issue caused by using a chosen node string as a node rather than looking the node up first so it could be used Signed-off-by: Jamie McCrae <[email protected]>
1 parent 16f4d6c commit 1a6d40d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/Kconfig.mcuboot

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,10 +431,11 @@ config MCUBOOT_BOOTUTIL_LIB_FOR_DIRECT_XIP
431431
endif
432432

433433
DT_CHOSEN_ZEPHYR_FLASH := zephyr,flash
434+
DT_CHOSEN_ZEPHYR_FLASH_NODE := $(dt_chosen_path,$(DT_CHOSEN_ZEPHYR_FLASH))
434435

435436
config MCUBOOT_BOOT_MAX_ALIGN
436437
int "Override programmable flash block alignment"
437-
default $(dt_node_int_prop_int,$(DT_CHOSEN_ZEPHYR_FLASH),write-block-size)
438+
default $(dt_node_int_prop_int,$(DT_CHOSEN_ZEPHYR_FLASH_NODE),write-block-size)
438439
help
439440
Allow to override the programmable flash block alignment size.
440441
By default it's set to the maximum of the write block size of

0 commit comments

Comments
 (0)