feat(da): add libspdm version 3.3.0
libspdm is a sample implementation that follows the DMTF SPDM
specifications DSP0274 [1].
libspdm project provides libraries that RMM imports as an interface
library named rmm-lib-spdm_requester to implement SPMD requester.
There are few patch files added in libspdm for below changes:
- Includes mbedtls headers, config file from RMM Mbed TLS
- Compiles cryptlib_mbedtls library with RMM Mbed TLS config
[1] https://www.dmtf.org/dsp/DSP0274
Signed-off-by: Arunachalam Ganapathy <arunachalam.ganapathy@arm.com>
Change-Id: I977877de39d6fca65c4a6e03ed679221c8a4bb47
diff --git a/cmake/CommonConfigs.cmake b/cmake/CommonConfigs.cmake
index d8c3e68..2d57c8c 100644
--- a/cmake/CommonConfigs.cmake
+++ b/cmake/CommonConfigs.cmake
@@ -59,6 +59,12 @@
TYPE STRING
DEFAULT 1)
+arm_config_option(
+ NAME RMM_CCA_DA
+ HELP "Enable Device Assignment support in RMM (experimental)"
+ TYPE BOOL
+ DEFAULT OFF)
+
#
# Introduce a pseudo-library purely for applying flags to RMM's libraries.
# This is applied to any targets created after this point.
@@ -126,4 +132,10 @@
target_compile_definitions(rmm-common
INTERFACE "COMMIT_INFO=\"${COMMIT_INFO}\"")
+if(RMM_CCA_DA)
+ message(WARNING "DA is an experimental feature")
+ target_compile_definitions(rmm-common
+ INTERFACE "RMM_CCA_DA=1")
+endif()
+
link_libraries(rmm-common)