Add 'flasher flash_lk2nd' command (MR 2089)

Many Qualcomm devices need this second bootloader for booting a mainline
kernel. Add an option to flash one if it exists.
This commit is contained in:
Ultracoolguy 2021-08-03 15:37:59 -04:00 committed by Oliver Smith
parent f4990cfc7a
commit 54afa35d70
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
5 changed files with 38 additions and 2 deletions

View file

@ -37,6 +37,7 @@ def symlinks(args, flavor, folder):
f"{args.device}-boot.img": "Boot partition image",
f"{args.device}-root.img": "Root partition image",
f"pmos-{args.device}.zip": "Android recovery flashable zip",
"lk2nd.img": "Secondary Android bootloader",
}
# Generate a list of patterns
@ -53,7 +54,8 @@ def symlinks(args, flavor, folder):
f"{path_native}/home/pmos/rootfs/{args.device}-boot.img",
f"{path_native}/home/pmos/rootfs/{args.device}-root.img",
f"{path_buildroot}/var/lib/postmarketos-android-recovery-" +
f"installer/pmos-{args.device}.zip"]
f"installer/pmos-{args.device}.zip",
f"{path_boot}/lk2nd.img"]
# Generate a list of files from the patterns
files = []