summaryrefslogtreecommitdiff
path: root/host
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2018-01-31 11:39:14 -0800
committerchrome-bot <chrome-bot@chromium.org>2018-02-06 18:18:35 -0800
commita4a8c02ad5988bd4b6fd85f6e09e9e0e79d18feb (patch)
treea1cc5fb4923c3d5a990fb486debc7cb2fe261f04 /host
parent3585eb3d21da676db3d87e9e0490a0df92d597d2 (diff)
downloadvboot-a4a8c02ad5988bd4b6fd85f6e09e9e0e79d18feb.tar.gz
cgpt: add support for managing GPT platform required partition bit
Bit 0 in the GPT partition attributes is defined to indicate whether a partition is required by the platform. This CL adds the support for managing this bit to cgpt. BUG=b:70807006 BRANCH=None TEST=Run unit tests. Change-Id: Iaf87c828438b3df6730de502ae420fcf4c61277b Reviewed-on: https://chromium-review.googlesource.com/902196 Commit-Ready: Ben Chan <benchan@chromium.org> Tested-by: Ben Chan <benchan@chromium.org> Reviewed-by: Mike Frysinger <vapier@chromium.org>
Diffstat (limited to 'host')
-rw-r--r--host/include/cgpt_params.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/host/include/cgpt_params.h b/host/include/cgpt_params.h
index 10fc7fed..431443b9 100644
--- a/host/include/cgpt_params.h
+++ b/host/include/cgpt_params.h
@@ -33,6 +33,7 @@ typedef struct CgptAddParams {
int successful;
int tries;
int priority;
+ int required;
int legacy_boot;
uint32_t raw_value;
int set_begin;
@@ -42,6 +43,7 @@ typedef struct CgptAddParams {
int set_successful;
int set_tries;
int set_priority;
+ int set_required;
int set_legacy_boot;
int set_raw;
} CgptAddParams;