Add block storage standalone service context
To support service level testing of the block storage service, a
standalone service context has been added that constructs a
service provider with backend storage for testing via the standard
service RPC interface.
Signed-off-by: Julian Hall <julian.hall@arm.com>
Change-Id: I866da635d0a6563cae9ed4de92f915107a5e3de5
diff --git a/components/service/locator/standalone/standalone_env.cpp b/components/service/locator/standalone/standalone_env.cpp
index 7f7ce13..c9d7ba1 100644
--- a/components/service/locator/standalone/standalone_env.cpp
+++ b/components/service/locator/standalone/standalone_env.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020-2021, Arm Limited and Contributors. All rights reserved.
+ * Copyright (c) 2020-2022, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@@ -10,6 +10,7 @@
#include <service/locator/standalone/services/protected-storage/ps_service_context.h>
#include <service/locator/standalone/services/test-runner/test_runner_service_context.h>
#include <service/locator/standalone/services/attestation/attestation_service_context.h>
+#include <service/locator/standalone/services/block-storage/block_storage_service_context.h>
#include <service/locator/standalone/services/smm-variable/smm_variable_service_context.h>
#include "standalone_location_strategy.h"
#include "standalone_service_registry.h"
@@ -31,6 +32,9 @@
static attestation_service_context attestation_context("sn:trustedfirmware.org:attestation:0");
standalone_service_registry::instance()->regsiter_service_instance(&attestation_context);
+ static block_storage_service_context block_storage_context("sn:trustedfirmware.org:block-storage:0");
+ standalone_service_registry::instance()->regsiter_service_instance(&block_storage_context);
+
static smm_variable_service_context smm_variable_context("sn:trustedfirmware.org:smm-variable:0");
standalone_service_registry::instance()->regsiter_service_instance(&smm_variable_context);