From 412093994b9a4fe0fa7da99d1947effc85d9070b Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Mon, 15 Oct 2018 16:11:20 -0500 Subject: gcc: support avr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- lib/systems/examples.nix | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/systems/examples.nix b/lib/systems/examples.nix index e191435439024..2bfa9700ccd19 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"; }; # -- cgit 1.4.1