summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorYu-Ping Wu <yupingso@chromium.org>2020-01-02 17:00:00 +0800
committerCommit Bot <commit-bot@chromium.org>2020-01-09 09:31:55 +0000
commit400c1b75b9eee97ee2484ae7ba801fe852c7b828 (patch)
tree7967bda937498bb6ad281f5d0ba549e0afde6af5 /Makefile
parent3270d9b5b3859065743e1248c85d17fde33423c6 (diff)
downloadvboot-400c1b75b9eee97ee2484ae7ba801fe852c7b828.tar.gz
vboot: Deprecate VBSD_EC_EFS
Replace VbSharedDataHeader flag VBSD_EC_EFS with compile-time macro EC_EFS. BRANCH=none BUG=chromium:1038259 TEST=FEATURES=test emerge-nami vboot_reference Cq-Depend: chromium:1985550 Change-Id: I0c4dc9b096daf3343881df5bd4181b410979eb0d Signed-off-by: Yu-Ping Wu <yupingso@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1985548 Reviewed-by: Joel Kitching <kitching@chromium.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 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