Skip to content
This repository was archived by the owner on Oct 27, 2025. It is now read-only.

Commit 137d797

Browse files
committed
sim: emits *_SWAP_USING_SCRATCH macros
Emits either MCUBOOT_SWAP_USING_SCRATCH and CONFIG_BOOT_SWAP_USING_SCRATCH when swap using scratch algorithm is expected. Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
1 parent c49d7c9 commit 137d797

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sim/mcuboot-sys/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ fn main() {
143143

144144
if swap_move {
145145
conf.define("MCUBOOT_SWAP_USING_MOVE", None);
146+
} else if !overwrite_only {
147+
conf.define("CONFIG_BOOT_SWAP_USING_SCRATCH", None);
148+
conf.define("MCUBOOT_SWAP_USING_SCRATCH", None);
146149
}
147150

148151
if enc_rsa {

0 commit comments

Comments
 (0)