diff options
author | Jay Kruer <jay.kruer@sifive.com> | 2019-07-25 16:31:35 -0700 |
---|---|---|
committer | Jay Kruer <jay.kruer@sifive.com> | 2019-07-25 21:45:11 -0700 |
commit | e931a525f974c5b038889b5cae3c1b07e9bc6663 (patch) | |
tree | 856cacd33fe816d68d875e9c278104853421b473 /lib/systems | |
parent | fd2b2b5cd56a5be788fa88dcd9605a3a5bb5ecc7 (diff) |
Add RISC-V embedded crossSystems
Diffstat (limited to 'lib/systems')
-rw-r--r-- | lib/systems/doubles.nix | 2 | ||||
-rw-r--r-- | lib/systems/examples.nix | 12 |
2 files changed, 13 insertions, 1 deletions
diff --git a/lib/systems/doubles.nix b/lib/systems/doubles.nix index f096a0b17fc63..823f6a915d6e7 100644 --- a/lib/systems/doubles.nix +++ b/lib/systems/doubles.nix @@ -26,7 +26,7 @@ let "riscv32-linux" "riscv64-linux" - "aarch64-none" "avr-none" "arm-none" "i686-none" "x86_64-none" "powerpc-none" "msp430-none" + "aarch64-none" "avr-none" "arm-none" "i686-none" "x86_64-none" "powerpc-none" "msp430-none" "riscv64-none" "riscv32-none" ]; allParsed = map parse.mkSystemFromString all; diff --git a/lib/systems/examples.nix b/lib/systems/examples.nix index d17af9fcc1488..aa55438de082e 100644 --- a/lib/systems/examples.nix +++ b/lib/systems/examples.nix @@ -97,6 +97,18 @@ rec { riscv64 = riscv "64"; riscv32 = riscv "32"; + riscv64-embedded = { + config = "riscv64-none-elf"; + libc = "newlib"; + platform = platforms.riscv-multiplatform "64"; + }; + + riscv32-embedded = { + config = "riscv32-none-elf"; + libc = "newlib"; + platform = platforms.riscv-multiplatform "32"; + }; + msp430 = { config = "msp430-elf"; libc = "newlib"; |