Remove header version check for command "fastboot boot boot.img"
The header version argument is meant for creation of boot images using boot and flash:raw commands. It is unnecessary to specify the same while using the boot command with a complete boot image. Bug: 77920157 Test: fastboot boot boot.img Change-Id: Ia8fca4180e15906a3ae7c732496a744eb4b15e91 Merged-In: Ia8fca4180e15906a3ae7c732496a744eb4b15e91
This commit is contained in:
parent
22dc27b9fa
commit
d016ee4dbe
1 changed files with 0 additions and 6 deletions
|
@ -410,12 +410,6 @@ static void* load_bootable_image(const std::string& kernel, const std::string& r
|
|||
if (!g_cmdline.empty()) {
|
||||
bootimg_set_cmdline(reinterpret_cast<boot_img_hdr_v1*>(kdata), g_cmdline);
|
||||
}
|
||||
uint32_t header_version_existing =
|
||||
reinterpret_cast<boot_img_hdr_v1*>(kdata)->header_version;
|
||||
if (g_boot_img_hdr.header_version != header_version_existing) {
|
||||
die("header version mismatch, expected: %" PRIu32 " found %" PRIu32 "",
|
||||
g_boot_img_hdr.header_version, header_version_existing);
|
||||
}
|
||||
|
||||
if (!ramdisk.empty()) die("cannot boot a boot.img *and* ramdisk");
|
||||
|
||||
|
|
Loading…
Reference in a new issue