<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/coreboot/vboot.git, branch stabilize-14150.881.B</title>
<subtitle>review.coreboot.org: vboot.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/coreboot/vboot.git/'/>
<entry>
<title>vboot: Remove unnecessary flag unset operations</title>
<updated>2021-08-12T08:13:14+00:00</updated>
<author>
<name>edisonhello</name>
<email>edisonhello@google.com</email>
</author>
<published>2021-08-02T06:28:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/coreboot/vboot.git/commit/?id=51879dc24aea94851fc28ffc2f68cba1b58f3db8'/>
<id>51879dc24aea94851fc28ffc2f68cba1b58f3db8</id>
<content type='text'>
Since all flags are initialized as 0 in vb2api_init(),
some flag unset operations are not needed.

Edit few comments to make it more accurate.

BUG=none
TEST=export CC=x86_64-pc-linux-gnu-clang DEBUG=1; \
     make -j32 test_setup &amp;&amp; make -j32 runtests;
BRANCH=none

Signed-off-by: edisonhello &lt;edisonhello@google.com&gt;
Change-Id: I0129f43342598195800ff671b965100d3d568564
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3066803
Reviewed-by: Julius Werner &lt;jwerner@chromium.org&gt;
Reviewed-by: Yu-Ping Wu &lt;yupingso@chromium.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since all flags are initialized as 0 in vb2api_init(),
some flag unset operations are not needed.

Edit few comments to make it more accurate.

BUG=none
TEST=export CC=x86_64-pc-linux-gnu-clang DEBUG=1; \
     make -j32 test_setup &amp;&amp; make -j32 runtests;
BRANCH=none

Signed-off-by: edisonhello &lt;edisonhello@google.com&gt;
Change-Id: I0129f43342598195800ff671b965100d3d568564
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3066803
Reviewed-by: Julius Werner &lt;jwerner@chromium.org&gt;
Reviewed-by: Yu-Ping Wu &lt;yupingso@chromium.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>vboot/misc: Add validity check in vb2api_enable_developer_mode</title>
<updated>2021-08-12T08:13:12+00:00</updated>
<author>
<name>edisonhello</name>
<email>edisonhello@google.com</email>
</author>
<published>2021-07-28T07:03:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/coreboot/vboot.git/commit/?id=d8de9942e2fdfdf3f1792740cb5419163faff3ea'/>
<id>d8de9942e2fdfdf3f1792740cb5419163faff3ea</id>
<content type='text'>
Check vb2api_allow_recovery before actual changes in
vb2api_enable_developer_mode.

Add new API error type VB2_ERROR_API_ENABLE_DEV_NOT_ALLOWED in
vb2_error_t.

Add spaces in the output message of vb2_misc_tests for indentation.

BUG=b:172339016
TEST=export CC=x86_64-pc-linux-gnu-clang DEBUG=1 DETACHABLE=0; \
     make -j32 test_setup &amp;&amp; make -j32 runtests;
TEST=export CC=x86_64-pc-linux-gnu-clang DEBUG=1 DETACHABLE=1; \
     make -j32 test_setup &amp;&amp; make -j32 runtests;
TEST=Hayato booted into developer mode
BRANCH=none

Change-Id: Ifebdd01ca87cf944c394907eca73a09fc3bf5457
Signed-off-by: edisonhello &lt;edisonhello@google.com&gt;
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3056240
Reviewed-by: Julius Werner &lt;jwerner@chromium.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Check vb2api_allow_recovery before actual changes in
vb2api_enable_developer_mode.

Add new API error type VB2_ERROR_API_ENABLE_DEV_NOT_ALLOWED in
vb2_error_t.

Add spaces in the output message of vb2_misc_tests for indentation.

BUG=b:172339016
TEST=export CC=x86_64-pc-linux-gnu-clang DEBUG=1 DETACHABLE=0; \
     make -j32 test_setup &amp;&amp; make -j32 runtests;
TEST=export CC=x86_64-pc-linux-gnu-clang DEBUG=1 DETACHABLE=1; \
     make -j32 test_setup &amp;&amp; make -j32 runtests;
TEST=Hayato booted into developer mode
BRANCH=none

Change-Id: Ifebdd01ca87cf944c394907eca73a09fc3bf5457
Signed-off-by: edisonhello &lt;edisonhello@google.com&gt;
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3056240
Reviewed-by: Julius Werner &lt;jwerner@chromium.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>vboot/ui: Check allocated pointer before using the pointer</title>
<updated>2021-08-10T09:28:35+00:00</updated>
<author>
<name>edisonhello</name>
<email>edisonhello@google.com</email>
</author>
<published>2021-08-06T10:06:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/coreboot/vboot.git/commit/?id=302794156d6689d97eba7d7f6907498858d6b0ef'/>
<id>302794156d6689d97eba7d7f6907498858d6b0ef</id>
<content type='text'>
Change the order of checking whether the allocated pointer is null
and memset the allocated pointer. Prevent using a null pointer, which
may cause segmentation fault.

