pmbootstrap-meow/pmb/parse
Caleb Connolly 866e5bcfab
core: add an Arch type (MR 2252)
Move pmb/parse/arch.py over to core and refactor it as an Arch type,
similar to how Chroot was done. Fix all the uses (that I can find) of
arch in the codebase that need adjusting.

The new Arch type is an Enum, making it clear what architectures can be
represented and making it much easier to reason about. Since we support
~5 (kinda) different representations of an Architecture (Alpine, Kernel,
target triple, platform, and QEMU), we now formalise that the Alpine
format is what we represent internally, with methods to convert to any
of the others as-needed.

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
2024-06-23 12:38:39 +02:00
..
__init__.py core: add an Arch type (MR 2252) 2024-06-23 12:38:39 +02:00
_apkbuild.py WIP: 2024-06-05: args hacking and more (MR 2252) 2024-06-23 12:38:38 +02:00
apkindex.py parse: apkindex: fix cache keys (MR 2252) 2024-06-23 12:38:39 +02:00
arguments.py core: add an Arch type (MR 2252) 2024-06-23 12:38:39 +02:00
binfmt_info.py treewide: adopt pathlib.Path and type hinting (MR 2252) 2024-06-23 12:38:37 +02:00
bootimg.py WIP: 2024-06-05: args hacking and more (MR 2252) 2024-06-23 12:38:38 +02:00
cpuinfo.py treewide: adopt pathlib.Path and type hinting (MR 2252) 2024-06-23 12:38:37 +02:00
depends.py core: add an Arch type (MR 2252) 2024-06-23 12:38:39 +02:00
deviceinfo.py core: add an Arch type (MR 2252) 2024-06-23 12:38:39 +02:00
kconfig.py WIP: 2024-06-05: args hacking and more (MR 2252) 2024-06-23 12:38:38 +02:00
version.py treewide: adopt pathlib.Path and type hinting (MR 2252) 2024-06-23 12:38:37 +02:00