summaryrefslogtreecommitdiff
path: root/host
diff options
context:
space:
mode:
authoredisonhello <edisonhello@google.com>2021-07-26 15:26:13 +0800
committerCommit Bot <commit-bot@chromium.org>2021-07-30 17:37:19 +0000
commitc267a6908dcbffa8d683c25fc1ba87edf373acca (patch)
tree1ce72908970aed52522b8f9bdfee3abc47a7dc13 /host
parent6cebe52a33eba8bb82430a7ce5560c590aee99a0 (diff)
downloadvboot-c267a6908dcbffa8d683c25fc1ba87edf373acca.tar.gz
vboot: Publicize and create functions for UI migration
Publicize vb2api_enable_developer_mode, vb2api_allow_recovery and VbTryLoadKernel, and modify corresponding parts in tests. Create vb2api_disable_dev_request, vb2api_request_diagnostics for wrapping vb2_nv_set(ctx, VB2_NV_DISABLE_DEV_REQUEST, 1) and vb2_nv_set(ctx, VB2_NV_DIAG_REQUEST, 1). 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 Change-Id: I0211a63ed58ce862ee3e17b4835c675544f773a4 Signed-off-by: edisonhello <edisonhello@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3053541 Reviewed-by: Yu-Ping Wu <yupingso@chromium.org>
Diffstat (limited to 'host')
-rw-r--r--host/lib/include/host_misc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/host/lib/include/host_misc.h b/host/lib/include/host_misc.h
index 0249420b..298e742e 100644
--- a/host/lib/include/host_misc.h
+++ b/host/lib/include/host_misc.h
@@ -9,6 +9,7 @@
#define VBOOT_REFERENCE_HOST_MISC_H_
#include "vboot_struct.h"
+#include "vboot_api.h"
/* Copy up to dest_size-1 characters from src to dest, ensuring null
* termination (which strncpy() doesn't do). Returns the destination