Boot: integrate MCUBoot with TF-M to act as a BL2 bootloader
Modifications in MCUBoot to be aligned with BL2 requirements in TF-M:
-- OS dependency was removed, no need to copy any OS repo to build it
-- CMSIS serial driver is used
-- flash driver interface is aligned with original version
-- S and NS images are handeled as a single binary blob
-- automatic image concatenation and signing at build time
-- authentication based on SHA256 and RSA-2048 digital signature
-- mbedTLS library is used for cryptographic operation
-- static analyser warnings fixed in some files
Change-Id: I54891762eac8d0df634e954ff19a9505b16f3028
Signed-off-by: Tamas Ban <tamas.ban@arm.com>
diff --git a/ConfigCoreTest.cmake b/ConfigCoreTest.cmake
index dc059a3..5ab23fb 100644
--- a/ConfigCoreTest.cmake
+++ b/ConfigCoreTest.cmake
@@ -20,7 +20,7 @@
#definitions) based on these.
set (REGRESSION False)
set (CORE_TEST True)
-set (MCUBOOT False)
+set (BL2 True)
##Shared compiler and linker settings.
function(config_setting_shared_flags tgt)
@@ -86,8 +86,8 @@
add_definitions(-DCORE_TEST_SERVICES)
endif()
-if (MCUBOOT)
- add_definitions(-DMCUBOOT)
+if (BL2)
+ add_definitions(-DBL2)
endif()
##Secure side
@@ -111,3 +111,7 @@
##Tests
config_setting_shared_flags(tfm_secure_tests)
config_setting_shared_flags(tfm_non_secure_tests)
+
+##BL2
+config_setting_shared_flags(mcuboot)
+set(MBEDTLS_C_FLAGS_BL2 "-D__ARM_FEATURE_CMSE=3 -D__thumb2__ -fshort-enums -mfpu=none -fshort-wchar -funsigned-char -mcmse -DMBEDTLS_CONFIG_FILE=\\\\\\\"config-boot.h\\\\\\\" -I${CMAKE_CURRENT_LIST_DIR}/bl2/ext/mcuboot/include")