Boot: Load image to SRAM for execution
Check the newest image's header for an SRAM load address, and if it
is present then copy the image to that address. This allows for faster
execution as well as the potential for larger images.
Signed-off-by: Oliver Swede <oli.swede@arm.com>
Change-Id: Ifbe868cb35d217086918ebeb5bb41690065b9f46
diff --git a/CommonConfig.cmake b/CommonConfig.cmake
index 4b9ff8b..b70ad71 100755
--- a/CommonConfig.cmake
+++ b/CommonConfig.cmake
@@ -169,6 +169,9 @@
if (MCUBOOT_NO_SWAP)
set(LINK_TO_BOTH_MEMORY_REGION ON)
endif()
+ if (MCUBOOT_NO_SWAP AND MCUBOOT_RAM_LOADING)
+ message (FATAL_ERROR "Bootloader: MCUBOOT_RAM_LOADING and MCUBOOT_NO_SWAP are not supported together")
+ endif()
else()
if (MCUBOOT_NO_SWAP)
message (FATAL_ERROR "Bootloader build is turned off, not possible to specify bootloader behavior")