Introduce block_store factory
To allow for reuse of code concerned with constructing different
block_store stacks, a factory directory is added for different
factories to live. Two factories have been added so far: the
ref_ram factory constructs a ram-backed block store, partitioned
using the reference partition configuration expected by test cases.
The client factory constructs a block_storage_client that talks to
a remote block storage service provider.
Signed-off-by: Julian Hall <julian.hall@arm.com>
Change-Id: Ib4c02f12a0742fc9b75143de612dd273f2bfffa9
diff --git a/deployments/component-test/component-test.cmake b/deployments/component-test/component-test.cmake
index d5edf4f..ad67ad7 100644
--- a/deployments/component-test/component-test.cmake
+++ b/deployments/component-test/component-test.cmake
@@ -87,6 +87,7 @@
"components/service/block_storage/provider"
"components/service/block_storage/provider/serializer/packed-c"
"components/service/block_storage/config/ref"
+ "components/service/block_storage/factory/ref_ram"
"components/service/crypto/client/cpp"
"components/service/crypto/client/cpp/protocol/protobuf"
"components/service/crypto/client/cpp/protocol/packed-c"
diff --git a/deployments/libts/linux-pc/CMakeLists.txt b/deployments/libts/linux-pc/CMakeLists.txt
index e034e80..832983b 100644
--- a/deployments/libts/linux-pc/CMakeLists.txt
+++ b/deployments/libts/linux-pc/CMakeLists.txt
@@ -70,6 +70,7 @@
"components/service/block_storage/provider"
"components/service/block_storage/provider/serializer/packed-c"
"components/service/block_storage/config/ref"
+ "components/service/block_storage/factory/ref_ram"
"components/service/crypto/provider"
"components/service/crypto/provider/serializer/protobuf"
"components/service/crypto/provider/serializer/packed-c"
diff --git a/deployments/ts-service-test/linux-pc/CMakeLists.txt b/deployments/ts-service-test/linux-pc/CMakeLists.txt
index 2690dab..99c1db2 100644
--- a/deployments/ts-service-test/linux-pc/CMakeLists.txt
+++ b/deployments/ts-service-test/linux-pc/CMakeLists.txt
@@ -84,6 +84,7 @@
"components/service/smm_variable/test/service"
"components/service/block_storage/block_store"
"components/service/block_storage/block_store/client"
+ "components/service/block_storage/factory/client"
"components/service/block_storage/test/service"
"components/common/uuid"
)