From 450d44955f019acb84f5c22a32025132af776c37 Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Wed, 14 Jun 2017 15:49:53 -0400 Subject: [PATCH] sim: use flash_area_get_sectors() Use the new flash sector API by default when testing. Signed-off-by: Marti Bolivar --- sim/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/sim/build.rs b/sim/build.rs index 572b1d3d..a7318f46 100644 --- a/sim/build.rs +++ b/sim/build.rs @@ -19,6 +19,7 @@ fn main() { conf.flag("-Wall"); conf.define("__BOOTSIM__", None); // conf.define("MCUBOOT_OVERWRITE_ONLY", None); + conf.define("MCUBOOT_USE_FLASH_AREA_GET_SECTORS", None); conf.compile("libbootutil.a"); walk_dir("../boot").unwrap(); walk_dir("csupport").unwrap();