diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2018-10-15 16:11:20 -0500 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2018-10-29 14:34:09 -0500 |
commit | 412093994b9a4fe0fa7da99d1947effc85d9070b (patch) | |
tree | 7be2219ecb1781b707672adf9274e6b5e11c1979 /lib | |
parent | 72e3b2a6629dbe12f184ed0156d9c34af271e158 (diff) | |
download | nixlib-412093994b9a4fe0fa7da99d1947effc85d9070b.tar nixlib-412093994b9a4fe0fa7da99d1947effc85d9070b.tar.gz nixlib-412093994b9a4fe0fa7da99d1947effc85d9070b.tar.bz2 nixlib-412093994b9a4fe0fa7da99d1947effc85d9070b.tar.lz nixlib-412093994b9a4fe0fa7da99d1947effc85d9070b.tar.xz nixlib-412093994b9a4fe0fa7da99d1947effc85d9070b.tar.zst nixlib-412093994b9a4fe0fa7da99d1947effc85d9070b.zip |
gcc: support avr
- respect libc’s incdir and libdir - make non-unix systems single threaded - set LIMITS_H_TEST to false for avr - misc updates to support new libc’s - use multilib with avr For threads we want to use: - posix on unix systems - win32 on windows - single on everything else For avr: - add library directories for avrlibc - to disable relro and bind - avr5 should have precedence over avr3 - otherwise gcc uses the wrong one
Diffstat (limited to 'lib')
-rw-r--r-- | lib/systems/examples.nix | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/lib/systems/examples.nix b/lib/systems/examples.nix index e19143543902..2bfa9700ccd1 100644 --- a/lib/systems/examples.nix +++ b/lib/systems/examples.nix @@ -99,9 +99,23 @@ rec { riscv64 = riscv "64"; riscv32 = riscv "32"; - arduino-uno = { + avr = { config = "avr"; - platform = { name = "avr5"; }; + }; + + arm-embedded = { + config = "arm-none-eabi"; + libc = "newlib"; + }; + + aarch64-embedded = { + config = "aarch64-none-elf"; + libc = "newlib"; + }; + + ppc-embedded = { + config = "powerpc-none-eabi"; + libc = "newlib"; }; # |