aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorRaef Coles <raef.coles@arm.com>2020-11-24 11:42:53 +0000
committerKen Liu <ken.liu@arm.com>2021-01-08 09:05:35 +0000
commita198a44a5549d79c2ebc866cc9f8d86b86738539 (patch)
tree15b3040ae7b9431d9409d2795ff062a08456cbe0 /cmake
parentc737ece0da0582c1f5467aa40a705eed4c58ed0a (diff)
downloadtrusted-firmware-m-a198a44a5549d79c2ebc866cc9f8d86b86738539.tar.gz
Build: Allow alteration of cmake install path
Change-Id: I4e519d59448b74679a7d1bfa2171ffa024263944 Signed-off-by: Raef Coles <raef.coles@arm.com>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/install.cmake9
1 files changed, 5 insertions, 4 deletions
diff --git a/cmake/install.cmake b/cmake/install.cmake
index 806ebde24..e7722c3d5 100644
--- a/cmake/install.cmake
+++ b/cmake/install.cmake
@@ -12,18 +12,19 @@ string(REGEX REPLACE "-" "_" TFM_PLATFORM_UPPERCASE_UNDERSCORE ${TFM_PLATFORM_UP
string(REGEX REPLACE "^(\\.\\.([\\/\\\\]))+" "EXTERNAL\\2" TFM_PLATFORM_UPPERCASE_UNDERSCORE_NO_PARENT_DIR ${TFM_PLATFORM_UPPERCASE_UNDERSCORE})
install(DIRECTORY ${CMAKE_BINARY_DIR}/bin/
- DESTINATION ${CMAKE_BINARY_DIR}/install/outputs/${TFM_PLATFORM_UPPERCASE_UNDERSCORE_NO_PARENT_DIR}
+ DESTINATION ${TFM_INSTALL_PATH}/outputs/${TFM_PLATFORM_UPPERCASE_UNDERSCORE_NO_PARENT_DIR}
)
set(INTERFACE_INC_DIR ${CMAKE_SOURCE_DIR}/interface/include)
set(INTERFACE_SRC_DIR ${CMAKE_SOURCE_DIR}/interface/src)
-set(EXPORT_INC_DIR ${CMAKE_BINARY_DIR}/install/export/tfm/include)
-set(EXPORT_SRC_DIR ${CMAKE_BINARY_DIR}/install/export/tfm/src)
+set(EXPORT_INC_DIR ${TFM_INSTALL_PATH}/export/tfm/include)
+set(EXPORT_SRC_DIR ${TFM_INSTALL_PATH}/export/tfm/src)
+set(EXPORT_LIB_DIR ${TFM_INSTALL_PATH}/export/tfm/lib)
# export veneer lib
if (NOT TFM_MULTI_CORE_TOPOLOGY)
install(FILES ${CMAKE_BINARY_DIR}/secure_fw/s_veneers.o
- DESTINATION ${CMAKE_BINARY_DIR}/install/export/tfm/lib)
+ DESTINATION ${EXPORT_LIB_DIR})
endif()
####################### export headers #########################################