Tim Wawrzynczak has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/36210 )
Change subject: security/vboot: Add new Kconfig option VBOOT_EARLY_EC_SYNC ......................................................................
security/vboot: Add new Kconfig option VBOOT_EARLY_EC_SYNC
The new Kconfig option compiles EC software sync into romstage.
Change-Id: I56edcd385467edb5e91168dc59427d86fa9581d7 Signed-off-by: Tim Wawrzynczak twawrzynczak@chromium.org --- M src/security/vboot/Kconfig M src/security/vboot/Makefile.inc 2 files changed, 10 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/10/36210/1
diff --git a/src/security/vboot/Kconfig b/src/security/vboot/Kconfig index d6d74ca..7a2debe 100644 --- a/src/security/vboot/Kconfig +++ b/src/security/vboot/Kconfig @@ -224,6 +224,13 @@ Add a space delimited list of filenames that should only be in the RO section.
+config VBOOT_EARLY_EC_SYNC + bool "Perform EC software sync in romstage" + default n + help + When selected, this will perform software sync on the primary EC only + in romstage, before memory training runs. + menu "GBB configuration"
config GBB_HWID diff --git a/src/security/vboot/Makefile.inc b/src/security/vboot/Makefile.inc index 31c0f5d..a05fd7d 100644 --- a/src/security/vboot/Makefile.inc +++ b/src/security/vboot/Makefile.inc @@ -37,6 +37,8 @@ romstage-y += vbnv.c ramstage-y += vbnv.c
+romstage-$(CONFIG_VBOOT_EARLY_EC_SYNC) += sync_ec.c + bootblock-$(CONFIG_VBOOT_VBNV_CMOS) += vbnv_cmos.c verstage-$(CONFIG_VBOOT_VBNV_CMOS) += vbnv_cmos.c romstage-$(CONFIG_VBOOT_VBNV_CMOS) += vbnv_cmos.c @@ -130,6 +132,7 @@ endef # vboot-for-stage
CFLAGS_common += -I3rdparty/vboot/firmware/2lib/include +CFLAGS_common += -I3rdparty/vboot/firmware/lib/include
$(eval $(call vboot-for-stage,bootblock)) $(eval $(call vboot-for-stage,romstage))