summaryrefslogtreecommitdiff
path: root/host
diff options
context:
space:
mode:
authoredisonhello <edisonhello@google.com>2021-07-20 18:37:59 +0800
committerCommit Bot <commit-bot@chromium.org>2021-07-30 17:37:18 +0000
commit6cebe52a33eba8bb82430a7ce5560c590aee99a0 (patch)
tree7aa12fa2263b7b533490526f5518853b07a48ab3 /host
parentf975ab651e5364f2c59bca496779754b081e44ce (diff)
downloadvboot-6cebe52a33eba8bb82430a7ce5560c590aee99a0.tar.gz
vboot: Add DEV_BOOT_*ALLOWED in ctx->flags
Add DEV_BOOT_ALLOWED, DEV_BOOT_ALTFW_ALLOWED, DEV_BOOT_EXTERNAL_ALLOWED in ctx->flags, which can be used by external functions. These flags will be filled in VbSelectAndLoadKernel, before calling any menu function. In 2ui.c and 2ui_screen.c, all function calls to vb2_dev_boot_*allowed are replaced with corresponding flags in ctx->flags. Remove the parts of mocking these functions in unit tests, and set ctx->flags instead in reset_common_data. BUG=b:172339016 TEST=export CC=x86_64-pc-linux-gnu-clang DEBUG=1 DETACHABLE=0; \ make -j32 test_setup && make -j32 runtests; TEST=export CC=x86_64-pc-linux-gnu-clang DEBUG=1 DETACHABLE=1; \ make -j32 test_setup && make -j32 runtests; TEST=Hayato booted into developer mode BRANCH=none Signed-off-by: edisonhello <edisonhello@google.com> Change-Id: Ida9f03557a92a1522d631fc04b281ce85f5049c7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3041498 Reviewed-by: Yu-Ping Wu <yupingso@chromium.org>
Diffstat (limited to 'host')
0 files changed, 0 insertions, 0 deletions