3
0
Fork 0
forked from mirrors/nixpkgs

Add riscv{32,64} crossSystems.

This commit is contained in:
Shea Levy 2018-02-18 00:09:25 -05:00
parent 5be93a5883
commit e288febee0
No known key found for this signature in database
GPG key ID: 5C0BD6957D86FE27
2 changed files with 14 additions and 0 deletions

View file

@ -68,6 +68,14 @@ rec {
musl64 = { config = "x86_64-unknown-linux-musl"; };
musl32 = { config = "i686-unknown-linux-musl"; };
riscv = bits: {
config = "riscv${bits}-unknown-linux-gnu";
platform = platforms.riscv-multiplatform bits;
};
riscv64 = riscv "64";
riscv32 = riscv "32";
#
# Darwin
#

View file

@ -541,6 +541,12 @@ rec {
};
};
riscv-multiplatform = bits: {
name = "riscv-multiplatform";
kernelArch = "riscv";
bfdEmulation = "elf${bits}lriscv";
};
selectBySystem = system: {
"i686-linux" = pc32;
"x86_64-linux" = pc64;