summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorYu-Ping Wu <yupingso@chromium.org>2020-01-16 16:47:57 +0800
committerCommit Bot <commit-bot@chromium.org>2020-02-06 16:21:45 +0000
commiteee51d1abaa0c4030cfee1c8f842633480a121c9 (patch)
tree00304269604451c04f7091f742dbe5151b00069d /Makefile
parentab8a4d48cb54dd69dc7ca6cf7a377d30eaafc6a3 (diff)
downloadvboot-eee51d1abaa0c4030cfee1c8f842633480a121c9.tar.gz
vboot: Deprecate VBSD_BOOT_REC_SWITCH_VIRTUAL
With the compile time constant PHYSICAL_PRESENCE_KEYBOARD passed (CL:2004267), replace the usage of the flag VBSD_BOOT_REC_SWITCH_VIRTUAL with PHYSICAL_PRESENCE_KEYBOARD. Also deprecate VBSD_BOOT_REC_SWITCH_VIRTUAL because it is no longer needed. BRANCH=none BUG=chromium:1038259, chromium:943150 TEST=make runtests Cq-Depend: chromium:2004267 Change-Id: I091825cf1367571bb50dec84dda6e44ed4d2bb19 Signed-off-by: Yu-Ping Wu <yupingso@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2037269 Reviewed-by: Julius Werner <jwerner@chromium.org> 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 0336a364..69426940 100644
--- a/Makefile
+++ b/Makefile
@@ -213,6 +213,13 @@ else
CFLAGS += -DDIAGNOSTIC_UI=0
endif
+# Confirm physical presence using keyboard
+ifneq ($(filter-out 0,${PHYSICAL_PRESENCE_KEYBOARD}),)
+CFLAGS += -DPHYSICAL_PRESENCE_KEYBOARD=1
+else
+CFLAGS += -DPHYSICAL_PRESENCE_KEYBOARD=0
+endif
+
# NOTE: We don't use these files but they are useful for other packages to
# query about required compiling/linking flags.
PC_IN_FILES = vboot_host.pc.in