Balint Dobszay | 3bd6ae9 | 2020-11-23 17:57:50 +0100 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
| 2 | # Copyright (c) 2020, Arm Limited and Contributors. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | if (NOT DEFINED TGT) |
| 8 | message(FATAL_ERROR "mandatory parameter TGT is not defined.") |
| 9 | endif() |
| 10 | |
| 11 | target_sources(${TGT} PRIVATE |
| 12 | "${CMAKE_CURRENT_LIST_DIR}/ffarpc_call_ep.c" |
| 13 | ) |
| 14 | |
Jelle Sels | 4960c41 | 2023-02-01 09:43:24 +0100 | [diff] [blame^] | 15 | if(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() |
| 24 | endif() |