summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Kitching <kitching@google.com>2020-04-15 17:47:03 +0800
committerCommit Bot <commit-bot@chromium.org>2020-04-16 04:58:43 +0000
commit59757377805347bf798a42e39843804a46062a29 (patch)
tree6fcb6025019c4e475d67eba385f9d33f6a04b6b2
parent3b3ca4a1b8f104cd142a6d69b362c15ef5d02cc6 (diff)
downloadvboot-59757377805347bf798a42e39843804a46062a29.tar.gz
vboot: remove more unused pre-vboot1 and vboot1 error codes
BUG=b:124141368, chromium:988410 TEST=make clean && make runtests BRANCH=none Change-Id: I24c867af25726f84a4ada18477de66579975a383 Signed-off-by: Joel Kitching <kitching@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2150182 Tested-by: Joel Kitching <kitching@chromium.org> Reviewed-by: Yu-Ping Wu <yupingso@chromium.org> Reviewed-by: Joel Kitching <kitching@chromium.org> Commit-Queue: Joel Kitching <kitching@chromium.org>
-rw-r--r--firmware/2lib/include/2return_codes.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/firmware/2lib/include/2return_codes.h b/firmware/2lib/include/2return_codes.h
index 62885fba..89b2fcff 100644
--- a/firmware/2lib/include/2return_codes.h
+++ b/firmware/2lib/include/2return_codes.h
@@ -37,36 +37,13 @@ enum vb2_return_code {
VB2_ERROR_MOCK,
/**********************************************************************
- * ancient pre-vboot1 errors
- * TODO: deprecate these once they have all moved over to vboot2 style
- */
- /* Invalid public key passed to a signature verficiation function. */
- VBOOT_PUBLIC_KEY_INVALID = 4,
- /* Preamble internal structure is invalid */
- VBOOT_PREAMBLE_INVALID = 5,
- /* Shared data is invalid. */
- VBOOT_SHARED_DATA_INVALID = 7,
- /* Kernel Preamble does not contain flags */
- VBOOT_KERNEL_PREAMBLE_NO_FLAGS = 8,
-
- /**********************************************************************
* vboot1-style errors
* TODO: deprecate these once they have all moved over to vboot2 style
*/
- /* Unable to initialize shared data */
- VBERROR_INIT_SHARED_DATA = 0x10001,
/* Unable to set boot mode state in TPM */
VBERROR_TPM_SET_BOOT_MODE_STATE = 0x10006,
/* Calling firmware needs to perform a reboot. */
VBERROR_REBOOT_REQUIRED = 0x10007,
- /* Unable to set up TPM */
- VBERROR_TPM_FIRMWARE_SETUP = 0x10008,
- /* Unable to read kernel versions from TPM */
- VBERROR_TPM_READ_KERNEL = 0x10009,
- /* Unable to write kernel versions to TPM */
- VBERROR_TPM_WRITE_KERNEL = 0x1000B,
- /* Unable to lock kernel versions in TPM */
- VBERROR_TPM_LOCK_KERNEL = 0x1000C,
/* Calling firmware requested shutdown via VbExIsShutdownRequested() */
VBERROR_SHUTDOWN_REQUESTED = 0x1000D,
/* VbExBeep() can't make sound in the background */
@@ -75,8 +52,6 @@ enum vb2_return_code {
VBERROR_EC_REBOOT_TO_SWITCH_RW = 0x1001A,
/* Need EC to reboot to read-only code */
VBERROR_EC_REBOOT_TO_RO_REQUIRED = 0x10022,
- /* Error reading FWMP from TPM (note: not present is not an error) */
- VBERROR_TPM_READ_FWMP = 0x10029,
/* Peripheral busy. Cannot upgrade firmware at present. */
VBERROR_PERIPHERAL_BUSY = 0x10030,
/* Error writing VPD */