From 190e6a26d99a6763b302156a47ba8c2f74b6465e Mon Sep 17 00:00:00 2001 From: Mary Ruthven Date: Wed, 5 May 2021 11:32:51 -0500 Subject: CRYPTO_TEST_SETUP: enable the tpm Enable the TPM with crypto test images, so boards can boot. We saved enough space by removing smaller features. Cr50 can be built with CRYPTO_TEST and the TPM enabled. BUG=b:186663661 TEST=make clobber ; make -j BOARD=cr50 make clobber ; make -j BOARD=cr50 CRYPTO_TEST=1 Change-Id: Iedb16c182183993b4f33658e5074d94a9e711ca9 Signed-off-by: Mary Ruthven Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2875479 Reviewed-by: Vadim Sukhomlinov Reviewed-by: Namyoon Woo --- common/tpm_registers.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/tpm_registers.c b/common/tpm_registers.c index 185cadf97f..fdbe771dec 100644 --- a/common/tpm_registers.c +++ b/common/tpm_registers.c @@ -27,12 +27,12 @@ #include "wp.h" /* - * Do not enable TPM if crypto test is enabled - there is no room in the flash - * for both. + * ENABLE_TPM can be used to free up a bunch of space for developing features + * running up on the space limits. */ -#ifndef CRYPTO_TEST_SETUP #define ENABLE_TPM +#ifdef ENABLE_TPM /* TPM2 library includes. */ #include "ExecCommand_fp.h" #include "Platform.h" -- cgit v1.2.1