kernel generic: Don't use stdenv.cross

This commit is contained in:
hsloan
2017-06-28 16:32:25 -04:00
committed by John Ericson
parent c5b4b6c911
commit 459d07d41c
10 changed files with 12 additions and 11 deletions

View File

@@ -25,6 +25,7 @@
kernelPatches ? []
, ignoreConfigErrors ? stdenv.platform.name != "pc"
, extraMeta ? {}
, hostPlatform
, ...
}:
@@ -59,7 +60,7 @@ let
arch = stdenv.platform.kernelArch;
crossAttrs = let
cp = stdenv.cross.platform;
cp = hostPlatform.platform;
in {
arch = cp.kernelArch;
platformName = cp.name;
@@ -128,7 +129,7 @@ let
};
config = configWithPlatform stdenv.platform;
configCross = configWithPlatform stdenv.cross.platform;
configCross = configWithPlatform hostPlatform.platform;
nativeDrv = lib.addPassthru kernel.nativeDrv passthru;