Add faster copy/erase to overwrite-only mode
This add a new option to overwrite-only mode that enables copy/erase of
only the amount of sectors that are required to store the source image.
This is enabled by default when overwrite-only mode is used.
MCUB-70
Signed-off-by: Fabio Utzig <utzig@apache.org>
diff --git a/sim/mcuboot-sys/build.rs b/sim/mcuboot-sys/build.rs
index e6414cb..d181e34 100644
--- a/sim/mcuboot-sys/build.rs
+++ b/sim/mcuboot-sys/build.rs
@@ -51,6 +51,7 @@
if overwrite_only {
conf.define("MCUBOOT_OVERWRITE_ONLY", None);
+ conf.define("MCUBOOT_OVERWRITE_ONLY_FAST", None);
}
conf.file("../../boot/bootutil/src/image_validate.c");