diff options
author | John Ericson <Ericson2314@Yahoo.com> | 2017-02-07 12:25:01 -0500 |
---|---|---|
committer | John Ericson <Ericson2314@Yahoo.com> | 2017-05-17 15:33:05 -0400 |
commit | d34079c2d9d22e3d13778e7a948b16247610ec7c (patch) | |
tree | 42838129c16700872abc645d5b6357ed89453341 /pkgs/top-level/release-cross.nix | |
parent | 20fa6fd87146a55ca5b66b88bf3d30012acbdac0 (diff) | |
download | nixlib-d34079c2d9d22e3d13778e7a948b16247610ec7c.tar nixlib-d34079c2d9d22e3d13778e7a948b16247610ec7c.tar.gz nixlib-d34079c2d9d22e3d13778e7a948b16247610ec7c.tar.bz2 nixlib-d34079c2d9d22e3d13778e7a948b16247610ec7c.tar.lz nixlib-d34079c2d9d22e3d13778e7a948b16247610ec7c.tar.xz nixlib-d34079c2d9d22e3d13778e7a948b16247610ec7c.tar.zst nixlib-d34079c2d9d22e3d13778e7a948b16247610ec7c.zip |
release-cross: Add arms test from Darwin for binutils
This does a decent job of testing everything in this PR up to here.
Diffstat (limited to 'pkgs/top-level/release-cross.nix')
-rw-r--r-- | pkgs/top-level/release-cross.nix | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/pkgs/top-level/release-cross.nix b/pkgs/top-level/release-cross.nix index b22eff33dc07..861b3abe1ad8 100644 --- a/pkgs/top-level/release-cross.nix +++ b/pkgs/top-level/release-cross.nix @@ -1,5 +1,8 @@ -{ # The platforms for which we build Nixpkgs. - supportedSystems ? [ builtins.currentSystem ] +/* This file defines some basic smoke tests for cross compilation. +*/ + +{ # The platforms *from* which we cross compile. + supportedSystems ? [ "x86_64-linux" "x86_64-darwin" ] , # Strip most of attributes when evaluating to spare memory usage scrubJobs ? true }: @@ -83,6 +86,25 @@ in guile = nativePlatforms; }; + darwinToAarch64 = let + crossSystem = { + config = "aarch64-apple-darwin14"; + arch = "arm64"; + libc = "libSystem"; + }; + in mapTestOnCross crossSystem { + buildPackages.binutils = darwin; + }; + + darwinToArm = let + crossSystem = { + config = "arm-apple-darwin10"; + arch = "armv7-a"; + libc = "libSystem"; + }; + in mapTestOnCross crossSystem { + buildPackages.binutils = darwin; + }; /* Test some cross builds to the Sheevaplug */ crossSheevaplugLinux = let |