diff options
author | Mary Ruthven <mruthven@chromium.org> | 2021-06-09 13:39:18 -0500 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-06-15 16:34:05 +0000 |
commit | b529376c7bc36d9627d0e1992fa470be76014674 (patch) | |
tree | 0995e71a51e91ee6b2d9f856012885608cc89bde | |
parent | 9f9753d665987cc42a4ca2fe496f6e9d58c91be8 (diff) | |
download | chrome-ec-b529376c7bc36d9627d0e1992fa470be76014674.tar.gz |
ap_ro_integrity_check: allow setting hash in DBG imagesstabilize-14031.B-cr50_stab
It's difficult to erase the board id. Skip the board id check for
setting the hash with a DBG image. These images are only used by
developers.
BUG=none
TEST=ap_ro_hash.py -v True GBB with and without the board id set with a
DBG image.
Change-Id: I3cb56323aac5d32c3552e91db8f05724ba04fe94
Signed-off-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2950311
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
-rw-r--r-- | common/ap_ro_integrity_check.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/ap_ro_integrity_check.c b/common/ap_ro_integrity_check.c index 3ec0296d9c..c1d1c22959 100644 --- a/common/ap_ro_integrity_check.c +++ b/common/ap_ro_integrity_check.c @@ -110,10 +110,12 @@ static enum vendor_cmd_rc vc_seed_ap_ro_check(enum vendor_cmd_cc code, *response_size = 1; /* Just in case there is an error. */ /* Neither write nor erase are allowed once Board ID is programmed. */ +#ifndef CR50_DEV if (!board_id_is_erased()) { *response = ARCVE_BID_PROGRAMMED; return VENDOR_RC_NOT_ALLOWED; } +#endif if (input_size == 0) { /* Empty payload is a request to erase the hash. */ |