blob: 24434ee610fb21285e020eac546b1a322ef3de9f [file] [log] [blame]
Balint Dobszay3bd6ae92020-11-23 17:57:50 +01001#-------------------------------------------------------------------------------
2# Copyright (c) 2020, Arm Limited and Contributors. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7if (NOT DEFINED TGT)
8 message(FATAL_ERROR "mandatory parameter TGT is not defined.")
9endif()
10
11target_sources(${TGT} PRIVATE
12 "${CMAKE_CURRENT_LIST_DIR}/ffarpc_call_ep.c"
13 )
14
Jelle Sels4960c412023-02-01 09:43:24 +010015if(NOT ((TS_ENV STREQUAL "linux-pc") OR (TS_ENV STREQUAL "arm-linux")))
16 if(NOT DEFINED TS_RPC_UUID_CANON)
17 message(FATAL_ERROR "Mandatory parameter TS_RPC_UUID_CANON is not defined.")
18 endif()
19
20 # Verify that SP is using the TS protocol.
21 if (NOT "${SP_FFA_UUID_CANON}" STREQUAL "${TS_RPC_UUID_CANON}")
22 message(FATAL_ERROR "The code is using TS RPC, but the SP_FFA_UUID_CANON is not matching the RPC UUID.")
23 endif()
24endif()