Add HTTP based RPC support
To support test access to a DUT from a host PC, an RPC caller
is added that uses an HTTP PUT to carry RPC call requests,
handled by a REST API server running on the DUT. The
implementation uses libcurl which must be installed on the
host machine.
Signed-off-by: Julian Hall <julian.hall@arm.com>
Change-Id: I46a2720ce6281df0cb0de062e14e9090b4dcaaab
diff --git a/components/rpc/http/caller/component.cmake b/components/rpc/http/caller/component.cmake
new file mode 100644
index 0000000..570f19b
--- /dev/null
+++ b/components/rpc/http/caller/component.cmake
@@ -0,0 +1,14 @@
+#-------------------------------------------------------------------------------
+# Copyright (c) 2023, 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}/http_caller.c"
+ )
+