BUG=none
TEST=export CC=x86_64-pc-linux-gnu-clang DEBUG=1 \
     make -j32 test_setup &amp;&amp; make -j32 runtests;
TEST=emerge-asurada depthcharge
BRANCH=none

Signed-off-by: edisonhello &lt;edisonhello@google.com&gt;
Change-Id: I5fc91b5157b32b6b7263d580998eceb6efe9a63a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3077962
Reviewed-by: Yu-Ping Wu &lt;yupingso@chromium.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change the order of checking whether the allocated pointer is null
and memset the allocated pointer. Prevent using a null pointer, which
may cause segmentation fault.

BUG=none
TEST=export CC=x86_64-pc-linux-gnu-clang DEBUG=1 \
     make -j32 test_setup &amp;&amp; make -j32 runtests;
TEST=emerge-asurada depthcharge
BRANCH=none

Signed-off-by: edisonhello &lt;edisonhello@google.com&gt;
Change-Id: I5fc91b5157b32b6b7263d580998eceb6efe9a63a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3077962
Reviewed-by: Yu-Ping Wu &lt;yupingso@chromium.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>vboot/tests: Add test_fail function and TEST_FAIL macro</title>
<updated>2021-08-04T02:51:16+00:00</updated>
<author>
<name>edisonhello</name>
<email>edisonhello@google.com</email>
</author>
<published>2021-07-29T12:50:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/coreboot/vboot.git/commit/?id=3a1870160e12ccb0250fa2b56b2867aa9c02cfe8'/>
<id>3a1870160e12ccb0250fa2b56b2867aa9c02cfe8</id>
<content type='text'>
Add test_fail function that will check whether the result value is
not 0.

Add TEST_FAIL macro that will call test_fail.

BUG=none
TEST=export CC=x86_64-pc-linux-gnu-clang DEBUG=1; \
     make -j32 test_setup &amp;&amp; make -j32 runtests;
BRANCH=none

Change-Id: I4dfe6a887780f70fbcb753828cfb5500ed810b72
Signed-off-by: edisonhello &lt;edisonhello@google.com&gt;
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3060562
Reviewed-by: Yu-Ping Wu &lt;yupingso@chromium.org&gt;
Reviewed-by: Julius Werner &lt;jwerner@chromium.org&gt;
Commit-Queue: Yu-Ping Wu &lt;yupingso@chromium.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add test_fail function that will check whether the result value is
not 0.

Add TEST_FAIL macro that will call test_fail.

BUG=none
TEST=export CC=x86_64-pc-linux-gnu-clang DEBUG=1; \
     make -j32 test_setup &amp;&amp; make -j32 runtests;
BRANCH=none

Change-Id: I4dfe6a887780f70fbcb753828cfb5500ed810b72
Signed-off-by: edisonhello &lt;edisonhello@google.com&gt;
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3060562
Reviewed-by: Yu-Ping Wu &lt;yupingso@chromium.org&gt;
Reviewed-by: Julius Werner &lt;jwerner@chromium.org&gt;
Commit-Queue: Yu-Ping Wu &lt;yupingso@chromium.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>vboot: Publicize and create functions for UI migration</title>
<updated>2021-07-30T17:37:19+00:00</updated>
<author>
<name>edisonhello</name>
<email>edisonhello@google.com</email>
</author>
<published>2021-07-26T07:26:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/coreboot/vboot.git/commit/?id=c267a6908dcbffa8d683c25fc1ba87edf373acca'/>
<id>c267a6908dcbffa8d683c25fc1ba87edf373acca</id>
<content type='text'>
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 &amp;&amp; make -j32 runtests;
TEST=export CC=x86_64-pc-linux-gnu-clang DEBUG=1 DETACHABLE=1; \
     make -j32 test_setup &amp;&amp; make -j32 runtests;
TEST=Hayato booted into developer mode
BRANCH=none

Change-Id: I0211a63ed58ce862ee3e17b4835c675544f773a4
Signed-off-by: edisonhello &lt;edisonhello@google.com&gt;
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3053541
Reviewed-by: Yu-Ping Wu &lt;yupingso@chromium.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 &amp;&amp; make -j32 runtests;
TEST=export CC=x86_64-pc-linux-gnu-clang DEBUG=1 DETACHABLE=1; \
     make -j32 test_setup &amp;&amp; make -j32 runtests;
TEST=Hayato booted into developer mode
BRANCH=none

