Fix detection of qcdt boot images (!1826)

mkbootimg from osm0sis changed the filename of the dtb section in [1]
which breaks the detection of qcdt in pmbootstrap.

Fix this by adjusting the filename pmbootstrap checks to match the
unpackbootimg behavior.

[1] https://github.com/osm0sis/mkbootimg/commit/d8222a4d
This commit is contained in:
Luca Weiss 2019-10-14 22:49:02 +02:00 committed by Oliver Smith
parent 8881b0489f
commit 8a5c8fcc3e
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 2 additions and 2 deletions

View File

@ -75,8 +75,8 @@ def bootimg(args, path):
output["pagesize"] = f.read().replace('\n', '')
with open(bootimg_path + "-cmdline", 'r') as f:
output["cmdline"] = f.read().replace('\n', '')
output["qcdt"] = ("true" if os.path.isfile(bootimg_path + "-dtb") and
os.path.getsize(bootimg_path + "-dtb") > 0 else "false")
output["qcdt"] = ("true" if os.path.isfile(bootimg_path + "-dt") and
os.path.getsize(bootimg_path + "-dt") > 0 else "false")
# Cleanup
pmb.chroot.root(args, ["rm", "-r", temp_path])