uboot: Don't use stdenv.cross

This commit is contained in:
hsloan 2017-06-28 16:30:13 -04:00 committed by John Ericson
parent 9cd606467f
commit a7f81284a5

View file

@ -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}"
];
};