summaryrefslogtreecommitdiff
path: root/firmware/2lib/include
diff options
context:
space:
mode:
authorHsuan Ting Chen <roccochen@chromium.org>2020-08-31 14:04:57 +0800
committerCommit Bot <commit-bot@chromium.org>2020-09-21 04:08:18 +0000
commit07cd40854b31ad018657a173d4ff422d575a1f8f (patch)
tree0d25824de1d34ab7fce126b05409aa234a5e1d5a /firmware/2lib/include
parent4e5ce4293a724bce9e1fa36c5e305bdbc85946bd (diff)
downloadvboot-07cd40854b31ad018657a173d4ff422d575a1f8f.tar.gz
firmware/2lib: Handle errors in alternate boot
Handle three different errors in alternate boot: - VB2_UI_ERROR_ALTERNATE_BOOT_DISABLED - VB2_UI_ERROR_NO_BOOTLOADER - VB2_UI_ERROR_ALTERNATE_BOOT_FAILED BUG=b:146399181, b:161092974 TEST=make clean && make runtests BRANCH=puff, zork Cq-Depend: chromium:2384995 Signed-off-by: Hsuan Ting Chen <roccochen@chromium.org> Change-Id: I1e6572ed4a1c756d6d3727818439de25cad03158 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2382998 Tested-by: Shelley Chen <shchen@chromium.org> Reviewed-by: Joel Kitching <kitching@chromium.org> Reviewed-by: Yu-Ping Wu <yupingso@chromium.org> Reviewed-by: Shelley Chen <shchen@chromium.org>
Diffstat (limited to 'firmware/2lib/include')
-rw-r--r--firmware/2lib/include/2api.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/2lib/include/2api.h b/firmware/2lib/include/2api.h
index 9f4dbcb9..323b91c9 100644
--- a/firmware/2lib/include/2api.h
+++ b/firmware/2lib/include/2api.h
@@ -1340,6 +1340,12 @@ enum vb2_ui_error {
VB2_UI_ERROR_FIRMWARE_LOG,
/* Untrusted confirmation */
VB2_UI_ERROR_UNTRUSTED_CONFIRMATION,
+ /* Alternate bootloader is disabled */
+ VB2_UI_ERROR_ALTERNATE_BOOT_DISABLED,
+ /* No bootloader was found */
+ VB2_UI_ERROR_NO_BOOTLOADER,
+ /* Alternate bootloader failed */
+ VB2_UI_ERROR_ALTERNATE_BOOT_FAILED,
/* Diagnostics internal failure */
VB2_UI_ERROR_DIAGNOSTICS,
};