Add smm-variable service level tests
Adds tests that use the public service access protocol to verify
client access to the smm-variable service. A C++ client is added
to facilitate testing. Service level tests may be run in a native
PC environment or from Linux user-space on a real target.
Signed-off-by: Julian Hall <julian.hall@arm.com>
Change-Id: I6f2ecdcb3517b1392d689b41eeb17bda7e58952c
diff --git a/components/service/smm_variable/client/cpp/component.cmake b/components/service/smm_variable/client/cpp/component.cmake
new file mode 100644
index 0000000..0a3155d
--- /dev/null
+++ b/components/service/smm_variable/client/cpp/component.cmake
@@ -0,0 +1,13 @@
+#-------------------------------------------------------------------------------
+# 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}/smm_variable_client.cpp"
+ )