diff options
author | Tuomas Tynkkynen <tuomas@tuxera.com> | 2016-02-05 00:47:23 +0200 |
---|---|---|
committer | Tuomas Tynkkynen <tuomas@tuxera.com> | 2017-01-25 00:01:51 +0200 |
commit | 7c8a060c09799eb2ee70c00aa695ff08e5f07c6f (patch) | |
tree | d346e6bc9c7b2bf20d8c2240a66a2ff91fdaedfc /pkgs/stdenv/linux | |
parent | 41fd1ed90346a3d7f6b067301ac9e147ef4dcd5e (diff) | |
download | nixpkgs-7c8a060c09799eb2ee70c00aa695ff08e5f07c6f.tar nixpkgs-7c8a060c09799eb2ee70c00aa695ff08e5f07c6f.tar.gz nixpkgs-7c8a060c09799eb2ee70c00aa695ff08e5f07c6f.tar.bz2 nixpkgs-7c8a060c09799eb2ee70c00aa695ff08e5f07c6f.tar.lz nixpkgs-7c8a060c09799eb2ee70c00aa695ff08e5f07c6f.tar.xz nixpkgs-7c8a060c09799eb2ee70c00aa695ff08e5f07c6f.tar.zst nixpkgs-7c8a060c09799eb2ee70c00aa695ff08e5f07c6f.zip |
stdenv: Bringup aarch64 architecture support
Diffstat (limited to 'pkgs/stdenv/linux')
-rw-r--r-- | pkgs/stdenv/linux/default.nix | 1 | ||||
-rw-r--r-- | pkgs/stdenv/linux/make-bootstrap-tools-cross.nix | 16 |
2 files changed, 16 insertions, 1 deletions
diff --git a/pkgs/stdenv/linux/default.nix b/pkgs/stdenv/linux/default.nix index 611628b35ab..41695b5c36b 100644 --- a/pkgs/stdenv/linux/default.nix +++ b/pkgs/stdenv/linux/default.nix @@ -12,6 +12,7 @@ "armv5tel-linux" = import ./bootstrap-files/armv5tel.nix; "armv6l-linux" = import ./bootstrap-files/armv6l.nix; "armv7l-linux" = import ./bootstrap-files/armv7l.nix; + "aarch64-linux" = import ./bootstrap-files/aarch64.nix; "mips64el-linux" = import ./bootstrap-files/loongson2f.nix; }.${localSystem.system} or (abort "unsupported platform for the pure Linux stdenv") diff --git a/pkgs/stdenv/linux/make-bootstrap-tools-cross.nix b/pkgs/stdenv/linux/make-bootstrap-tools-cross.nix index 38b3e611bc2..9cce27ba5b6 100644 --- a/pkgs/stdenv/linux/make-bootstrap-tools-cross.nix +++ b/pkgs/stdenv/linux/make-bootstrap-tools-cross.nix @@ -50,10 +50,23 @@ let }; }; + aarch64-multiplatform-crossSystem = { + crossSystem = rec { + config = "aarch64-linux-gnu"; + bigEndian = false; + arch = "aarch64"; + withTLS = true; + libc = "glibc"; + platform = pkgsNoParams.platforms.aarch64-multiplatform; + inherit (platform) gcc; + }; + }; + selectedCrossSystem = if toolsArch == "armv5tel" then sheevaplugCrossSystem else if toolsArch == "armv6l" then raspberrypiCrossSystem else - if toolsArch == "armv7l" then armv7l-hf-multiplatform-crossSystem else null; + if toolsArch == "armv7l" then armv7l-hf-multiplatform-crossSystem else + if toolsArch == "aarch64" then aarch64-multiplatform-crossSystem else null; pkgsUnspliced = pkgsFun ({inherit system;} // selectedCrossSystem); pkgs = pkgsUnspliced.splicedPackages; @@ -265,4 +278,5 @@ rec { armv5tel = buildFor "armv5tel"; armv6l = buildFor "armv6l"; armv7l = buildFor "armv7l"; + aarch64 = buildFor "aarch64"; } |