summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorYi Chou <yich@google.com>2020-12-07 16:36:24 +0800
committerCommit Bot <commit-bot@chromium.org>2021-02-26 18:19:52 +0000
commit6466c58b87e0d6c944bc8aa7dbac3f9f54690b71 (patch)
treed16bc13240468e1d5f6ad35a6279074f5b864daf /Makefile
parent002e91242bba615a0b73c4ada8d441916c782427 (diff)
downloadvboot-6466c58b87e0d6c944bc8aa7dbac3f9f54690b71.tar.gz
crossystem: support driver-level TPM2.0 simulator
After implemented the driver-level TPM2.0 simulator on VM boards, the mount-encrypted would use the vTPM to encrypted the file system. We would need to remove the TPM simulator NVChip when we want to hard reset the TPM on VM. And we don't need to remove the mount-encrypted key after we landed the driver-level TPM simulator on all VM boards. BUG=b:174807059 BRANCH=none TEST=crossystem clear_tpm_owner_request=1 TEST=crossystem clear_tpm_owner_request // showing the right value Cq-Depend: chromium:2576865, chromium:2638953 Signed-off-by: Yi Chou <yich@google.com> Change-Id: Iba2c9b93ed9e558a9163542dfc1fbcb738c1d83d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2576867 Reviewed-by: Joel Kitching <kitching@chromium.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 0c82cc6a..5f5132c7 100644
--- a/Makefile
+++ b/Makefile
@@ -213,6 +213,15 @@ else
CFLAGS += -DTPM2_SIMULATOR=0
endif
+# VTPM_PROXY indicates whether the TPM driver simulator feature
+# is enable or not.
+# This flag only takes effect when TPM2_SIMULATOR is enabled.
+ifneq ($(filter-out 0,${VTPM_PROXY}),)
+CFLAGS += -DVTPM_PROXY=1
+else
+CFLAGS += -DVTPM_PROXY=0
+endif
+
# DETACHABLE indicates whether the device is a detachable or not.
ifneq ($(filter-out 0,${DETACHABLE}),)
CFLAGS += -DDETACHABLE=1