summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2018-03-13 16:47:04 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2018-03-14 01:19:57 +0000
commit390c5850006b2e47af2075dd0edac5b4d0028c7d (patch)
tree768c435c63a1aa480f7434578c4d50055450488c
parent241ef781ffa5abf5a17a0633acf10d7ae249ed3e (diff)
downloadchrome-ec-390c5850006b2e47af2075dd0edac5b4d0028c7d.tar.gz
cr50: convert spihash into a non safe console command
We don't want to be able to run it unless the code was compiled with development options enabled. BRANCH=none BUG=none TEST=verified that spihash is not available in prod image Change-Id: Iede7b19e71f061bfa7e66c321ca80ac7f7ea3112 Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/961617 Reviewed-by: Mary Ruthven <mruthven@chromium.org>
-rw-r--r--board/cr50/usb_spi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/board/cr50/usb_spi.c b/board/cr50/usb_spi.c
index 26c3e0c7fc..cba20e58b3 100644
--- a/board/cr50/usb_spi.c
+++ b/board/cr50/usb_spi.c
@@ -717,6 +717,6 @@ static int hash_command_wrapper(int argc, char *argv[])
return rv;
}
-DECLARE_SAFE_CONSOLE_COMMAND(spihash, hash_command_wrapper,
- "ap | ec [gang] | disable | [dump] <offset> <size>",
- "Hash SPI flash via TPM vendor command");
+DECLARE_CONSOLE_COMMAND(spihash, hash_command_wrapper,
+ "ap | ec [gang] | disable | [dump] <offset> <size>",
+ "Hash SPI flash via TPM vendor command");