summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2015-09-22 09:09:27 -0700
committerchrome-bot <chrome-bot@chromium.org>2015-09-23 15:58:52 -0700
commit5b202a94f0ef30421c532b2aed963ac9f6f78521 (patch)
tree93e678132624b9e4ca2d704fd79e6ae501cc28ba
parent300ff7ffdcb9b55c4b8a1b000661d3fae48be74b (diff)
downloadvboot-5b202a94f0ef30421c532b2aed963ac9f6f78521.tar.gz
vboot: Move GPT entry operator functions to gpt_misc
This is to allow external entities using vboot library (e.g. depthcharge) to utilize these operator functions to perform get / set operations on GPT entry. BUG=chrome-os-partner:45670 BRANCH=None TEST=Compiles successfully "sudo emerge vboot_reference" "emerge-smaug vboot_reference". "make -j runtests" successful. Change-Id: I9e34a2a7afeae6293a78424794797d5755950888 Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://chromium-review.googlesource.com/301475 Commit-Ready: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r--firmware/include/gpt_misc.h9
-rw-r--r--firmware/lib/cgptlib/include/cgptlib_internal.h9
2 files changed, 9 insertions, 9 deletions
diff --git a/firmware/include/gpt_misc.h b/firmware/include/gpt_misc.h
index e5a366bb..49e13518 100644
--- a/firmware/include/gpt_misc.h
+++ b/firmware/include/gpt_misc.h
@@ -196,4 +196,13 @@ int GptUpdateKernelWithEntry(GptData *gpt, GptEntry *e, uint32_t update_type);
*/
int GptUpdateKernelEntry(GptData *gpt, uint32_t update_type);
+/* Getters and setters for partition attribute fields. */
+
+int GetEntrySuccessful(const GptEntry *e);
+int GetEntryPriority(const GptEntry *e);
+int GetEntryTries(const GptEntry *e);
+void SetEntrySuccessful(GptEntry *e, int successful);
+void SetEntryPriority(GptEntry *e, int priority);
+void SetEntryTries(GptEntry *e, int tries);
+
#endif /* VBOOT_REFERENCE_CGPT_MISC_H_ */
diff --git a/firmware/lib/cgptlib/include/cgptlib_internal.h b/firmware/lib/cgptlib/include/cgptlib_internal.h
index 50477c4f..b13c4916 100644
--- a/firmware/lib/cgptlib/include/cgptlib_internal.h
+++ b/firmware/lib/cgptlib/include/cgptlib_internal.h
@@ -138,15 +138,6 @@ void GptRepair(GptData *gpt);
*/
void GptModified(GptData *gpt);
-/* Getters and setters for partition attribute fields. */
-
-int GetEntrySuccessful(const GptEntry *e);
-int GetEntryPriority(const GptEntry *e);
-int GetEntryTries(const GptEntry *e);
-void SetEntrySuccessful(GptEntry *e, int successful);
-void SetEntryPriority(GptEntry *e, int priority);
-void SetEntryTries(GptEntry *e, int tries);
-
/**
* Return 1 if the entry is a Chrome OS kernel partition, else 0.
*/