From 57ec4f3128e381b500234a6b79e58c30ee27ccac Mon Sep 17 00:00:00 2001 From: Ross Smyth <18294397+RossSmyth@users.noreply.github.com> Date: Thu, 20 Mar 2025 16:10:00 -0400 Subject: [PATCH] lib.systems: Add arm-embedded-nano Newlib-nano variant of the arm-embedded stdenv. --- lib/systems/examples.nix | 4 ++++ pkgs/top-level/release-cross.nix | 1 + 2 files changed, 5 insertions(+) diff --git a/lib/systems/examples.nix b/lib/systems/examples.nix index 223de50f67dd..1dd0f5950772 100644 --- a/lib/systems/examples.nix +++ b/lib/systems/examples.nix @@ -193,6 +193,10 @@ rec { config = "arm-none-eabi"; libc = "newlib"; }; + arm-embedded-nano = { + config = "arm-none-eabi"; + libc = "newlib-nano"; + }; armhf-embedded = { config = "arm-none-eabihf"; libc = "newlib"; diff --git a/pkgs/top-level/release-cross.nix b/pkgs/top-level/release-cross.nix index ded7924f146f..f4906de82f0a 100644 --- a/pkgs/top-level/release-cross.nix +++ b/pkgs/top-level/release-cross.nix @@ -248,6 +248,7 @@ in or1k = mapTestOnCross systems.examples.or1k embedded; avr = mapTestOnCross systems.examples.avr embedded; arm-embedded = mapTestOnCross systems.examples.arm-embedded embedded; + arm-embedded-nano = mapTestOnCross systems.examples.arm-embedded-nano embedded; armhf-embedded = mapTestOnCross systems.examples.armhf-embedded embedded; aarch64-embedded = mapTestOnCross systems.examples.aarch64-embedded embedded; aarch64be-embedded = mapTestOnCross systems.examples.aarch64be-embedded embedded;