diff options
author | Mary Ruthven <mruthven@chromium.org> | 2021-05-05 11:32:51 -0500 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-07-29 21:13:16 +0000 |
commit | c2b6907362f061e1d61b1ef23b04443492be92f7 (patch) | |
tree | 72737cf352e7d040bd73cccdbc902db82476a498 | |
parent | b9ba20f04bc35578e54500ef2a5e33dc3a688a4c (diff) | |
download | chrome-ec-c2b6907362f061e1d61b1ef23b04443492be92f7.tar.gz |
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 <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2875479
Reviewed-by: Vadim Sukhomlinov <sukhomlinov@chromium.org>
Reviewed-by: Namyoon Woo <namyoon@chromium.org>
(cherry picked from commit 190e6a26d99a6763b302156a47ba8c2f74b6465e)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3004067
Reviewed-by: Andrey Pronin <apronin@chromium.org>
(cherry picked from commit ac9ecc4fd504e4f88fe88d6e59b70e184906ac16)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3059196
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
-rw-r--r-- | common/tpm_registers.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/tpm_registers.c b/common/tpm_registers.c index 44e8655565..436ad58127 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" |