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

Unified Diff: src/platform/vboot_reference/vkernel/include/kernel_image.h

Issue 2283005: Modifying the kernel_utility tool to create our magic blob. (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: respond to feedback Created 10 years, 7 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/vkernel/include/kernel_image.h
diff --git a/src/platform/vboot_reference/vkernel/include/kernel_image.h b/src/platform/vboot_reference/vkernel/include/kernel_image.h
index 3fcdcf8bc55f54bd9feeb527447aad7438409bde..58e1b1ac9923d101afcdda40894ef269fe8dcc1a 100644
--- a/src/platform/vboot_reference/vkernel/include/kernel_image.h
+++ b/src/platform/vboot_reference/vkernel/include/kernel_image.h
@@ -63,6 +63,18 @@ int WriteKernelImage(const char* input_file,
const KernelImage* image,
int is_only_vblock);
+/* Create a kernel_data blob from its components and fill
+ * its length into blob_len, plus some information about the bootloader.
+ *
+ * Caller owns the returned pointer and must Free() it.
+ */
+uint8_t* GenerateKernelBlob(const char* vmlinuz_file,
+ const char* config_file,
+ const char* bootloader_file,
+ uint64_t* blob_len,
+ uint64_t* bootloader_offset,
+ uint64_t* bootloader_size);
+
/* Pretty print the contents of [image]. Only headers and metadata information
* is printed.
*/

Powered by Google App Engine
This is Rietveld 408576698