firmware: Split out kernel UI

This moves the UI loops out of vboot_api_kernel.c into vboot_ui.c, so
that it'll be easier to support different UIs for different form factors.

BUG=chromium:611535
BRANCH=none
TEST=make runtests; build_packages --board=reef chromeos-firmware; boot reef

Change-Id: I451b15f65aceb427ffdd94b19f44e91ebc10a860
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/414289
Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-by: Shelley Chen <shchen@chromium.org>
This commit is contained in:
Randall Spangler
2016-11-23 12:21:03 -08:00
committed by chrome-bot
parent ad7a75531e
commit df4eb2bb7b
4 changed files with 611 additions and 548 deletions

View File

@@ -72,4 +72,18 @@ VbError_t VbBootDeveloper(struct vb2_context *ctx, VbCommonParams *cparams);
*/
VbError_t VbBootRecovery(struct vb2_context *ctx, VbCommonParams *cparams);
/**
* Return the current FWMP flags. Valid only inside VbSelectAndLoadKernel().
*/
uint32_t vb2_get_fwmp_flags(void);
/**
* Commit NvStorage.
*
* This may be called by UI functions which need to save settings before they
* sit in an infinite loop waiting for shutdown (this is, by a UI state which
* will never return).
*/
void vb2_nv_commit(struct vb2_context *ctx);
#endif /* VBOOT_REFERENCE_VBOOT_KERNEL_H_ */