mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-04 01:07:14 +08:00
Update to kernel 5.10.19
- Add kernel 5.10.19 and latest linux-surface patches - Remove kernel 5.10.2 commit7250b8cbb4Author: mexisme <wildjim+dev@kiwinet.org> Date: Fri Feb 5 08:38:10 2021 +1300 commit90b210dfeeAuthor: mexisme <wildjim+dev@kiwinet.org> Date: Fri Feb 5 08:37:41 2021 +1300 commitbbb5dec0e3Author: mexisme <wildjim+dev@kiwinet.org> Date: Tue Feb 2 23:58:51 2021 +1300 commitbde79616d2Author: mexisme <wildjim+dev@kiwinet.org> Date: Tue Feb 2 23:58:35 2021 +1300 commitbe5b9c91acAuthor: mexisme <wildjim+dev@kiwinet.org> Date: Tue Feb 2 23:57:54 2021 +1300
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
boot.kernelPackages = pkgs.callPackage ./linux-5.10.2 {};
|
||||
boot.kernelPackages = pkgs.callPackage ./linux-5.10.19 {};
|
||||
}
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
repos = (pkgs.callPackage ../../repos.nix {});
|
||||
# TODO: Can I append the path ./patches instead of a string?
|
||||
patches = repos.linux-surface + "/patches";
|
||||
surface_kernelPatches = [
|
||||
{ name = "microsoft-surface-patches-linux-5.10.2";
|
||||
{ name = "microsoft-surface-patches-linux-5.10.19";
|
||||
patch = null;
|
||||
extraConfig = ''
|
||||
#
|
||||
@@ -44,8 +43,8 @@ let
|
||||
#
|
||||
# Cameras: IPU3
|
||||
#
|
||||
## TODO: Fix for kernel 5.10.2:
|
||||
##VIDEO_IPU3_IMGU m
|
||||
## Not yet supported in the patches?
|
||||
# VIDEO_IPU3_IMGU m
|
||||
VIDEO_IPU3_CIO2 m
|
||||
CIO2_BRIDGE y
|
||||
INT3472 m
|
||||
@@ -54,8 +53,13 @@ let
|
||||
# Cameras: Sensor drivers
|
||||
#
|
||||
VIDEO_OV5693 m
|
||||
## TODO: Fix for kernel 5.10.2:
|
||||
##VIDEO_OV8865 m
|
||||
## Not yet supported in the patches?
|
||||
# VIDEO_OV8865 m
|
||||
|
||||
#
|
||||
# ALS Sensor for Surface Book 3, Surface Laptop 3, Surface Pro 7
|
||||
#
|
||||
APDS9960 m
|
||||
|
||||
#
|
||||
# Other Drivers
|
||||
@@ -101,12 +105,16 @@ let
|
||||
patch = patches + "/5.10/0008-surface-typecover.patch";
|
||||
}
|
||||
{
|
||||
name = "ms-surface/0009-cameras";
|
||||
patch = patches + "/5.10/0009-cameras.patch";
|
||||
name = "ms-surface/0009-surface-sensors";
|
||||
patch = patches + "/5.10/0009-surface-sensors.patch";
|
||||
}
|
||||
{
|
||||
name = "ms-surface/0010-cameras";
|
||||
patch = patches + "/5.10/0010-cameras.patch";
|
||||
}
|
||||
];
|
||||
in (with pkgs; recurseIntoAttrs (linuxPackagesFor (
|
||||
callPackage ./linux-5.10.2.nix {
|
||||
callPackage ./linux-5.10.19.nix {
|
||||
kernelPatches = surface_kernelPatches;
|
||||
}
|
||||
)))
|
||||
@@ -3,7 +3,7 @@
|
||||
with stdenv.lib;
|
||||
|
||||
buildLinux (args // rec {
|
||||
version = "5.10.2";
|
||||
version = "5.10.19";
|
||||
|
||||
# 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;
|
||||
@@ -13,6 +13,6 @@ buildLinux (args // rec {
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz";
|
||||
sha256 = "18l1ywp99inm90434fm74w8rjfl4yl974kfcpizg2sp2p8xf311v";
|
||||
sha256 = "1mml5a30ky0khzj3r6ahybycbbszk86agq62qclwq2kzvsqbprr7";
|
||||
};
|
||||
} // (args.argsOverride or {}))
|
||||
Reference in New Issue
Block a user