From 2634d376175d300c1c2572defe8c6d348ad61e20 Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Tue, 30 Oct 2018 13:46:01 -0500 Subject: systems/examples: add i686 & x86-64 embedded Fixes #28160 --- lib/systems/examples.nix | 10 ++++++++++ lib/systems/parse.nix | 2 ++ 2 files changed, 12 insertions(+) (limited to 'lib') diff --git a/lib/systems/examples.nix b/lib/systems/examples.nix index 2bfa9700ccd1..a40c38924245 100644 --- a/lib/systems/examples.nix +++ b/lib/systems/examples.nix @@ -118,6 +118,16 @@ rec { libc = "newlib"; }; + i686-embedded = { + config = "i686-elf"; + libc = "newlib"; + }; + + x86_64-embedded = { + config = "x86_64-elf"; + libc = "newlib"; + }; + # # Darwin # diff --git a/lib/systems/parse.nix b/lib/systems/parse.nix index a390a098c60f..db97a5c4b33b 100644 --- a/lib/systems/parse.nix +++ b/lib/systems/parse.nix @@ -267,6 +267,8 @@ rec { then { cpu = elemAt l 0; kernel = "windows"; abi = "cygnus"; } else if (elemAt l 1 == "eabi") then { cpu = elemAt l 0; vendor = "none"; kernel = "none"; abi = elemAt l 1; } + else if (elemAt l 1 == "elf") + then { cpu = elemAt l 0; vendor = "none"; kernel = "none"; abi = elemAt l 1; } else { cpu = elemAt l 0; kernel = elemAt l 1; }; "3" = # Awkwards hacks, beware! if elemAt l 1 == "apple" -- cgit 1.4.1