Make supported FF-A version configurable in libsp
Introduce CFG_FFA_VERSION macro for configuring FF-A version in libsp.
The value of CFG_FFA_VERSION follows the version format of FFA_VERSION.
The allowed versions are FF-A v1.0 and v1.1.
Signed-off-by: Imre Kis <imre.kis@arm.com>
Change-Id: I7f2b425f9267758c4dfec513bc7a3bde773c7a97
diff --git a/components/messaging/ffa/libsp/mock/component.cmake b/components/messaging/ffa/libsp/mock/component.cmake
index 375cb46..101a56f 100644
--- a/components/messaging/ffa/libsp/mock/component.cmake
+++ b/components/messaging/ffa/libsp/mock/component.cmake
@@ -8,6 +8,8 @@
message(FATAL_ERROR "mandatory parameter TGT is not defined.")
endif()
+set(CFG_FFA_VERSION 0x00010001 CACHE STRING "The supported FF-A protocol's version: (major << 16) | minor")
+
target_sources(${TGT} PRIVATE
"${CMAKE_CURRENT_LIST_DIR}/mock_assert.cpp"
"${CMAKE_CURRENT_LIST_DIR}/mock_ffa_api.cpp"
@@ -27,4 +29,5 @@
target_compile_definitions(${TGT}
PUBLIC
"ARM64=1"
+ "CFG_FFA_VERSION=${CFG_FFA_VERSION}"
)
\ No newline at end of file