Implement emulated RPMB backend
The backend uses a memory allocated buffer for storing data and it
emulates all the necessary data frame checks which makes it ideal for
testing in host environment.
Signed-off-by: Imre Kis <imre.kis@arm.com>
Change-Id: I18600ad6ccf969e75b43029a04daf8c3524aec59
diff --git a/components/service/rpmb/backend/emulated/component.cmake b/components/service/rpmb/backend/emulated/component.cmake
new file mode 100644
index 0000000..e4dfa16
--- /dev/null
+++ b/components/service/rpmb/backend/emulated/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}/rpmb_backend_emulated.c"
+)
+