Merge "Remove header version check for command "fastboot boot boot.img"" am: b245377f0e

am: 72a1a812ad

Change-Id: Ia9604f30578452ee8058dab49aa6a9b147abe3dd
This commit is contained in:
Hridya Valsaraju 2018-04-17 12:12:29 -07:00 committed by android-build-merger
commit cc331a0198
1 changed files with 0 additions and 6 deletions

View File

@ -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");