Add io device for block_store volume access
To enable tf-a components to access data from a block_store, an
io device is added that conforms to the tf-a model. The io device
presents a storage partition, accessed via a block_store, as a
single seekable volume. Any concrete block_store may be used with
this io device.
Signed-off-by: Julian Hall <julian.hall@arm.com>
Change-Id: I3c8e9e198332d7c2601ccff03fa129ee164e5359
diff --git a/components/media/volume/block_io_dev/component.cmake b/components/media/volume/block_io_dev/component.cmake
new file mode 100644
index 0000000..cba61fc
--- /dev/null
+++ b/components/media/volume/block_io_dev/component.cmake
@@ -0,0 +1,13 @@
+#-------------------------------------------------------------------------------
+# Copyright (c) 2022, 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}/block_io_dev.c"
+)
\ No newline at end of file