diff options
author | Gyorgy Szing <gyorgy.szing@arm.com> | 2020-11-24 00:33:09 +0100 |
---|---|---|
committer | Gyorgy Szing <Gyorgy.Szing@arm.com> | 2020-11-25 17:35:04 +0100 |
commit | 4909180ac7252321d03ba355c3692113f109346f (patch) | |
tree | 7054f1764bbd1597f80144149ce35922addbb34d /environments/opteesp/ExportSp.cmake | |
parent | 66321599e8b6a82c3003e44b4703b0b66a678b60 (diff) | |
download | trusted-services-4909180ac7252321d03ba355c3692113f109346f.tar.gz |
libsp: Add build system files.
- Add opteesp deployment.
This deployment builds libsp as a static library targeting aarch64
SPs running under OP-TEE.
- Add inport and export interfaces for OP TEE-OS.
- Add opteesp environment files.
- Add shared CMake scripts including GCC compiler support.
Change-Id: Ie8643756d45d0d96822fd98c4c37e7264a7378a1
Signed-off-by: Gyorgy Szing <gyorgy.szing@arm.com>
Diffstat (limited to 'environments/opteesp/ExportSp.cmake')
-rw-r--r-- | environments/opteesp/ExportSp.cmake | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/environments/opteesp/ExportSp.cmake b/environments/opteesp/ExportSp.cmake new file mode 100644 index 000000000..3040bd0bc --- /dev/null +++ b/environments/opteesp/ExportSp.cmake @@ -0,0 +1,20 @@ +#------------------------------------------------------------------------------- +# Copyright (c) 2020, Arm Limited and Contributors. All rights reserved. +# +# SPDX-License-Identifier: BSD-3-Clause +# +#------------------------------------------------------------------------------- + +foreach(_var IN ITEMS EXPORT_SP_NAME EXPORT_SP_UUID) + if(NOT DEFINED ${_var}) + message(FATAL_ERROR + "Input variable ${_var} is undefined! Please define it" + "using set(${_var} ...) before including this file.") + endif() +endforeach() + +configure_file(${CMAKE_CURRENT_LIST_DIR}/sp.mk.in ${CMAKE_CURRENT_BINARY_DIR}/${EXPORT_SP_NAME}.mk @ONLY NEWLINE_STYLE UNIX) +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${EXPORT_SP_NAME}.mk DESTINATION lib/make) + +unset(EXPORT_SP_NAME) +unset(EXPORT_SP_UUID) |