zephyr: CONFIG_BOOT_MAX_IMG_SECTORS
is not configurable for downstream platforms
#1919
Labels
CONFIG_BOOT_MAX_IMG_SECTORS
is not configurable for downstream platforms
#1919
Problem
The
BOOT_MAX_IMG_SECTORS
setup currently requires modifications to the mcuboot repo to support boards with non-default values.mcuboot/boot/zephyr/Kconfig
Lines 383 to 390 in 5d067f0
Because this file is the absolute first contents of the kconfig tree, there is no ability to update this default on a per-board basis.
mcuboot/boot/zephyr/Kconfig
Line 758 in 5d067f0
As a result, there are board specific overlays in this application that for purposes of maintability really should be set wherever the board is defined, e.g:
mcuboot/boot/zephyr/boards/lpcxpresso55s28.conf
Lines 1 to 6 in 5d067f0
The only way to set this value is explicitly via
CONFIG_BOOT_MAX_IMG_SECTORS=N
. This is only possible from the command line or by modifying the mcuboot application. Attempting to set it in aboard_defconfig
file results in compilation errors as the symbol only exists for the bootloader application.Expected behaviour
Defaults for the zephyr bootloader that reasonably could change on a per-board basis should be configurable in the same location that the board is defined.
The text was updated successfully, but these errors were encountered: