blob: ca453cee6e6f208b752b08b4db76945d00c4be4a [file] [log] [blame]
Imre Kise64a8102021-10-27 19:57:42 +02001#-------------------------------------------------------------------------------
2# Copyright (c) 2021, 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}/mm_communicate_call_ep.c"
13)
Jelle Sels4960c412023-02-01 09:43:24 +010014
15if(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()
24endif()