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,9 +80,7 @@ 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.armhf,
Arch.armv7, Arch.armv7,
Arch.aarch64, Arch.aarch64,
@ -91,8 +89,7 @@ class Arch(enum.Enum):
Arch.riscv64, Arch.riscv64,
Arch.ppc64le, Arch.ppc64le,
Arch.native(), Arch.native(),
] }
)
# FIXME: we should use pmaports.cfg "supported_arches" instead # FIXME: we should use pmaports.cfg "supported_arches" instead
@staticmethod @staticmethod