forked from Mirror/pmbootstrap
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:
parent
8f0971eb92
commit
5a00964943
1 changed files with 10 additions and 13 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue