Skip to content

Commit 60806bc

Browse files
taltenbachutzig
authored andcommitted
sim: Fix MCUBOOT_SWAP_USING_SCRATCH defined in direct-xip and ram-load
When 'direct-xip' or 'ram-load' features were enabled, CONFIG_BOOT_SWAP_USING_SCRATCH and MCUBOOT_SWAP_USING_SCRATCH were defined even though swap using scratch wasn't used. This commit fixes the issue. Signed-off-by: Thomas Altenbach <[email protected]>
1 parent 44a935e commit 60806bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sim/mcuboot-sys/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ fn main() {
255255

256256
if swap_move {
257257
conf.conf.define("MCUBOOT_SWAP_USING_MOVE", None);
258-
} else if !overwrite_only {
258+
} else if !overwrite_only && !direct_xip && !ram_load {
259259
conf.conf.define("CONFIG_BOOT_SWAP_USING_SCRATCH", None);
260260
conf.conf.define("MCUBOOT_SWAP_USING_SCRATCH", None);
261261
}

0 commit comments

Comments
 (0)