Close #929: Add flash method "none" (#934)

This commit is contained in:
drebrez 2017-11-25 03:57:58 +01:00 committed by Oliver Smith
parent 6a7a01b613
commit 948f4ef224
2 changed files with 7 additions and 1 deletions

View File

@ -269,7 +269,7 @@ install_device_packages = [
# FLASH
#
flash_methods = ["fastboot", "heimdall", "0xffff"]
flash_methods = ["fastboot", "heimdall", "0xffff", "none"]
# These folders will be mounted at the same location into the native
# chroot, before the flash programs get started.

View File

@ -112,6 +112,12 @@ def sideload(args):
def frontend(args):
action = args.action_flasher
method = args.flash_method or args.deviceinfo["flash_methods"]
if method == "none" and action in ["boot", "flash_kernel", "flash_system"]:
logging.info("This device doesn't support any flash method.")
return
if action in ["boot", "flash_kernel"]:
kernel(args)
if action == "flash_system":