diff options
author | Hridya Valsaraju <hridya@google.com> | 2018-03-30 16:15:33 -0700 |
---|---|---|
committer | Hridya Valsaraju <hridya@google.com> | 2018-04-02 16:00:59 -0700 |
commit | 7d824136ae39c021bfd8ef9dc0705c1bd1df2d63 (patch) | |
tree | e0e043cd2c420e32f42fea42b8b1e642fe9f5894 /fastboot/bootimg_utils.h | |
parent | a5bf7bad2cd38bb5139ff35e58494b8ee24853c8 (diff) | |
download | system_core-7d824136ae39c021bfd8ef9dc0705c1bd1df2d63.tar.gz system_core-7d824136ae39c021bfd8ef9dc0705c1bd1df2d63.tar.bz2 system_core-7d824136ae39c021bfd8ef9dc0705c1bd1df2d63.zip |
Add a header-version argument to fastboot
The argument would set the boot header
version for flash:raw and boot
commands when they are used for boot
image creation.
Bug: 77154616
Test: Dumped the created boot image and checked
the header version using unpack_bootimg
Change-Id: I2c458996817615f4351db102b4234984108d47c0
Merged-In: I2c458996817615f4351db102b4234984108d47c0
(cherry picked from commit 88de5556eccdc378084b037413bbece01ddee52d)
Diffstat (limited to 'fastboot/bootimg_utils.h')
-rw-r--r-- | fastboot/bootimg_utils.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/fastboot/bootimg_utils.h b/fastboot/bootimg_utils.h index fcc866297..d3993f5c8 100644 --- a/fastboot/bootimg_utils.h +++ b/fastboot/bootimg_utils.h @@ -33,11 +33,10 @@ #include <inttypes.h> #include <sys/types.h> -void bootimg_set_cmdline(boot_img_hdr* h, const char* cmdline); -boot_img_hdr* mkbootimg(void* kernel, int64_t kernel_size, off_t kernel_offset, - void* ramdisk, int64_t ramdisk_size, off_t ramdisk_offset, - void* second, int64_t second_size, off_t second_offset, - size_t page_size, size_t base, off_t tags_offset, - int64_t* bootimg_size); +void bootimg_set_cmdline(boot_img_hdr_v1* h, const char* cmdline); +boot_img_hdr_v1* mkbootimg(void* kernel, int64_t kernel_size, off_t kernel_offset, void* ramdisk, + int64_t ramdisk_size, off_t ramdisk_offset, void* second, + int64_t second_size, off_t second_offset, size_t page_size, size_t base, + off_t tags_offset, uint32_t header_version, int64_t* bootimg_size); #endif |