Create libpsa deployments
Currently we have libts to encapsulate the lower layers (RPC, driver
access). libts only provides low level APIs for accessing the
services and the users have to add a lot of code on top of the libts
APIs to actually use e.g. a PSA crypto service. This commit
encapsulates this code into a reusable library called libpsa in order
to make integration easier for users. It should be used on top of
libts and it provides convenient APIs to access PSA services.
Signed-off-by: Gabor Toth <gabor.toth2@arm.com>
Change-Id: Id6a16fbf4fbd8c9c9af036d06cfbd934b9ae95cf
diff --git a/components/common/libpsa/component.cmake b/components/common/libpsa/component.cmake
new file mode 100644
index 0000000..08e4748
--- /dev/null
+++ b/components/common/libpsa/component.cmake
@@ -0,0 +1,16 @@
+#-------------------------------------------------------------------------------
+# Copyright (c) 2020-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}/libpsa-attestation.c"
+ "${CMAKE_CURRENT_LIST_DIR}/libpsa-crypto.c"
+ "${CMAKE_CURRENT_LIST_DIR}/libpsa-its.c"
+ "${CMAKE_CURRENT_LIST_DIR}/libpsa-ps.c"
+ )