summaryrefslogtreecommitdiff
path: root/firmware/lib/vboot_api_kernel.c
diff options
context:
space:
mode:
authorMathew King <mathewk@chromium.org>2019-02-11 10:27:59 -0700
committerchrome-bot <chrome-bot@chromium.org>2019-02-22 18:23:43 -0800
commit9d6dc0d222418f90f5080f6c25cd06ca14abf48b (patch)
tree77c8aa1f55543be4ac6da3b96f38d111e276d3e0 /firmware/lib/vboot_api_kernel.c
parentaf26dc17173d82c75821cf5385054a3b3b17165d (diff)
downloadvboot-9d6dc0d222418f90f5080f6c25cd06ca14abf48b.tar.gz
vboot: Add ui for setting vendor data in VPDfirmware-atlas-11827.12.B
BUG=b:124297157 TEST=make runtest test on device BRANCH=none CQ-DEPEND=CL:1466822 Change-Id: Ic3b1b502b1aff14a795397da3024f8a12eb04775 Reviewed-on: https://chromium-review.googlesource.com/1466290 Commit-Ready: Mathew King <mathewk@chromium.org> Tested-by: Mathew King <mathewk@chromium.org> Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Mathew King <mathewk@chromium.org>
Diffstat (limited to 'firmware/lib/vboot_api_kernel.c')
-rw-r--r--firmware/lib/vboot_api_kernel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/lib/vboot_api_kernel.c b/firmware/lib/vboot_api_kernel.c
index 516b1e44..17b3b7b2 100644
--- a/firmware/lib/vboot_api_kernel.c
+++ b/firmware/lib/vboot_api_kernel.c
@@ -432,6 +432,9 @@ VbError_t VbSelectAndLoadKernel(VbCommonParams *cparams,
retval = VbBootRecovery(&ctx);
VbExEcEnteringMode(0, VB_EC_RECOVERY);
} else if (ctx.flags & VB2_CONTEXT_DEVELOPER_MODE) {
+ if (kparams->inflags & VB_SALK_INFLAGS_VENDOR_DATA_SETTABLE)
+ ctx.flags |= VB2_CONTEXT_VENDOR_DATA_SETTABLE;
+
/* Developer boot. This has UI. */
if (kparams->inflags & VB_SALK_INFLAGS_ENABLE_DETACHABLE_UI)
retval = VbBootDeveloperMenu(&ctx);