kernel: don't force ignoreConfigErrors when cross compiling, only set the
default
This commit is contained in:
parent
b4b04dd29f
commit
a09709bf2a
@ -23,7 +23,8 @@
|
|||||||
# symbolic name and `patch' is the actual patch. The patch may
|
# symbolic name and `patch' is the actual patch. The patch may
|
||||||
# optionally be compressed with gzip or bzip2.
|
# optionally be compressed with gzip or bzip2.
|
||||||
kernelPatches ? []
|
kernelPatches ? []
|
||||||
, ignoreConfigErrors ? hostPlatform.platform.name != "pc"
|
, ignoreConfigErrors ? hostPlatform.platform.name != "pc" ||
|
||||||
|
hostPlatform != stdenv.buildPlatform
|
||||||
, extraMeta ? {}
|
, extraMeta ? {}
|
||||||
, hostPlatform
|
, hostPlatform
|
||||||
, ...
|
, ...
|
||||||
@ -58,7 +59,7 @@ let
|
|||||||
in lib.concatStringsSep "\n" ([baseConfig] ++ configFromPatches);
|
in lib.concatStringsSep "\n" ([baseConfig] ++ configFromPatches);
|
||||||
|
|
||||||
configfile = stdenv.mkDerivation {
|
configfile = stdenv.mkDerivation {
|
||||||
#inherit ignoreConfigErrors;
|
inherit ignoreConfigErrors;
|
||||||
name = "linux-config-${version}";
|
name = "linux-config-${version}";
|
||||||
|
|
||||||
generateConfig = ./generate-config.pl;
|
generateConfig = ./generate-config.pl;
|
||||||
@ -74,9 +75,6 @@ let
|
|||||||
preferBuiltin = hostPlatform.platform.kernelPreferBuiltin or false;
|
preferBuiltin = hostPlatform.platform.kernelPreferBuiltin or false;
|
||||||
arch = hostPlatform.platform.kernelArch;
|
arch = hostPlatform.platform.kernelArch;
|
||||||
|
|
||||||
# TODO(@Ericson2314): No null next hash break
|
|
||||||
ignoreConfigErrors = if stdenv.hostPlatform == stdenv.buildPlatform then null else true;
|
|
||||||
|
|
||||||
crossAttrs = let
|
crossAttrs = let
|
||||||
cp = hostPlatform.platform;
|
cp = hostPlatform.platform;
|
||||||
in {
|
in {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user