Skip to content

Conversation

JarmouniA
Copy link
Contributor

@JarmouniA JarmouniA commented Oct 21, 2025

CONFIG_MCUBOOT_UPDATE_FOOTER_SIZE depends on CONFIG_MCUBOOT_IMG_MANAGER on Zephyr side, but Sysbuild tries to set it always on MCUboot side [1] which results in the following annoying warning when building with IMG_MANAGER=n:

"warning: MCUBOOT_UPDATE_FOOTER_SIZE (defined at subsys/dfu/Kconfig:55) was assigned the value '0x30' but got the value ''. Check these unsatisfied dependencies: MCUBOOT_IMG_MANAGER (=n), IMG_MANAGER (=n)"

Since we cannot condition MCUBOOT_UPDATE_FOOTER_SIZE's use by Sysbuild on MCUboot side, because "it sets the config of the application before the application is configured...we cannot read any application configuration" at that moment (see [2] for the full quote), remove MCUBOOT_UPDATE_FOOTER_SIZE's dependence on MCUBOOT_IMG_MANAGER and make it depend on BOOTLOADER_MCUBOOT only.
The symbol help text still says that it is only useful when MCUBOOT_IMG_MANAGER and MCUMGR_GRP_IMG_TOO_LARGE_SYSBUILD are set.

[1] https://github.com/mcu-tools/mcuboot/blob/e4fc5ae221cee2ce9f1120afc2092a693ac5e8a2/boot/zephyr/sysbuild/CMakeLists.txt#L39
[2] mcu-tools/mcuboot#2504 (comment)

This is an alternative to mcu-tools/mcuboot#2504

MCUBOOT_UPDATE_FOOTER_SIZE depends on MCUBOOT_IMG_MANAGER on Zephyr side,
but Sysbuild tries to set it always on MCUboot side which results in the
following annoying warning when building with IMG_MANAGER=n:

"warning: MCUBOOT_UPDATE_FOOTER_SIZE (defined at subsys/dfu/Kconfig:55)
was assigned the value '0x30' but got the value ''. Check these
unsatisfied dependencies: MCUBOOT_IMG_MANAGER (=n), IMG_MANAGER (=n)"

Since we cannot condition MCUBOOT_UPDATE_FOOTER_SIZE's use by Sysbuild
on MCUboot side, because "it sets the config of the application before
the application is configured...we cannot read any application
configuration" at that moment (see [1] for the full quote), remove
MCUBOOT_UPDATE_FOOTER_SIZE's dependence on MCUBOOT_IMG_MANAGER and make
it depend on BOOTLOADER_MCUBOOT only.
The symbol help text still says that it is only useful when
MCUBOOT_IMG_MANAGER and MCUMGR_GRP_IMG_TOO_LARGE_SYSBUILD are set.

[1] mcu-tools/mcuboot#2504 (comment)

Signed-off-by: Abderrahmane JARMOUNI <[email protected]>
@sonarqubecloud
Copy link

@JarmouniA JarmouniA marked this pull request as ready for review October 21, 2025 21:40
@zephyrbot zephyrbot added the area: DFU Device Firmware Upgrade label Oct 21, 2025

endif # IMG_MANAGER

config MCUBOOT_UPDATE_FOOTER_SIZE
Copy link
Contributor

@nordicjm nordicjm Oct 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not acceptable, the dependency is for MCUBOOT_IMG_MANAGER not just if MCUboot is enabled, see #90721

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: DFU Device Firmware Upgrade

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants