From 216b3ef267733e3f6f8a4e4a20c3fb52acf3fb06 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Wed, 2 Aug 2023 19:21:52 +0200 Subject: [PATCH] pmb.aportgen.device: modernize defaults Change the defaults in the new device port wizard: * arch: armv7 -> aarch64 New devices are more likely to be aarch64. * flash method: 0xffff -> none The only device that uses 0xffff is the N900, it's extremely unlikely that it will get used for a new port. Use the neutral "none" instead. Reviewed-by: Luca Weiss Reviewed-by: Clayton Craft Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230802172542.4861-2-ollieparanoid@postmarketos.org%3E --- pmb/aportgen/device.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pmb/aportgen/device.py b/pmb/aportgen/device.py index e296ac41..b068f331 100644 --- a/pmb/aportgen/device.py +++ b/pmb/aportgen/device.py @@ -16,7 +16,7 @@ def ask_for_architecture(): architectures.remove("armhf") while True: ret = pmb.helpers.cli.ask("Device architecture", architectures, - architectures[0], complete=architectures) + "aarch64", complete=architectures) if ret in architectures: return ret logging.fatal("ERROR: Invalid architecture specified. If you want to" @@ -73,7 +73,7 @@ def ask_for_flash_method(): logging.info("Which flash method does the device support?") method = pmb.helpers.cli.ask("Flash method", pmb.config.flash_methods, - pmb.config.flash_methods[0], + "none", complete=pmb.config.flash_methods) if method in pmb.config.flash_methods: