diff options
author | Joel Kitching <kitching@google.com> | 2018-12-06 17:11:31 +0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2018-12-06 10:06:44 +0000 |
commit | d331bcd2e1ed6f92f47366a0ed4bfc743eaff857 (patch) | |
tree | ee72e35ff95cac67693d7a3fcbf572df20b42e1f | |
parent | b6668df12db2d0a088b4ca6b52b77ba1ddde7ac1 (diff) | |
download | vboot-d331bcd2e1ed6f92f47366a0ed4bfc743eaff857.tar.gz |
2return_codes: add external return code for nonexistent TPM command
If the TPM does not support a particular command, vboot functions
may return this error.
BUG=b:70681930
TEST=None
Change-Id: I73da102128422265301b2b5994f3c0a832f7e6fd
Reviewed-on: https://chromium-review.googlesource.com/c/1365293
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Tested-by: Joel Kitching <kitching@chromium.org>
Commit-Queue: Joel Kitching <kitching@chromium.org>
-rw-r--r-- | firmware/2lib/include/2return_codes.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/2lib/include/2return_codes.h b/firmware/2lib/include/2return_codes.h index f754cded..b66cf6b4 100644 --- a/firmware/2lib/include/2return_codes.h +++ b/firmware/2lib/include/2return_codes.h @@ -606,6 +606,9 @@ enum vb2_return_code { /* Hardware crypto engine doesn't support this algorithm (non-fatal) */ VB2_ERROR_EX_HWCRYPTO_UNSUPPORTED, + /* TPM does not understand this command */ + VB2_ERROR_EX_TPM_NO_SUCH_COMMAND, + /********************************************************************** * Errors generated by host library (non-firmware) start here. |