diff options
author | Mate Toth-Pal <mate.toth-pal@arm.com> | 2020-03-02 16:22:19 +0100 |
---|---|---|
committer | Mate Toth-Pal <mate.toth-pal@arm.com> | 2020-04-03 08:36:39 +0200 |
commit | 8f17a71106dfdbdb1923014d4e4c4180371112c9 (patch) | |
tree | bf61ce338c9fa117b6cdb1b3aad024c26f1d6c37 /bl2 | |
parent | 50373fc4aa0ff465ac9f9083ca346af9f4b0fac6 (diff) | |
download | trusted-firmware-m-8f17a71106dfdbdb1923014d4e4c4180371112c9.tar.gz |
Build: Only pass -mcmse switch for secure compiles
Don't define the C macro __ARM_FEATURE_CMSE at all, as that is done by
the compiler by passing the -mcmse (or equivalent) switch to the
compiler command. Also don't pass command line switch -mcmse to compiler
in case of NS build.
Change-Id: If9ab8e879b81b63b97c6785320225537004b35b1
Signed-off-by: Mate Toth-Pal <mate.toth-pal@arm.com>
Diffstat (limited to 'bl2')
-rw-r--r-- | bl2/ext/mcuboot/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bl2/ext/mcuboot/CMakeLists.txt b/bl2/ext/mcuboot/CMakeLists.txt index d8a14cbe86..4e0c51817a 100644 --- a/bl2/ext/mcuboot/CMakeLists.txt +++ b/bl2/ext/mcuboot/CMakeLists.txt @@ -76,6 +76,10 @@ if (DEFINED TFM_PLATFORM_SECURE_DEFS) embedded_set_target_compile_defines(TARGET ${PROJECT_NAME} LANGUAGE ASM DEFINES ${TFM_PLATFORM_SECURE_DEFS} APPEND) endif() +if (DEFINED CMSE_FLAGS) + embedded_set_target_compile_flags(TARGET ${PROJECT_NAME} LANGUAGE C APPEND FLAGS ${CMSE_FLAGS}) +endif() + #Append all our source files to global lists. list(APPEND ALL_SRC_C "${TFM_ROOT_DIR}/bl2/ext/mcuboot/bl2_main.c" |