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>
This commit is contained in:
Andrzej Puzdrowski 2021-05-13 13:39:30 +02:00
parent c49d7c9398
commit 137d797177
1 changed files with 3 additions and 0 deletions

View File

@ -143,6 +143,9 @@ fn main() {
if swap_move { if swap_move {
conf.define("MCUBOOT_SWAP_USING_MOVE", None); conf.define("MCUBOOT_SWAP_USING_MOVE", None);
} else if !overwrite_only {
conf.define("CONFIG_BOOT_SWAP_USING_SCRATCH", None);
conf.define("MCUBOOT_SWAP_USING_SCRATCH", None);
} }
if enc_rsa { if enc_rsa {