summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile7
-rw-r--r--firmware/include/vboot_struct.h5
-rw-r--r--firmware/lib/vboot_api_kernel.c2
3 files changed, 11 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index fe74fc00..d368e60f 100644
--- a/Makefile
+++ b/Makefile
@@ -197,6 +197,13 @@ else
CFLAGS += -DEC_SLOW_UPDATE=0
endif
+# Enable EC early firmware selection.
+ifneq ($(filter-out 0,${EC_EFS}),)
+CFLAGS += -DEC_EFS=1
+else
+CFLAGS += -DEC_EFS=0
+endif
+
# Some tests need to be disabled when using mocked_secdata_tpm.
ifneq (${MOCK_TPM},)
CFLAGS += -DMOCK_TPM
diff --git a/firmware/include/vboot_struct.h b/firmware/include/vboot_struct.h
index c63edb10..6334b99b 100644
--- a/firmware/include/vboot_struct.h
+++ b/firmware/include/vboot_struct.h
@@ -90,8 +90,9 @@ extern "C" {
#define VBSD_DEPRECATED_OPROM_LOADED 0x00020000
/* Don't try for boot failures */
#define VBSD_NOFAIL_BOOT 0x00040000
-/* VbInit() was told that the EC firmware supports EFS */
-#define VBSD_EC_EFS 0x00080000
+/* VbInit() was told that the EC firmware supports EFS
+ Deprecated as part of chromium:1038259 */
+#define VBSD_DEPRECATED_EC_EFS 0x00080000
/* NvStorage uses 64-byte record, not 16-byte */
#define VBSD_NVDATA_V2 0x00100000
diff --git a/firmware/lib/vboot_api_kernel.c b/firmware/lib/vboot_api_kernel.c
index 1e15e309..46c268a8 100644
--- a/firmware/lib/vboot_api_kernel.c
+++ b/firmware/lib/vboot_api_kernel.c
@@ -247,7 +247,7 @@ static vb2_error_t vb2_kernel_setup(struct vb2_context *ctx,
ctx->flags |= VB2_CONTEXT_EC_SYNC_SUPPORTED;
if (EC_SLOW_UPDATE)
ctx->flags |= VB2_CONTEXT_EC_SYNC_SLOW;
- if (shared->flags & VBSD_EC_EFS)
+ if (EC_EFS)
ctx->flags |= VB2_CONTEXT_EC_EFS;
if (shared->flags & VBSD_NVDATA_V2)
ctx->flags |= VB2_CONTEXT_NVDATA_V2;