mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-25 10:45:02 +00:00
vboot: Pass vb2 context and use vboot2 NV routines
Passing the vb2 context around allows using more of the vb2 functions in future changes, and prepares for a future where we directly use the context as it was set up in firmware verification. BUG=chromium:611535 BRANCH=none TEST=make runtests; emerge-kevin coreboot depthcharge Change-Id: I8efa606dbdec5d195b66eb899e76fdc84337ad36 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/404997 Reviewed-by: Shelley Chen <shchen@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
b57d9505c0
commit
e4136dcaa0
@@ -12,6 +12,8 @@
|
||||
#include "vboot_api.h"
|
||||
#include "vboot_nvstorage.h"
|
||||
|
||||
struct vb2_context;
|
||||
|
||||
/* Interface provided by verified boot library to BDS */
|
||||
|
||||
/* Boot flags for LoadKernel().boot_flags */
|
||||
@@ -71,9 +73,14 @@ typedef struct LoadKernelParams {
|
||||
/**
|
||||
* Attempt to load the kernel from the current device.
|
||||
*
|
||||
* @param ctx Vboot context
|
||||
* @param params Params specific to loading the kernel
|
||||
* @param cparams Common parameters to vboot1 APIs
|
||||
*
|
||||
* Returns VBERROR_SUCCESS if successful. If unsuccessful, sets a recovery
|
||||
* reason via VbNvStorage and returns an error code.
|
||||
*/
|
||||
VbError_t LoadKernel(LoadKernelParams *params, VbCommonParams *cparams);
|
||||
VbError_t LoadKernel(struct vb2_context *ctx, LoadKernelParams *params,
|
||||
VbCommonParams *cparams);
|
||||
|
||||
#endif /* VBOOT_REFERENCE_LOAD_KERNEL_FW_H_ */
|
||||
|
||||
Reference in New Issue
Block a user