Skip to content

Commit

Permalink
linux: Add 5.10
Browse files Browse the repository at this point in the history
Validated via
```
 nix-build ./nixos/release.nix -A tests.kernel-latest.x86_64-linux -A tests.latestKernel.login.x86_64-linux
```
  • Loading branch information
NeQuissimus committed Dec 14, 2020
1 parent 373ddfa commit c1ef6d2
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
18 changes: 18 additions & 0 deletions pkgs/os-specific/linux/kernel/linux-5.10.nix
@@ -0,0 +1,18 @@
{ stdenv, buildPackages, fetchurl, perl, buildLinux, modDirVersionArg ? null, ... } @ args:

with stdenv.lib;

buildLinux (args // rec {
version = "5.10";

# modDirVersion needs to be x.y.z, will automatically add .0 if needed
modDirVersion = if (modDirVersionArg == null) then concatStringsSep "." (take 3 (splitVersion "${version}.0")) else modDirVersionArg;

# branchVersion needs to be x.y
extraMeta.branch = versions.majorMinor version;

src = fetchurl {
url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz";
sha256 = "sha256-3N+Z5D6YMw2SUBaYW/vHuDxm02e3FLLeDLv8v4PYykM=";
};
} // (args.argsOverride or {}))
11 changes: 10 additions & 1 deletion pkgs/top-level/all-packages.nix
Expand Up @@ -18382,6 +18382,14 @@ in
];
};

linux_5_10 = callPackage ../os-specific/linux/kernel/linux-5.10.nix {
kernelPatches = [
kernelPatches.bridge_stp_helper
kernelPatches.request_key_helper
kernelPatches.export_kernel_fpu_functions."5.3"
];
};

linux-rt_5_9 = callPackage ../os-specific/linux/kernel/linux-rt-5.9.nix {
kernelPatches = [
kernelPatches.bridge_stp_helper
Expand Down Expand Up @@ -18635,7 +18643,7 @@ in

# Update this when adding the newest kernel major version!
# And update linux_latest_for_hardened below if the patches are already available
linuxPackages_latest = linuxPackages_5_9;
linuxPackages_latest = linuxPackages_5_10;
linux_latest = linuxPackages_latest.kernel;

# Realtime kernel packages.
Expand All @@ -18660,6 +18668,7 @@ in
linuxPackages_5_4 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_5_4);
linuxPackages_5_8 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_5_8);
linuxPackages_5_9 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_5_9);
linuxPackages_5_10 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_5_10);

# When adding to the list above:
# - Update linuxPackages_latest to the latest version
Expand Down

0 comments on commit c1ef6d2

Please sign in to comment.