1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-12-23 10:09:44 +01:00

purism librem5r4: update kernel to 6.4.5

This commit is contained in:
Sophie Tauchert 2023-08-15 23:36:16 +02:00 committed by Jörg Thalheim
parent 658064ce36
commit 6a1fb21810
3 changed files with 27 additions and 16 deletions

View file

@ -1,14 +0,0 @@
{ buildLinux, fetchFromGitLab, ... }@args:
buildLinux (args // rec {
defconfig = "librem5_defconfig";
version = "6.1.10-librem5";
modDirVersion = version;
src = fetchFromGitLab {
domain = "source.puri.sm";
owner = "Librem5";
repo = "linux";
rev = "pureos/6.1.10pureos1";
hash = "sha256-Cc16vMUcJ/a2k3zMynqZ99t1LyTSs7EXKdNGF6OTS1s=";
};
kernelPatches = [ ];
} // args.argsOverride or { })

View file

@ -0,0 +1,25 @@
{ lib
, buildLinux
, fetchFromGitLab
, ...
} @ args:
buildLinux (args
// rec {
defconfig = "librem5_defconfig";
version = "6.4.5-librem5";
modDirVersion = version;
src = fetchFromGitLab {
domain = "source.puri.sm";
owner = "Librem5";
repo = "linux";
rev = "pureos/6.4.5pureos1";
hash = "sha256-xg/qZ3Lig8oAAa3I+yn4tKPbftBy9Y6fnk8IvB+rm4E=";
};
kernelPatches = [ ];
structuredExtraConfig = with lib.kernel; {
# buildLinux overrides this and defaults to 32, so go back to the value defined librem5_defconfig
# this is required for millipixels to take photos, otherwise the VIDIOC_REQ_BUFS ioctl returns ENOMEM
CMA_SIZE_MBYTES = lib.mkForce (freeform "320");
};
}
// args.argsOverride or { })

View file

@ -1,4 +1,4 @@
final: prev: {
linuxPackages_librem5_6_1_10 = final.linuxPackagesFor (final.callPackage ./6.1.10.nix { });
linuxPackages_librem5 = final.linuxPackages_librem5_6_1_10;
linuxPackages_librem5_6_4_5 = final.linuxPackagesFor (final.callPackage ./6.4.5.nix { });
linuxPackages_librem5 = final.linuxPackages_librem5_6_4_5;
}