forked from Mirror/pmbootstrap
pmbootstrap flasher: add flash_dtbo (MR 2099)
This commit is contained in:
parent
468d313790
commit
2d3cfbcbb4
7 changed files with 43 additions and 1 deletions
|
@ -42,6 +42,15 @@ def run(args, action, flavor=None):
|
|||
" <https://wiki.postmarketos.org/wiki/"
|
||||
"Deviceinfo_reference>")
|
||||
|
||||
# dtbo flasher requires dtbo partition to be explicitly specified
|
||||
if action == "flash_dtbo" and not vars["$PARTITION_DTBO"]:
|
||||
raise RuntimeError("Your device does not have 'dtbo' partition"
|
||||
" specified; set"
|
||||
" 'deviceinfo_flash_fastboot_partition_dtbo'"
|
||||
" in deviceinfo file. See also:"
|
||||
" <https://wiki.postmarketos.org/wiki/"
|
||||
"Deviceinfo_reference>")
|
||||
|
||||
# Run the commands of each action
|
||||
for command in cfg["actions"][action]:
|
||||
# Variable replacement
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue