pmbootstrap flasher flash_kernel --partition (!1741)

Allow changing the kernel partition for fastboot and heimdall in
deviceinfo and on the fly while doing "pmbootstrap flasher
flash_kernel". Also allow changing the partition for
"... flash_rootfs" with fastboot (this was only possible with
heimdall so far).

Introduce two new deviceinfo variables:
* flash_fastboot_partition_kernel
* flash_fastboot_partition_system

This is useful for devices with dual partitioning that have boot_a
and boot_b.
This commit is contained in:
Ion Agorria 2019-01-18 20:01:03 +01:00 committed by Oliver Smith
parent 712dd4e20e
commit 39b3a489ef
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
3 changed files with 18 additions and 6 deletions

View file

@ -67,6 +67,9 @@ def arguments_flasher(subparser):
flash_kernel = sub.add_parser("flash_kernel", help="flash a kernel")
for action in [boot, flash_kernel]:
action.add_argument("--flavor", default=None)
flash_kernel.add_argument("--partition", default=None,
help="partition to flash the kernel to (defaults"
" to deviceinfo_flash_*_partition_kernel)")
# Flash rootfs
flash_rootfs = sub.add_parser("flash_rootfs", aliases=["flash_system"],
@ -74,8 +77,9 @@ def arguments_flasher(subparser):
" device (partition layout does not get"
" changed)")
flash_rootfs.add_argument("--partition", default=None,
help="partition to flash to (Android: default"
" is 'system', but 'userdata' may have more"
help="partition to flash the rootfs to (defaults"
" to deviceinfo_flash_*_partition_system,"
" 'userdata' on Android may have more"
" space)")
# Actions without extra arguments