Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef VBOOT_REFERENCE_KERNEL_UTILITY_H_ | 5 #ifndef VBOOT_REFERENCE_KERNEL_UTILITY_H_ |
| 6 #define VBOOT_REFERENCE_KERNEL_UTILITY_H_ | 6 #define VBOOT_REFERENCE_KERNEL_UTILITY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 extern "C" { | 10 extern "C" { |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 63 // KernelImage (from vkernel/kernel_image_fw.h). Ideally we'd like to have | 63 // KernelImage (from vkernel/kernel_image_fw.h). Ideally we'd like to have |
| 64 // a well defined config file format which is also backwards compatible with | 64 // a well defined config file format which is also backwards compatible with |
| 65 // Legacy BIOS boot loaders. | 65 // Legacy BIOS boot loaders. |
| 66 | 66 |
| 67 // Fields of a KernelImage. (read from the command line). | 67 // Fields of a KernelImage. (read from the command line). |
| 68 int header_version_; | 68 int header_version_; |
| 69 int firmware_sign_algorithm_; | 69 int firmware_sign_algorithm_; |
| 70 int kernel_sign_algorithm_; | 70 int kernel_sign_algorithm_; |
| 71 int kernel_key_version_; | 71 int kernel_key_version_; |
| 72 int kernel_version_; | 72 int kernel_version_; |
| 73 kconfig_options options_; | 73 uint64_t kernel_len_; |
|
Bill Richardson
2010/04/29 18:14:44
No objection, but I kind of doubt that the kernel
| |
| 74 uint8_t* cmd_line_; | 74 uint8_t* kernel_config_; |
| 75 | 75 |
| 76 std::string in_file_; | 76 std::string in_file_; |
| 77 std::string out_file_; | 77 std::string out_file_; |
| 78 bool is_generate_; // Are we generating a new image? | 78 bool is_generate_; // Are we generating a new image? |
| 79 bool is_verify_; // Are we just verifying an already signed image? | 79 bool is_verify_; // Are we just verifying an already signed image? |
| 80 bool is_describe_; // Should we print out description of the image? | 80 bool is_describe_; // Should we print out description of the image? |
| 81 bool is_only_vblock_; // Show we just output the verification block? | 81 bool is_only_vblock_; // Show we just output the verification block? |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 } // namespace vboot_reference | 84 } // namespace vboot_reference |
| 85 | 85 |
| 86 #endif // VBOOT_REFERENCE_FIRMWARE_UTILITY_H_ | 86 #endif // VBOOT_REFERENCE_FIRMWARE_UTILITY_H_ |
| OLD | NEW |