Build: Add Kconfig files
Kconfig can simplify the configuration dependency handling
in TF-M and it is more convenient for users to generate TF-M
configs compared with CMAKE.
These Kconfig files in TF-M contain two parts of TF-M
configurations, build options and component options. These
build options will be parsed into CMake environment and
component options will be parsed into Header File Config
System.
Signed-off-by: Jianliang Shen <jianliang.shen@arm.com>
Change-Id: I2ae94997d4278f0c52dc48ec2bccf9b4f0c8017e
diff --git a/secure_fw/spm/Kconfig b/secure_fw/spm/Kconfig
new file mode 100644
index 0000000..bb992a7
--- /dev/null
+++ b/secure_fw/spm/Kconfig
@@ -0,0 +1,21 @@
+#-------------------------------------------------------------------------------
+# Copyright (c) 2022, Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+#-------------------------------------------------------------------------------
+
+menu "TF-M SPM component configs"
+
+config CONFIG_TFM_CONN_HANDLE_MAX_NUM
+ int "Maximal number of handling secure services"
+ default 8
+ help
+ The maximal number of secure services that are connected or requested at
+ the same time
+
+config CONFIG_TFM_DOORBELL_API
+ bool "Enable the doorbell APIs"
+ default n if CONFIG_TFM_SPM_BACKEND_SFN
+ default y
+endmenu