pmb/parse/bootimg.py: fix file names after mkbootimg-osm0sis update (MR 1959)
This commit is contained in:
parent
324ea788ba
commit
4312160c96
|
@ -56,13 +56,13 @@ def bootimg(args, path):
|
||||||
# Get base, offsets, pagesize, cmdline and qcdt info
|
# Get base, offsets, pagesize, cmdline and qcdt info
|
||||||
with open(bootimg_path + "-base", 'r') as f:
|
with open(bootimg_path + "-base", 'r') as f:
|
||||||
output["base"] = ("0x%08x" % int(f.read().replace('\n', ''), 16))
|
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))
|
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))
|
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))
|
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))
|
output["tags_offset"] = ("0x%08x" % int(f.read().replace('\n', ''), 16))
|
||||||
with open(bootimg_path + "-pagesize", 'r') as f:
|
with open(bootimg_path + "-pagesize", 'r') as f:
|
||||||
output["pagesize"] = f.read().replace('\n', '')
|
output["pagesize"] = f.read().replace('\n', '')
|
||||||
|
|
Loading…
Reference in New Issue