12371a51e6
MIPS has a large space of {architecture,abi,endianness}; this commit adds all of them to lib/systems/platforms.nix so we can be done with it. Currently lib/systems/inspect.nix has a single "isMips" predicate, which is a bit ambiguous now that we will have both mips32 and mips64 support, with the latter having two ABIs. Let's add four new predicates (isMips32, isMips64, isMips64n32, and isMips64n64) and treat the now-ambiguous isMips as deprecated in favor of the more-specific predicates. These predicates are used mainly for enabling/disabling target-specific workarounds, and it is extremely rare that a platform-specific workaround is needed, and both mips32 and mips64 need exactly the same workaround. The separate predicates (isMips64n32 and isMips64n64) for ABI distinctions are, unfortunately, useful. Boost's user-scheduled threading (used by nix) does does not currently supports mips64n32, which is a very desirable ABI on routers since they rarely have more than 2**32 bytes of DRAM.
26 lines
821 B
Nix
26 lines
821 B
Nix
{system ? builtins.currentSystem}:
|
|
|
|
let
|
|
make = crossSystem: import ./make-bootstrap-tools.nix {
|
|
localSystem = { inherit system; };
|
|
inherit crossSystem;
|
|
};
|
|
lib = import ../../../lib;
|
|
in lib.mapAttrs (n: make) (with lib.systems.examples; {
|
|
armv5tel = sheevaplug;
|
|
scaleway = scaleway-c1;
|
|
pogoplug4 = pogoplug4;
|
|
armv6l = raspberryPi;
|
|
armv7l = armv7l-hf-multiplatform;
|
|
aarch64 = aarch64-multiplatform;
|
|
x86_64-musl = musl64;
|
|
armv6l-musl = muslpi;
|
|
aarch64-musl = aarch64-multiplatform-musl;
|
|
riscv64 = riscv64;
|
|
mips64el-linux-gnuabin32 = lib.systems.platforms.mips64el-linux-gnuabin32;
|
|
mips64el-linux-gnuabi64 = lib.systems.platforms.mips64el-linux-gnuabi64;
|
|
powerpc64 = ppc64;
|
|
powerpc64-musl = ppc64-musl;
|
|
powerpc64le = powernv;
|
|
powerpc64le-musl = musl-power;
|
|
})
|