pmbootstrap flasher: add flash_dtbo (MR 2099)

This commit is contained in:
afeuerstein 2021-08-27 18:35:46 +02:00 committed by Oliver Smith
parent 468d313790
commit 2d3cfbcbb4
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
7 changed files with 43 additions and 1 deletions

View file

@ -673,6 +673,14 @@ def print_flash_info(args):
logging.info("* pmbootstrap flasher flash_vbmeta")
logging.info(" Flashes vbmeta image with verification disabled flag.")
# if current flasher supports dtbo and partition is explicitly specified
# in deviceinfo
if "flash_dtbo" in flasher_actions and \
(args.deviceinfo["flash_fastboot_partition_dtbo"] or
args.deviceinfo["flash_heimdall_partition_dtbo"]):
logging.info("* pmbootstrap flasher flash_dtbo")
logging.info(" Flashes dtbo image.")
# Most flash methods operate independently of the boot partition.
# (e.g. an Android boot image is generated). In that case, "flash_kernel"
# works even when partitions are split or installing for sdcard.