Imre Kis | e64a810 | 2021-10-27 19:57:42 +0200 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
| 2 | # Copyright (c) 2021, 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}/mm_communicate_call_ep.c" |
| 13 | ) |
Jelle Sels | 4960c41 | 2023-02-01 09:43:24 +0100 | [diff] [blame] | 14 | |
| 15 | if(NOT ((TS_ENV STREQUAL "linux-pc") OR (TS_ENV STREQUAL "arm-linux"))) |
| 16 | if(NOT DEFINED SP_BIN_UUID_CANON) |
| 17 | message(FATAL_ERROR "Mandatory parameter SP_BIN_UUID_CANON is not defined.") |
| 18 | endif() |
| 19 | |
| 20 | # Verify that SP is using the TS protocol. |
| 21 | if ("${SP_FFA_UUID_CANON}" STREQUAL "${TS_RPC_UUID_CANON}") |
| 22 | message(FATAL_ERROR "The code is using MM RPC, but the SP_FFA_UUID_CANON is matching the TS RPC UUID.") |
| 23 | endif() |
| 24 | endif() |