parent
acbaefa615
commit
e8fcced76e
@ -1,13 +1,13 @@
|
|||||||
{ stdenv, hostPlatform, fetchurl, perl, buildLinux, ... } @ args:
|
{ stdenv, hostPlatform, fetchurl, perl, buildLinux, libelf, utillinux, ... } @ args:
|
||||||
|
|
||||||
import ./generic.nix (args // rec {
|
import ./generic.nix (args // rec {
|
||||||
version = "4.14-rc8";
|
version = "4.15-rc1";
|
||||||
modDirVersion = "4.14.0-rc8";
|
modDirVersion = "4.15.0-rc1";
|
||||||
extraMeta.branch = "4.14";
|
extraMeta.branch = "4.15";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://git.kernel.org/torvalds/t/linux-${version}.tar.gz";
|
url = "https://git.kernel.org/torvalds/t/linux-${version}.tar.gz";
|
||||||
sha256 = "0ir2ggflm1xjnn1kvv2c99m5zni5kg0ygzlpm588wnhkzd93nqjh";
|
sha256 = "1l7c132qb5qjd80hga03ivssfq65brqyd95sb4rd065dqrixp20n";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Should the testing kernels ever be built on Hydra?
|
# Should the testing kernels ever be built on Hydra?
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
{ runCommand, nettools, bc, perl, gmp, libmpc, mpfr, kmod, openssl
|
{ runCommand, nettools, bc, perl, gmp, libmpc, mpfr, kmod, openssl
|
||||||
|
, libelf ? null
|
||||||
|
, utillinux ? null
|
||||||
, writeTextFile, ubootTools
|
, writeTextFile, ubootTools
|
||||||
, hostPlatform
|
, hostPlatform
|
||||||
}:
|
}:
|
||||||
@ -230,13 +232,18 @@ let
|
|||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
||||||
|
assert stdenv.lib.versionAtLeast version "4.15" -> libelf != null;
|
||||||
|
assert stdenv.lib.versionAtLeast version "4.15" -> utillinux != null;
|
||||||
stdenv.mkDerivation ((drvAttrs config stdenv.platform (kernelPatches ++ nativeKernelPatches) configfile) // {
|
stdenv.mkDerivation ((drvAttrs config stdenv.platform (kernelPatches ++ nativeKernelPatches) configfile) // {
|
||||||
name = "linux-${version}";
|
name = "linux-${version}";
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
nativeBuildInputs = [ perl bc nettools openssl gmp libmpc mpfr ]
|
nativeBuildInputs = [ perl bc nettools openssl gmp libmpc mpfr ]
|
||||||
++ optional (stdenv.platform.kernelTarget == "uImage") ubootTools;
|
++ optional (stdenv.platform.kernelTarget == "uImage") ubootTools
|
||||||
|
++ optional (stdenv.lib.versionAtLeast version "4.15") libelf
|
||||||
|
++ optional (stdenv.lib.versionAtLeast version "4.15") utillinux
|
||||||
|
;
|
||||||
|
|
||||||
hardeningDisable = [ "bindnow" "format" "fortify" "stackprotector" "pic" ];
|
hardeningDisable = [ "bindnow" "format" "fortify" "stackprotector" "pic" ];
|
||||||
|
|
||||||
|
@ -12598,7 +12598,6 @@ with pkgs;
|
|||||||
linux_testing = callPackage ../os-specific/linux/kernel/linux-testing.nix {
|
linux_testing = callPackage ../os-specific/linux/kernel/linux-testing.nix {
|
||||||
kernelPatches = [
|
kernelPatches = [
|
||||||
kernelPatches.bridge_stp_helper
|
kernelPatches.bridge_stp_helper
|
||||||
kernelPatches.p9_fixes
|
|
||||||
kernelPatches.modinst_arg_list_too_long
|
kernelPatches.modinst_arg_list_too_long
|
||||||
] ++ lib.optionals ((platform.kernelArch or null) == "mips") [
|
] ++ lib.optionals ((platform.kernelArch or null) == "mips") [
|
||||||
kernelPatches.mips_fpureg_emu
|
kernelPatches.mips_fpureg_emu
|
||||||
|
Loading…
x
Reference in New Issue
Block a user