Gyorgy Szing | 30fa987 | 2017-12-05 01:08:47 +0000 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
Antonio de Angelis | cc657b3 | 2018-02-05 15:56:47 +0000 | [diff] [blame] | 2 | # Copyright (c) 2017-2018, Arm Limited. All rights reserved. |
Gyorgy Szing | 30fa987 | 2017-12-05 01:08:47 +0000 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | |
| 8 | #Definitions to compile the "NS Callable" module. |
| 9 | #This file assumes it will be included from a project specific cmakefile, and |
| 10 | #will not create a library or executable. |
| 11 | #Inputs: |
| 12 | # TFM_ROOT_DIR - directory where secure FW source is located. |
| 13 | # |
| 14 | #Outputs: |
| 15 | # Will modify include directories to make the source compile. |
| 16 | # ALL_SRC_C: C source files to be compiled will be added to this list. |
| 17 | # This shall be added to the add_executable or add_library command. |
| 18 | # Include directories will be modified by using the include_directories() commands as needed. |
| 19 | |
| 20 | #Get the current directory where this file is located. |
| 21 | set(SS_NS_CALLABLE_DIR ${CMAKE_CURRENT_LIST_DIR}) |
| 22 | if(NOT DEFINED TFM_ROOT_DIR) |
| 23 | message(FATAL_ERROR "Please set TFM_ROOT_DIR before including this file.") |
| 24 | endif() |
| 25 | |
Antonio de Angelis | cc657b3 | 2018-02-05 15:56:47 +0000 | [diff] [blame] | 26 | set (SS_NS_CALLABLE_C_SRC "${CMAKE_CURRENT_LIST_DIR}/tfm_sst_veneers.c" |
Antonio de Angelis | 8908f47 | 2018-08-31 15:44:25 +0100 | [diff] [blame^] | 27 | "${CMAKE_CURRENT_LIST_DIR}/tfm_audit_veneers.c" |
| 28 | "${CMAKE_CURRENT_LIST_DIR}/tfm_crypto_veneers.c") |
Gyorgy Szing | 30fa987 | 2017-12-05 01:08:47 +0000 | [diff] [blame] | 29 | |
| 30 | #Append all our source files to global lists. |
| 31 | list(APPEND ALL_SRC_C ${SS_NS_CALLABLE_C_SRC}) |
| 32 | unset(SS_NS_CALLABLE_C_SRC) |
| 33 | |
| 34 | #Setting include directories |
| 35 | embedded_include_directories(PATH ${TFM_ROOT_DIR} ABSOLUTE) |
| 36 | embedded_include_directories(PATH ${TFM_ROOT_DIR}/interface/include ABSOLUTE) |
| 37 | embedded_include_directories(PATH ${TFM_ROOT_DIR}/secure_fw/spm ABSOLUTE) |
| 38 | |
| 39 | |