Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: src/platform/vboot_reference/include/kernel_utility.h

Issue 1088001: Add --describe flag to {firmware|kernel}_utility. (Closed)
Patch Set: Review fixes Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/platform/vboot_reference/include/kernel_utility.h
diff --git a/src/platform/vboot_reference/include/kernel_utility.h b/src/platform/vboot_reference/include/kernel_utility.h
index 1563278547be25bf55bc4f44224be33d1e3b4f7b..1cb7f1ae501a0749b36fba1e32855621c6f4d8d7 100644
--- a/src/platform/vboot_reference/include/kernel_utility.h
+++ b/src/platform/vboot_reference/include/kernel_utility.h
@@ -28,6 +28,9 @@ class KernelUtility {
// Return true on success, false on failure.
bool ParseCmdLineOptions(int argc, char* argv[]);
+ // Print description of a verified boot kernel image.
+ void DescribeSignedImage();
+
// Generate a verified boot image by reading kernel data from in_file_.
// Return true on success, false on failure.
bool GenerateSignedImage();
@@ -41,6 +44,7 @@ class KernelUtility {
bool is_generate() { return is_generate_; }
bool is_verify() { return is_verify_; }
+ bool is_describe() { return is_describe_; }
private:
@@ -67,6 +71,7 @@ class KernelUtility {
std::string out_file_;
bool is_generate_; // Are we generating a new image?
bool is_verify_; // Are we just verifying an already signed image?
+ bool is_describe_; // Should we print out description of the image?
};
} // namespace vboot_reference
« no previous file with comments | « src/platform/vboot_reference/include/kernel_image.h ('k') | src/platform/vboot_reference/tests/firmware_image_tests.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698