Kconfig: Add BL1 and BL2 Kconfig configs
bl1/Kconfig and bl2/ext/mcuboot/Kconfig are based on related
CMAKE config files. As these two modules join into the Kconfig
menu, CMAKE include process in kconfig.cmake can be dropped.
Signed-off-by: Jianliang Shen <jianliang.shen@arm.com>
Change-Id: I288fabab9adb66028125fa0b7065e2e39e2420a5
diff --git a/Kconfig.bl b/Kconfig.bl
new file mode 100644
index 0000000..d4495cc
--- /dev/null
+++ b/Kconfig.bl
@@ -0,0 +1,33 @@
+
+#-------------------------------------------------------------------------------
+# Copyright (c) 2023, Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+#-------------------------------------------------------------------------------
+
+rsource "bl1/Kconfig"
+rsource "bl2/ext/mcuboot/Kconfig"
+
+menu "BL options"
+
+config CONFIG_TFM_BOOT_STORE_MEASUREMENTS
+ bool "Store measurement values from all the boot stages"
+ default y
+ help
+ Used for initial attestation token.
+
+config CONFIG_TFM_BOOT_STORE_ENCODED_MEASUREMENTS
+ bool "Enable storing of encoded measurements in boot"
+ default y
+
+config MCUBOOT_DATA_SHARING
+ bool
+ default y if TFM_PARTITION_FIRMWARE_UPDATE || \
+ (BL2 && CONFIG_TFM_BOOT_STORE_MEASUREMENTS && \
+ !CONFIG_TFM_BOOT_STORE_ENCODED_MEASUREMENTS)
+ default n
+ help
+ Add sharing of application specific data using the same shared data area
+ as for the measured boot
+endmenu