From 4312160c965e1df253ce08599b842a402cb98946 Mon Sep 17 00:00:00 2001 From: Mark Hargreaves Date: Fri, 10 Jul 2020 22:53:00 +0300 Subject: [PATCH] pmb/parse/bootimg.py: fix file names after mkbootimg-osm0sis update (MR 1959) --- pmb/parse/bootimg.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pmb/parse/bootimg.py b/pmb/parse/bootimg.py index 35dbd821..7830ddaf 100644 --- a/pmb/parse/bootimg.py +++ b/pmb/parse/bootimg.py @@ -56,13 +56,13 @@ def bootimg(args, path): # Get base, offsets, pagesize, cmdline and qcdt info with open(bootimg_path + "-base", 'r') as f: output["base"] = ("0x%08x" % int(f.read().replace('\n', ''), 16)) - with open(bootimg_path + "-kerneloff", 'r') as f: + with open(bootimg_path + "-kernel_offset", 'r') as f: output["kernel_offset"] = ("0x%08x" % int(f.read().replace('\n', ''), 16)) - with open(bootimg_path + "-ramdiskoff", 'r') as f: + with open(bootimg_path + "-ramdisk_offset", 'r') as f: output["ramdisk_offset"] = ("0x%08x" % int(f.read().replace('\n', ''), 16)) - with open(bootimg_path + "-secondoff", 'r') as f: + with open(bootimg_path + "-second_offset", 'r') as f: output["second_offset"] = ("0x%08x" % int(f.read().replace('\n', ''), 16)) - with open(bootimg_path + "-tagsoff", 'r') as f: + with open(bootimg_path + "-tags_offset", 'r') as f: output["tags_offset"] = ("0x%08x" % int(f.read().replace('\n', ''), 16)) with open(bootimg_path + "-pagesize", 'r') as f: output["pagesize"] = f.read().replace('\n', '')