diff options
author | WANG Xuerui <xen0n@gentoo.org> | 2023-05-31 15:38:56 +0800 |
---|---|---|
committer | WANG Xuerui <xen0n@gentoo.org> | 2023-07-20 17:48:26 +0800 |
commit | 35c325dde79c4383fe1f7dce7e607c064d8b84ee (patch) | |
tree | 1af19c7eff529547bd24d08b8047cfac11f89a44 /eclass | |
parent | rust-toolchain.eclass: add support for mips64el platforms (diff) | |
download | gentoo-35c325dde79c4383fe1f7dce7e607c064d8b84ee.tar.gz gentoo-35c325dde79c4383fe1f7dce7e607c064d8b84ee.tar.bz2 gentoo-35c325dde79c4383fe1f7dce7e607c064d8b84ee.zip |
rust-toolchain.eclass: qualify applicable rust_arch_uris with ABI and endianness
For less downloading client-side, as it is likely that only one package
in each covered group would work on a given system.
See: https://github.com/gentoo/gentoo/pull/31241
Signed-off-by: WANG Xuerui <xen0n@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/rust-toolchain.eclass | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/eclass/rust-toolchain.eclass b/eclass/rust-toolchain.eclass index c9c0886009a2..0dcafdf9b335 100644 --- a/eclass/rust-toolchain.eclass +++ b/eclass/rust-toolchain.eclass @@ -122,15 +122,19 @@ rust_all_arch_uris() elibc_musl? ( $(rust_arch_uri aarch64-unknown-linux-musl "$@") ) ) mips? ( - $(rust_arch_uri mips-unknown-linux-gnu "$@") - $(rust_arch_uri mipsel-unknown-linux-gnu "$@") - $(rust_arch_uri mips64-unknown-linux-gnuabi64 "$@") - $(rust_arch_uri mips64el-unknown-linux-gnuabi64 "$@") + abi_mips_o32? ( + big-endian? ( $(rust_arch_uri mips-unknown-linux-gnu "$@") ) + !big-endian? ( $(rust_arch_uri mipsel-unknown-linux-gnu "$@") ) + ) + abi_mips_n64? ( + big-endian? ( $(rust_arch_uri mips64-unknown-linux-gnuabi64 "$@") ) + !big-endian? ( $(rust_arch_uri mips64el-unknown-linux-gnuabi64 "$@") ) + ) ) ppc? ( $(rust_arch_uri powerpc-unknown-linux-gnu "$@") ) ppc64? ( - $(rust_arch_uri powerpc64-unknown-linux-gnu "$@") - $(rust_arch_uri powerpc64le-unknown-linux-gnu "$@") + big-endian? ( $(rust_arch_uri powerpc64-unknown-linux-gnu "$@") ) + !big-endian? ( $(rust_arch_uri powerpc64le-unknown-linux-gnu "$@") ) ) riscv? ( $(rust_arch_uri riscv64gc-unknown-linux-gnu "$@") ) s390? ( $(rust_arch_uri s390x-unknown-linux-gnu "$@") ) |