Commit 3c9d5c45 authored by Fabio Utzig's avatar Fabio Utzig Committed by Fabio Utzig
Browse files

sim: change MCUBOOT_OVERWRITE_ONLY_FAST usage

Remove `MCUBOOT_OVERWRITE_ONLY_FAST` from overwrite-only upgrades, to
make it compatible with `large-write` tests after the latest changes
to the fast overwrite code; make it default when bootstrapping.

Signed-off-by: default avatarFabio Utzig <fabio.utzig@nordicsemi.no>
parent b4f88106
Loading
Loading
Loading
Loading
+1 −1
Changes for sim/mcuboot-sys/build.rs: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@ fn main() {

    if bootstrap {
        conf.define("MCUBOOT_BOOTSTRAP", None);
        conf.define("MCUBOOT_OVERWRITE_ONLY_FAST", None);
    }

    if validate_primary_slot {
@@ -121,7 +122,6 @@ fn main() {

    if overwrite_only {
        conf.define("MCUBOOT_OVERWRITE_ONLY", None);
        conf.define("MCUBOOT_OVERWRITE_ONLY_FAST", None);
    }

    if swap_move {