CMake: link TF-M for both memory partition
This patch introduces the MCUBOOT_NO_SWAP compiler switch:
- Default value is False to preserve swapping functionality to be
default
- When disabling it then TF-M is built in one instance:
- tfm_sign.bin: linked to run in XIP mode from slot 0 memory
partition
- When enabling it then TF-M is built in two instances:
- tfm_sign_0.bin: linked to run in XIP mode from slot 0 memory
partition
- tfm_sign_1.bin: linked to run in XIP mode from slot 1 memory
partition
Change-Id: I2757601295c80a42aba351a6d89c17f78dad3a0f
Signed-off-by: Tamas Ban <tamas.ban@arm.com>
Co-Authored-By: Mate Toth-Pal <mate.toth-pal@arm.com>
Co-Authored-By: Gyorgy Szing <Gyorgy.Szing@arm.com>
diff --git a/ConfigRegression.cmake b/ConfigRegression.cmake
index c557ef8..975a173 100755
--- a/ConfigRegression.cmake
+++ b/ConfigRegression.cmake
@@ -26,6 +26,9 @@
#definitions) based on these.
set (REGRESSION True)
set (CORE_TEST False)
+
+#BL2 bootloader(MCUBoot) related settings
set (BL2 True)
+set (MCUBOOT_NO_SWAP False)
include ("${CMAKE_CURRENT_LIST_DIR}/CommonConfig.cmake")