From 0c2cec099fbaa330af54837232b0208addeff299 Mon Sep 17 00:00:00 2001 From: Mary Ruthven Date: Mon, 28 Jun 2021 12:52:44 -0500 Subject: CRYPTO_TEST: fix build ap_state build issue BUG=none TEST=make -j BOARD=cr50 CRYPTO_TEST=1 Change-Id: Iad1c87d6ca3dfd798a6b63a0cffc087e1dd716a2 Signed-off-by: Mary Ruthven Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3002450 Reviewed-by: Andrey Pronin Commit-Queue: Andrey Pronin --- board/cr50/ap_state.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/cr50/ap_state.c b/board/cr50/ap_state.c index 18cad12254..97b08acbb3 100644 --- a/board/cr50/ap_state.c +++ b/board/cr50/ap_state.c @@ -111,9 +111,11 @@ void tpm_rst_asserted(enum gpio_signal unused) { CPRINTS("%s", __func__); +#ifdef CONFIG_AP_RO_VERIFICATION /* Clear AP RO verification state since this is a new boot. */ if (!tpm_reset_in_progress()) ap_ro_device_reset(); +#endif /* * It's possible the signal is being pulsed. Wait 1 second to disable * functionality, so it's more likely the AP is fully off and not being -- cgit v1.2.1