aboutsummaryrefslogtreecommitdiff
path: root/bl2/CMakeLists.txt
diff options
context:
space:
mode:
authorTamas Ban <tamas.ban@arm.com>2020-10-26 13:03:13 +0000
committerTamas Ban <tamas.ban@arm.com>2020-12-17 13:06:19 +0000
commitf8b0b2df5e9b954fd5d59ae95684659e73b38c8c (patch)
treed76ac5d0545608363ba59aca869bdd6f188357b0 /bl2/CMakeLists.txt
parent73946a89d4e1b839878f0599516dc5ae6e01efe7 (diff)
downloadtrusted-firmware-m-f8b0b2df5e9b954fd5d59ae95684659e73b38c8c.tar.gz
Build: Enable code sharing between bootloader and SPE
Add CMake functions to allow sharing regions of code between independently linked binaries. Signed-off-by: Tamas Ban <tamas.ban@arm.com> Change-Id: I6a6132d6c1558b242d8da1dedab14f93a852f81a
Diffstat (limited to 'bl2/CMakeLists.txt')
-rw-r--r--bl2/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/bl2/CMakeLists.txt b/bl2/CMakeLists.txt
index 1496a19317..42cd65fb6b 100644
--- a/bl2/CMakeLists.txt
+++ b/bl2/CMakeLists.txt
@@ -100,3 +100,9 @@ target_link_libraries(bl2_mbedcrypto
PUBLIC
bl2_mbedcrypto_config
)
+
+############################### CODE SHARING ###################################
+
+if (TFM_CODE_SHARING)
+ compiler_create_shared_code(bl2 ${CMAKE_CURRENT_SOURCE_DIR}/src/shared_symbol_template.txt)
+endif()