Change-Id: I0211a63ed58ce862ee3e17b4835c675544f773a4
Signed-off-by: edisonhello &lt;edisonhello@google.com&gt;
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3053541
Reviewed-by: Yu-Ping Wu &lt;yupingso@chromium.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>vboot: Add DEV_BOOT_*ALLOWED in ctx-&gt;flags</title>
<updated>2021-07-30T17:37:18+00:00</updated>
<author>
<name>edisonhello</name>
<email>edisonhello@google.com</email>
</author>
<published>2021-07-20T10:37:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/coreboot/vboot.git/commit/?id=6cebe52a33eba8bb82430a7ce5560c590aee99a0'/>
<id>6cebe52a33eba8bb82430a7ce5560c590aee99a0</id>
<content type='text'>
Add DEV_BOOT_ALLOWED, DEV_BOOT_ALTFW_ALLOWED,
DEV_BOOT_EXTERNAL_ALLOWED in ctx-&gt;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-&gt;flags.

Remove the parts of mocking these functions in unit tests, and set
ctx-&gt;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 &amp;&amp; make -j32 runtests;
TEST=export CC=x86_64-pc-linux-gnu-clang DEBUG=1 DETACHABLE=1; \
     make -j32 test_setup &amp;&amp; make -j32 runtests;
TEST=Hayato booted into developer mode
BRANCH=none

Signed-off-by: edisonhello &lt;edisonhello@google.com&gt;
Change-Id: Ida9f03557a92a1522d631fc04b281ce85f5049c7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3041498
Reviewed-by: Yu-Ping Wu &lt;yupingso@chromium.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add DEV_BOOT_ALLOWED, DEV_BOOT_ALTFW_ALLOWED,
DEV_BOOT_EXTERNAL_ALLOWED in ctx-&gt;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-&gt;flags.

Remove the parts of mocking these functions in unit tests, and set
ctx-&gt;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 &amp;&amp; make -j32 runtests;
TEST=export CC=x86_64-pc-linux-gnu-clang DEBUG=1 DETACHABLE=1; \
     make -j32 test_setup &amp;&amp; make -j32 runtests;
TEST=Hayato booted into developer mode
BRANCH=none

Signed-off-by: edisonhello &lt;edisonhello@google.com&gt;
Change-Id: Ida9f03557a92a1522d631fc04b281ce85f5049c7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3041498
Reviewed-by: Yu-Ping Wu &lt;yupingso@chromium.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>vboot: add new OWNERS</title>
<updated>2021-07-30T00:52:35+00:00</updated>
<author>
<name>Joel Kitching</name>
<email>kitching@google.com</email>
</author>
<published>2021-07-29T16:20:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/coreboot/vboot.git/commit/?id=f975ab651e5364f2c59bca496779754b081e44ce'/>
<id>f975ab651e5364f2c59bca496779754b081e44ce</id>
<content type='text'>
BUG=none
TEST=none
BRANCH=none

Signed-off-by: Joel Kitching &lt;kitching@google.com&gt;
Change-Id: I70f3de0edeeeabc31b97e4320e7ea420e8bdd2cb
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3060276
Tested-by: Joel Kitching &lt;kitching@chromium.org&gt;
Reviewed-by: Julius Werner &lt;jwerner@chromium.org&gt;
Reviewed-by: Furquan Shaikh &lt;furquan@chromium.org&gt;
Reviewed-by: Hung-Te Lin &lt;hungte@chromium.org&gt;
Commit-Queue: Julius Werner &lt;jwerner@chromium.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
BUG=none
TEST=none
BRANCH=none

Signed-off-by: Joel Kitching &lt;kitching@google.com&gt;
Change-Id: I70f3de0edeeeabc31b97e4320e7ea420e8bdd2cb
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3060276
Tested-by: Joel Kitching &lt;kitching@chromium.org&gt;
Reviewed-by: Julius Werner &lt;jwerner@chromium.org&gt;
Reviewed-by: Furquan Shaikh &lt;furquan@chromium.org&gt;
Reviewed-by: Hung-Te Lin &lt;hungte@chromium.org&gt;
Commit-Queue: Julius Werner &lt;jwerner@chromium.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>signer: Implement retry logic for signing Android image</title>
<updated>2021-07-29T06:36:19+00:00</updated>
<author>
<name>Yury Khmel</name>
<email>khmel@google.com</email>
</author>
<published>2021-07-27T21:34:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/coreboot/vboot.git/commit/?id=e49f0c7eb7b8f26acfe98be3f3df4c2682e7382a'/>
<id>e49f0c7eb7b8f26acfe98be3f3df4c2682e7382a</id>
<content type='text'>
This retries signing android image in case of integrity check failure.
The reason of failure is still unknown.

BUG=b:175081695
TEST=Locally image signing passed with adding temporary code that
     emulates random diff file error. Confirmed recovery happened
     and signing finished successfully.

