boot/bootutil: Split RAM load code to its own file
RAM loading code is currently under bootutil/loader.c, and it's not
accessible for different loaders, such as the single loaders. Future
patches will make use of the RAM loading code outside the
bootutil/loader.c context, and this patch prepares for that by making it
standalone on boot/bootutil/src/ram_load.c
Signed-off-by: Ederson de Souza <ederson.desouza@intel.com>
Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
(cherry picked from commit 9f1e573efe83bdbd5456a379248b6ab2d013a929)
Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
diff --git a/sim/mcuboot-sys/build.rs b/sim/mcuboot-sys/build.rs
index ea17d80..47ee880 100644
--- a/sim/mcuboot-sys/build.rs
+++ b/sim/mcuboot-sys/build.rs
@@ -455,6 +455,9 @@
}
conf.file("../../boot/bootutil/src/loader.c");
+ if ram_load {
+ conf.file("../../boot/bootutil/src/ram_load.c");
+ }
conf.file("../../boot/bootutil/src/swap_misc.c");
conf.file("../../boot/bootutil/src/swap_scratch.c");
conf.file("../../boot/bootutil/src/swap_move.c");