summaryrefslogtreecommitdiff
path: root/src/security/vboot/Kconfig
diff options
context:
space:
mode:
authorBill XIE <persmule@hardenedlinux.org>2019-12-17 15:56:43 +0800
committerPatrick Georgi <pgeorgi@google.com>2019-12-20 17:58:44 +0000
commitcdf6f3a4ba8429ad76738ff46220c067da065001 (patch)
treedf27c10c06d95b51d15a1cdcc88483dd73ba5359 /src/security/vboot/Kconfig
parente9b1e0fe8873cb3131b0dc4741e83540e0d90a31 (diff)
downloadcoreboot-cdf6f3a4ba8429ad76738ff46220c067da065001.tar.xz
security/vboot: Add a dedicated flag for building of vboot library
As discussed in CB:35077, since both measured boot and verified boot depends on vboot library, it had better to introduce a dedicated flag CONFIG_VBOOT_LIB to control the building and linking of the vboot library, and make other flags needing vboot library select it. Only the actual verification stuff should be conditional on CONFIG_VBOOT. Change-Id: Ia1907a11c851ee45a70582e02bdbe08fb18cc6a4 Signed-off-by: Bill XIE <persmule@hardenedlinux.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/37787 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Joel Kitching <kitching@google.com>
Diffstat (limited to 'src/security/vboot/Kconfig')
-rw-r--r--src/security/vboot/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/security/vboot/Kconfig b/src/security/vboot/Kconfig
index e03b51dd06..787cdbefb1 100644
--- a/src/security/vboot/Kconfig
+++ b/src/security/vboot/Kconfig
@@ -15,9 +15,18 @@
menu "Verified Boot (vboot)"
+config VBOOT_LIB
+ bool
+ depends on !VENDORCODE_ELTAN_VBOOT && !VENDORCODE_ELTAN_MBOOT
+ help
+ Build and link the vboot library. Makes the vboot API accessible across
+ all coreboot stages, without enabling vboot verification. For verification,
+ please see the VBOOT option below.
+
config VBOOT
bool "Verify firmware with vboot."
default n
+ select VBOOT_LIB
select VBOOT_MOCK_SECDATA if !TPM1 && !TPM2
depends on !MISSING_BOARD_RESET
help