aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorSoby Mathew <soby.mathew@arm.com>2020-10-07 12:12:44 +0100
committerSoby Mathew <soby.mathew@arm.com>2020-10-19 15:46:46 +0000
commit63b8e97099ed29a20b8a22f3d0ddb23340f931cd (patch)
treeabe57bb9753826d95035aea2de3a9e45d82bede5 /CMakeLists.txt
parent4739c7395eb3d43d65347f17f0d1915d55dc1f13 (diff)
downloadtrusted-firmware-m-63b8e97099ed29a20b8a22f3d0ddb23340f931cd.tar.gz
Build: Allow crypto accelerators to override config
This patch allows the crypto accelerator, if selected, to override some default config via a dedicated config file. Signed-off-by: Soby Mathew <soby.mathew@arm.com> Change-Id: I7f2c7b96e0cc6da0104067455af58e81ad9be423
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 68cf30aa7..fb6e84048 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -61,6 +61,14 @@ if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/platform/ext/target/${TFM_PLATFORM}/confi
include(platform/ext/target/${TFM_PLATFORM}/config.cmake)
endif()
+# If CRYPTO_HW_ACCELERATOR is enabled by the platform, then load the
+# corresponding config if it exists
+if (CRYPTO_HW_ACCELERATOR)
+ if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/platform/ext/accelerators/${CRYPTO_HW_ACCELERATOR_TYPE}/config.cmake)
+ include(platform/ext/accelerator/${CRYPTO_HW_ACCELERATOR_TYPE}/config.cmake)
+ endif()
+endif()
+
# Optionally load extra config, overriding platform options, overriding profile,
# build type config, defaults and command line.
if (TFM_EXTRA_CONFIG_PATH)