summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorJoel Kitching <kitching@google.com>2020-02-13 18:28:35 +0800
committerCommit Bot <commit-bot@chromium.org>2020-02-14 11:51:41 +0000
commitac77cdb75bc00b9daf9109480333fde7e12b5a82 (patch)
tree924e5fc9dd4f9a4ede19ff8951462dfb6ebafddf /firmware
parent58ae67008f4f70cdbf48d76234f70a3b61b6e83e (diff)
downloadvboot-ac77cdb75bc00b9daf9109480333fde7e12b5a82.tar.gz
vboot: stop setting context mode flag in VBSLK
Stop setting mode flags (developer or recovery) in VbSelectAndLoadKernel; this has already been done in firmware verification. BUG=b:124141368, chromium:994060 TEST=make clean && make runtests BRANCH=none Change-Id: I659f406e0182f809ad46c92a2597b05f685d45dd Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2054265 Reviewed-by: Joel Kitching <kitching@chromium.org> Commit-Queue: Joel Kitching <kitching@chromium.org> Tested-by: Joel Kitching <kitching@chromium.org>
Diffstat (limited to 'firmware')
-rw-r--r--firmware/lib/vboot_api_kernel.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/firmware/lib/vboot_api_kernel.c b/firmware/lib/vboot_api_kernel.c
index 822f1cbe..c5328d23 100644
--- a/firmware/lib/vboot_api_kernel.c
+++ b/firmware/lib/vboot_api_kernel.c
@@ -228,13 +228,6 @@ static vb2_error_t vb2_kernel_setup(struct vb2_context *ctx,
{
struct vb2_shared_data *sd = vb2_get_sd(ctx);
- /* Set selected boot mode in context object.
- TODO: Confirm that this can be removed with persistent context. */
- if (sd->recovery_reason)
- ctx->flags |= VB2_CONTEXT_RECOVERY_MODE;
- if (sd->flags & VB2_SD_FLAG_DEV_MODE_ENABLED)
- ctx->flags |= VB2_CONTEXT_DEVELOPER_MODE;
-
/* Translate vboot2 flags and fields into vboot1. */
if (ctx->flags & VB2_CONTEXT_EC_SYNC_SUPPORTED)
shared->flags |= VBSD_EC_SOFTWARE_SYNC;