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 <luca@z3ntu.xyz> Reviewed-by: Clayton Craft <clayton@craftyguy.net> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230802172542.4861-2-ollieparanoid@postmarketos.org%3E
This commit is contained in:
parent
b721b08e19
commit
216b3ef267
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue