firmware: Add developer menu support for detachables

Adding in basic menu support (using arrow keys)
for detachables, which do not have keyboards.  Thus,
we can only do menu scrolling rather than the old
ctrl+D/U/L way.  This is specifically for the developer
warning menu.

BUG=chrome-os-partner:61275
BRANCH=None
TEST=reboot system and try scrolling through menu

Change-Id: I39f56f5ca2fedd47df53ab246ec357d07c9c4af0
Signed-off-by: Shelley Chen <shchen@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/424353
Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
Shelley Chen
2016-12-22 09:55:47 -08:00
committed by chrome-bot
parent e02a19a6c2
commit 71c6c033f9
3 changed files with 825 additions and 0 deletions

View File

@@ -72,6 +72,16 @@ VbError_t VbBootDeveloper(struct vb2_context *ctx, VbCommonParams *cparams);
*/
VbError_t VbBootRecovery(struct vb2_context *ctx, VbCommonParams *cparams);
/**
* Handle a developer-mode boot using detachable menu ui
*/
VbError_t VbBootDeveloperMenu(struct vb2_context *ctx, VbCommonParams *cparams);
/**
* Handle a recovery-mode boot using detachable menu ui
*/
VbError_t VbBootRecoveryMenu(struct vb2_context *ctx, VbCommonParams *cparams);
/**
* Return the current FWMP flags. Valid only inside VbSelectAndLoadKernel().
*/