summaryrefslogtreecommitdiff
path: root/payloads/libpayload/vboot/Kconfig
diff options
context:
space:
mode:
authorJakub Czapiga <jacz@semihalf.com>2021-12-06 09:01:50 +0000
committerFelix Held <felix-coreboot@felixheld.de>2022-01-10 14:29:50 +0000
commit1fa3da4d9b30ad7e63b79b6966794ee179dc6501 (patch)
tree5da240eacc7660e4444feef859ecb68762533bdb /payloads/libpayload/vboot/Kconfig
parentb7d1b35175db3bc895c511125626cb87442d33c6 (diff)
libpayload: Enable vboot integration
This patch introduces building and linking of 3rdparty/vboot with libpayload. VBoot can be enabled by setting CONFIG_LP_VBOOT_LIB. Moreover it can be configured to use either TPM or TPM 2.0 mode, and whether to use SHA256 processor extension instructions on x86. Change-Id: I2d9d766a461edaa0081041c020ecf580fd2ca64e Signed-off-by: Jakub Czapiga <jacz@semihalf.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60080 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'payloads/libpayload/vboot/Kconfig')
-rw-r--r--payloads/libpayload/vboot/Kconfig25
1 files changed, 25 insertions, 0 deletions
diff --git a/payloads/libpayload/vboot/Kconfig b/payloads/libpayload/vboot/Kconfig
new file mode 100644
index 0000000000..4d5d8818e0
--- /dev/null
+++ b/payloads/libpayload/vboot/Kconfig
@@ -0,0 +1,25 @@
+# SPDX-License-Identifier: BSD-3-Clause
+
+config VBOOT_LIB
+ bool "Compile verified boot (vboot) library"
+ default n
+ help
+ This option enables compiling and building vboot libraries vboot_fw and tlcl.
+
+if VBOOT_LIB
+
+config VBOOT_TPM2_MODE
+ bool "TPM2 Mode"
+ default y
+ help
+ This option enables TPM 2.0 support in vboot. Disabling it allows using TPM 1.2.
+
+config VBOOT_X86_SHA_EXT
+ bool "x86 SHA Extension"
+ default n
+ depends on ARCH_X86
+ help
+ This option enables SHA256 implementation using x86 SHA processor extension
+ instructions: sha256msg1, sha256msg2, sha256rnds2.
+
+endif