Skip to content

MCUboot: building with SB_CONFIG_MCUBOOT_MODE_SINGLE_APP_RAM_LOAD=y fails #93113

@JarmouniA

Description

@JarmouniA

Describe the bug

Building an app using Sysbuild with SB_CONFIG_MCUBOOT_MODE_SINGLE_APP_RAM_LOAD=y leads to multiple modes being selected if a default mode is set on MCUboot side (for ex. in this case https://github.com/mcu-tools/mcuboot/blob/5eaf190a8a9d8fc032b989bf96fc56b3b756dd55/boot/zephyr/boards/stm32h7s78_dk.conf#L1) and MCUboot build fails.

Regression

  • This is a regression.

Steps to reproduce

west build -p always -b stm32h7s78_dk samples/sysbuild/with_mcuboot --sysbuild -DSB_CONFIG_MCUBOOT_MODE_SINGLE_APP_RAM_LOAD=y

Relevant log output

mcuboot/boot/bootutil/src/bootutil_priv.h:70:2: error: #error "Please enable only one of MCUBOOT_OVERWRITE_ONLY, MCUBOOT_SWAP_USING_MOVE, MCUBOOT_SWAP_USING_OFFSET, MCUBOOT_DIRECT_XIP, MCUBOOT_RAM_LOAD or MCUBOOT_FIRMWARE_LOADER"

Impact

Major – Severely degrades functionality; workaround is difficult or unavailable.

Environment

  • Ubuntu
  • Zephyr SDK 0.17.0
  • 4.2.0-rc3

Additional Context

A fix is submitted in #93076

Metadata

Metadata

Assignees

Labels

area: MCUBootbugThe issue is a bug, or the PR is fixing a bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions