Merge pull request #65410 from jaykru/master
Add RISC-V embedded crossSystems
commit34919c38e3556ed1c42e5c3b004224cf263db886
authorJohn Ericson <git@JohnEricson.me>
dateFri 26 Jul 2019, 06:39 (7 years ago)
parent7a85636e931a52
lib/systems/doubles.nix+1−1
@@ -26,7 +26,7 @@ let
2626
2727 "riscv32-linux" "riscv64-linux"
2828
29− "aarch64-none" "avr-none" "arm-none" "i686-none" "x86_64-none" "powerpc-none" "msp430-none"
29+ "aarch64-none" "avr-none" "arm-none" "i686-none" "x86_64-none" "powerpc-none" "msp430-none" "riscv64-none" "riscv32-none"
3030 ];
3131
3232 allParsed = map parse.mkSystemFromString all;
lib/systems/examples.nix+12
@@ -97,6 +97,18 @@ rec {
9797 riscv64 = riscv "64";
9898 riscv32 = riscv "32";
9999
100+ riscv64-embedded = {
101+ config = "riscv64-none-elf";
102+ libc = "newlib";
103+ platform = platforms.riscv-multiplatform "64";
104+ };
105+
106+ riscv32-embedded = {
107+ config = "riscv32-none-elf";
108+ libc = "newlib";
109+ platform = platforms.riscv-multiplatform "32";
110+ };
111+
100112 msp430 = {
101113 config = "msp430-elf";
102114 libc = "newlib";