core: Arch: define supported arches as a set (MR 2474)

Rather than a list which we later convert to a set.

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
Caleb Connolly 2025-02-26 15:35:39 +00:00 committed by Oliver Smith
parent 8f0971eb92
commit 5a00964943
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -80,19 +80,16 @@ class Arch(enum.Enum):
specify architectures supported by Alpine here. For cross-compiling, specify architectures supported by Alpine here. For cross-compiling,
we need to generate the "musl-$ARCH" and "gcc-$ARCH" packages (use we need to generate the "musl-$ARCH" and "gcc-$ARCH" packages (use
"pmbootstrap aportgen musl-armhf" etc.).""" "pmbootstrap aportgen musl-armhf" etc.)."""
# FIXME: cache? return {
return set( Arch.armhf,
[ Arch.armv7,
Arch.armhf, Arch.aarch64,
Arch.armv7, Arch.x86_64,
Arch.aarch64, Arch.x86,
Arch.x86_64, Arch.riscv64,
Arch.x86, Arch.ppc64le,
Arch.riscv64, Arch.native(),
Arch.ppc64le, }
Arch.native(),
]
)
# FIXME: we should use pmaports.cfg "supported_arches" instead # FIXME: we should use pmaports.cfg "supported_arches" instead
@staticmethod @staticmethod