Add service locator strategy for SP to SP discovery
Using the service locator framework, a new service locator
strategy is added that is suitable for use from within an
SP to discover other service endpoints reachable via FFA.
The required destination SP may be hardcoded in the client
SP or passed in as a configuration parameter.
Signed-off-by: Julian Hall <julian.hall@arm.com>
Change-Id: If8cd3cd60e43b0f150c5f850211152fec0139f07
diff --git a/components/service/locator/sp/ffa/component.cmake b/components/service/locator/sp/ffa/component.cmake
new file mode 100644
index 0000000..6cdfccd
--- /dev/null
+++ b/components/service/locator/sp/ffa/component.cmake
@@ -0,0 +1,14 @@
+#-------------------------------------------------------------------------------
+# Copyright (c) 2021, Arm Limited and Contributors. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+#-------------------------------------------------------------------------------
+if (NOT DEFINED TGT)
+ message(FATAL_ERROR "mandatory parameter TGT is not defined.")
+endif()
+
+target_sources(${TGT} PRIVATE
+ "${CMAKE_CURRENT_LIST_DIR}/spffa_location_strategy.c"
+ "${CMAKE_CURRENT_LIST_DIR}/spffa_service_context.c"
+ )