summaryrefslogtreecommitdiffstats
path: root/src/security/vboot/Makefile.inc
diff options
context:
space:
mode:
authorSubrata Banik <subrata.banik@intel.com>2021-06-17 19:27:12 +0530
committerPatrick Georgi <pgeorgi@google.com>2021-07-01 09:38:19 +0000
commit9479037f38b74ca26819366d6573e0e548f79cf3 (patch)
tree27df40cb9b2a5b5711dd89f8c0addb5ff4a8e16a /src/security/vboot/Makefile.inc
parentbf487e46d7b4777e42aa5096bf450e5c723c65b5 (diff)
downloadcoreboot-9479037f38b74ca26819366d6573e0e548f79cf3.tar.gz
coreboot-9479037f38b74ca26819366d6573e0e548f79cf3.tar.bz2
coreboot-9479037f38b74ca26819366d6573e0e548f79cf3.zip
vboot: add VBOOT_X86_SHA256_ACCELERATION config
Add Kconfig option for VBOOT_X86_SHA256_ACCELERATION, which will use x86-sha extension for SHA256 instead of software implementation. TEST=Able to call vb2ex_hwcrypto_digest_init() and perform SHA using HW crypto engine. Change-Id: Idc8be8711c69f4ebc489cd37cc3749c0b257c610 Signed-off-by: Subrata Banik <subrata.banik@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/55611 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/security/vboot/Makefile.inc')
-rw-r--r--src/security/vboot/Makefile.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/security/vboot/Makefile.inc b/src/security/vboot/Makefile.inc
index 47830f3c6212..d604d1c862b0 100644
--- a/src/security/vboot/Makefile.inc
+++ b/src/security/vboot/Makefile.inc
@@ -28,6 +28,7 @@ $$(VBOOT_LIB_$(1)): $(obj)/config.h
CC="$$(CC_$(1))" \
CFLAGS="$$(VBOOT_CFLAGS_$(1))" VBOOT2="y" \
EC_EFS="$(CONFIG_VBOOT_EC_EFS)" \
+ X86_SHA_EXT="$(CONFIG_VBOOT_X86_SHA256_ACCELERATION)" \
$(MAKE) -C $(VBOOT_SOURCE) \
BUILD=$$(abspath $$(dir $$(VBOOT_LIB_$(1)))) \
V=$(V) \