Move flash_methods variable to __init__.py (#919)
This commit is contained in:
parent
0a231f0e0f
commit
0cca286aba
|
@ -56,13 +56,12 @@ def ask_for_external_storage(args):
|
|||
|
||||
|
||||
def ask_for_flash_method(args):
|
||||
flash_methods = ["fastboot", "heimdall", "0xffff"]
|
||||
while True:
|
||||
logging.info("Which flash method does the device support?")
|
||||
method = pmb.helpers.cli.ask(args, "Flash method", flash_methods,
|
||||
flash_methods[0])
|
||||
method = pmb.helpers.cli.ask(args, "Flash method", pmb.config.flash_methods,
|
||||
pmb.config.flash_methods[0])
|
||||
|
||||
if method in flash_methods:
|
||||
if method in pmb.config.flash_methods:
|
||||
if method == "heimdall":
|
||||
heimdall_types = ["isorec", "bootimg"]
|
||||
while True:
|
||||
|
|
|
@ -269,6 +269,8 @@ install_device_packages = [
|
|||
# FLASH
|
||||
#
|
||||
|
||||
flash_methods = ["fastboot", "heimdall", "0xffff"]
|
||||
|
||||
# These folders will be mounted at the same location into the native
|
||||
# chroot, before the flash programs get started.
|
||||
flash_mount_bind = [
|
||||
|
|
Loading…
Reference in New Issue