SPM: Add runtime SFN backend
A backend for implementing 'SFN'. This runtime backend is selected
if:
- All partitions included in the current build are 'SFN' partitions.
- Isolation level 1.
The configuration is generated by tooling, and output to the
generated file 'config_impl.h'.
Change-Id: I819c78c7a912f86174d102d389a2714ae17e5062
Signed-off-by: Ken Liu <Ken.Liu@arm.com>
Co-authored-by: Mingyang Sun <mingyang.sun@arm.com>
diff --git a/secure_fw/spm/ffm/backend.c b/secure_fw/spm/ffm/backend.c
new file mode 100644
index 0000000..9df5de7
--- /dev/null
+++ b/secure_fw/spm/ffm/backend.c
@@ -0,0 +1,15 @@
+/*
+ * Copyright (c) 2021, Arm Limited. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
+ */
+#include "config_impl.h"
+
+#if CONFIG_TFM_SPM_BACKEND_SFN == 1
+#include "backend_sfn.c"
+#elif CONFIG_TFM_SPM_BACKEND_IPC == 1
+#include "backend_ipc.c"
+#else
+#error "Invalid configuration."
+#endif