BRANCH=none
Signed-off-by: Yury Khmel &lt;khmel@google.com&gt;
Change-Id: Iffc23145cae21f4f468b987d015f45fec95f29d0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3057193
Reviewed-by: Mike Frysinger &lt;vapier@chromium.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This retries signing android image in case of integrity check failure.
The reason of failure is still unknown.

BUG=b:175081695
TEST=Locally image signing passed with adding temporary code that
     emulates random diff file error. Confirmed recovery happened
     and signing finished successfully.

BRANCH=none
Signed-off-by: Yury Khmel &lt;khmel@google.com&gt;
Change-Id: Iffc23145cae21f4f468b987d015f45fec95f29d0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3057193
Reviewed-by: Mike Frysinger &lt;vapier@chromium.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>vboot: Add vb2api_set_locale_id</title>
<updated>2021-07-27T09:32:21+00:00</updated>
<author>
<name>edisonhello</name>
<email>edisonhello@google.com</email>
</author>
<published>2021-07-21T13:07:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/coreboot/vboot.git/commit/?id=0181eda805c613eccf98e4cf26ec213118898b52'/>
<id>0181eda805c613eccf98e4cf26ec213118898b52</id>
<content type='text'>
Add vb2api_set_locale_id to vboot2 API.

Replace the direct access to vb2_nv_get and vb2_nv_set in ui
functions with vb2api_get_locale_id and vb2api_set_locale_id.

BUG=b:172339016
TEST=export CC=x86_64-pc-linux-gnu-clang DEBUG=1 DIAGNOSTIC_UI=1 \
     MINIMAL=1; make -j32 test_setup &amp;&amp; make -j32 runtests;
TEST=Hayato booted into developer mode
BRANCH=none

Signed-off-by: edisonhello &lt;edisonhello@google.com&gt;
Change-Id: I5a92e571eceed6a402d0d80caa567bb9d77341a3
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3041506
Commit-Queue: Yu-Ping Wu &lt;yupingso@chromium.org&gt;
Reviewed-by: Yu-Ping Wu &lt;yupingso@chromium.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add vb2api_set_locale_id to vboot2 API.

Replace the direct access to vb2_nv_get and vb2_nv_set in ui
functions with vb2api_get_locale_id and vb2api_set_locale_id.

BUG=b:172339016
TEST=export CC=x86_64-pc-linux-gnu-clang DEBUG=1 DIAGNOSTIC_UI=1 \
     MINIMAL=1; make -j32 test_setup &amp;&amp; make -j32 runtests;
TEST=Hayato booted into developer mode
BRANCH=none

Signed-off-by: edisonhello &lt;edisonhello@google.com&gt;
Change-Id: I5a92e571eceed6a402d0d80caa567bb9d77341a3
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3041506
Commit-Queue: Yu-Ping Wu &lt;yupingso@chromium.org&gt;
Reviewed-by: Yu-Ping Wu &lt;yupingso@chromium.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>vboot/ui: Use vb2api_gbb_get_flags instead of vb2_get_gbb</title>
<updated>2021-07-27T09:32:20+00:00</updated>
<author>
<name>edisonhello</name>
<email>edisonhello@google.com</email>
</author>
<published>2021-07-21T06:45:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/coreboot/vboot.git/commit/?id=8fb3795bf355b8d33ed30b7aa9ad3be7804b4fb9'/>
<id>8fb3795bf355b8d33ed30b7aa9ad3be7804b4fb9</id>
<content type='text'>
Replace direct calls to vb2_get_gbb with vb2api_gbb_get_flags.

This is a preparation work for migrating ui codes from vboot to
depthcharge.

BUG=b:172339016
TEST=export CC=x86_64-pc-linux-gnu-clang DEBUG=1; \
     make -j32 test_setup &amp;&amp; make -j32 runtests;
TEST=Hayato booted into developer mode
BRANCH=none

Change-Id: I69b1504c236df1c0b656cb1e6e28a4066d9fad63
Signed-off-by: edisonhello &lt;edisonhello@google.com&gt;
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3041504
Commit-Queue: Yu-Ping Wu &lt;yupingso@chromium.org&gt;
Reviewed-by: Yu-Ping Wu &lt;yupingso@chromium.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Replace direct calls to vb2_get_gbb with vb2api_gbb_get_flags.

This is a preparation work for migrating ui codes from vboot to
depthcharge.

BUG=b:172339016
TEST=export CC=x86_64-pc-linux-gnu-clang DEBUG=1; \
     make -j32 test_setup &amp;&amp; make -j32 runtests;
TEST=Hayato booted into developer mode
BRANCH=none

Change-Id: I69b1504c236df1c0b656cb1e6e28a4066d9fad63
Signed-off-by: edisonhello &lt;edisonhello@google.com&gt;
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3041504
Commit-Queue: Yu-Ping Wu &lt;yupingso@chromium.org&gt;
Reviewed-by: Yu-Ping Wu &lt;yupingso@chromium.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
