diff options
Diffstat (limited to 'firmware/lib/vboot_ui_common.c')
-rw-r--r-- | firmware/lib/vboot_ui_common.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/firmware/lib/vboot_ui_common.c b/firmware/lib/vboot_ui_common.c index 727ed779..df1615d1 100644 --- a/firmware/lib/vboot_ui_common.c +++ b/firmware/lib/vboot_ui_common.c @@ -38,3 +38,20 @@ void vb2_run_altfw(int altfw_num) VbExLegacy(altfw_num); /* will not return if found */ vb2_error_beep(VB_BEEP_FAILED); } + +void vb2_error_no_altfw(void) +{ + VB2_DEBUG("Legacy boot is disabled\n"); + VbExDisplayDebugInfo("WARNING: Booting legacy BIOS has not been " + "enabled. Refer to the developer-mode " + "documentation for details.\n"); + vb2_error_beep(VB_BEEP_NOT_ALLOWED); +} + +void vb2_try_alt_fw(int allowed, int altfw_num) +{ + if (allowed) + vb2_run_altfw(altfw_num); /* will not return if found */ + else + vb2_error_no_altfw(); +} |