forked from Mirror/pmbootstrap
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>
10 lines
480 B
Python
10 lines
480 B
Python
# Copyright 2023 Oliver Smith
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
from pmb.parse.arguments import arguments, arguments_install, arguments_flasher, get_parser
|
|
from pmb.parse._apkbuild import apkbuild
|
|
from pmb.parse._apkbuild import function_body
|
|
from pmb.parse.binfmt_info import binfmt_info
|
|
from pmb.parse.deviceinfo import deviceinfo
|
|
from pmb.parse.kconfig import check
|
|
from pmb.parse.bootimg import bootimg
|
|
from pmb.parse.cpuinfo import arm_big_little_first_group_ncpus
|