Move flash_methods variable to __init__.py (#919)

This commit is contained in:
drebrez 2017-11-20 17:40:16 +01:00 committed by Oliver Smith
parent 0a231f0e0f
commit 0cca286aba
2 changed files with 5 additions and 4 deletions

View File

@ -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:

View File

@ -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 = [