diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2017-06-28 23:17:21 -0400 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2017-06-28 23:17:21 -0400 |
commit | 16be434b0bec4d14a893010b46f56a64cab74cc1 (patch) | |
tree | 25e77807d55c76d42817197d576349478ff500a5 /pkgs/misc/uboot/default.nix | |
parent | d76bc8ed15cfa21d9f1cc47a06ee1fe8ac86d6d3 (diff) | |
parent | b0ada07f36abc21c990000b5cdbe780157d6b92b (diff) |
Merge accepted cross compilation PRs into staging
Diffstat (limited to 'pkgs/misc/uboot/default.nix')
-rw-r--r-- | pkgs/misc/uboot/default.nix | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/misc/uboot/default.nix b/pkgs/misc/uboot/default.nix index 07ccd419f4bc5..a3e4f12cd892c 100644 --- a/pkgs/misc/uboot/default.nix +++ b/pkgs/misc/uboot/default.nix @@ -1,4 +1,6 @@ -{ stdenv, fetchurl, bc, dtc, python2 }: +{ stdenv, fetchurl, bc, dtc, python2 +, hostPlatform +}: let buildUBoot = { targetPlatforms @@ -43,8 +45,8 @@ let crossAttrs = { makeFlags = [ - "ARCH=${stdenv.cross.platform.kernelArch}" - "CROSS_COMPILE=${stdenv.cross.config}-" + "ARCH=${hostPlatform.platform.kernelArch}" + "CROSS_COMPILE=${stdenv.cc.prefix}" ]; }; |