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/ConfigCoreTest.cmake b/ConfigCoreTest.cmake
index 7045d2b..d6402b0 100644
--- a/ConfigCoreTest.cmake
+++ b/ConfigCoreTest.cmake
@@ -24,6 +24,9 @@
#definitions) based on these.
set (REGRESSION False)
set (CORE_TEST True)
+
+#BL2 bootloader(MCUBoot) related settings
set (BL2 True)
+set (MCUBOOT_NO_SWAP False)
include ("${CMAKE_CURRENT_LIST_DIR}/CommonConfig.cmake")