mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-06 22:03:13 +00:00
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
|
||||
# optionally be compressed with gzip or bzip2.
|
||||
kernelPatches ? []
|
||||
, ignoreConfigErrors ? hostPlatform.platform.name != "pc"
|
||||
, ignoreConfigErrors ? hostPlatform.platform.name != "pc" ||
|
||||
hostPlatform != stdenv.buildPlatform
|
||||
, extraMeta ? {}
|
||||
, hostPlatform
|
||||
, ...
|
||||
@ -58,7 +59,7 @@ let
|
||||
in lib.concatStringsSep "\n" ([baseConfig] ++ configFromPatches);
|
||||
|
||||
configfile = stdenv.mkDerivation {
|
||||
#inherit ignoreConfigErrors;
|
||||
inherit ignoreConfigErrors;
|
||||
name = "linux-config-${version}";
|
||||
|
||||
generateConfig = ./generate-config.pl;
|
||||
@ -74,9 +75,6 @@ let
|
||||
preferBuiltin = hostPlatform.platform.kernelPreferBuiltin or false;
|
||||
arch = hostPlatform.platform.kernelArch;
|
||||
|
||||
# TODO(@Ericson2314): No null next hash break
|
||||
ignoreConfigErrors = if stdenv.hostPlatform == stdenv.buildPlatform then null else true;
|
||||
|
||||
crossAttrs = let
|
||||
cp = hostPlatform.platform;
|
||||
in {
|
||||
|
Loading…
Reference in New Issue
Block a user