packages/linux-lava: bump to 5.15.13 and switch to pds

This commit is contained in:
LavaDesu 2022-01-05 21:36:56 +07:00
parent 40a574c1e1
commit 74b96a4035
Signed by: cilly
GPG key ID: 6500251E087653C9
4 changed files with 45 additions and 24 deletions

View file

@ -1,21 +1,20 @@
{ fetchFromGitHub, inputs, lib }:
let
version = "5.15.6";
version = "5.15.13";
kernelHash = "1s0yk78kilcr3vd14k67cmllnrx0x0i00jdkl5kkn3lij5lwzcjp";
kernelPatchHash = "07k2vqf0mynladx23p980yi71fhqimr997s4azvqxwg244qpbx93";
caculeRev = "2ac16b14bc0281c3b6c14828688981633b82ffd8";
caculeHash = "0li0zaizxvpigngv1954hkw8dirwyvqy93gb3af33cm47ir9049p";
kernelPatchHash = "044y7mmla0f73mky24vpvl8ba3warfr6im97s1231gjxican40v6";
tkgPatches = [
"0001-mm-Support-soft-dirty-flag-reset-for-VA-range"
"0002-clear-patches"
"0002-mm-Support-soft-dirty-flag-read-with-reset"
#"0003-cacule-${mm}"
"0003-glitched-base"
"0003-glitched-cfs"
"0007-v${mm}-futex_waitv"
"0007-v${mm}-fsync1_via_futex_waitv"
"0007-v${mm}-winesync"
"0009-prjc_v5.15-r1"
"0009-glitched-ondemand-bmq"
"0005-glitched-pds"
"0012-misc-additions"
];
@ -31,14 +30,6 @@ let
sha256 = kernelPatchHash;
};
};
caculeSrc = {
name = "cacule";
patch = builtins.fetchurl {
url = "https://raw.githubusercontent.com/CachyOS/cacule-cpu-scheduler/${caculeRev}/patches/CacULE/v${mm}/cacule-${mm}-full.patch";
sha256 = caculeHash;
};
};
mm = lib.versions.majorMinor version;
in {
inherit version;
@ -49,8 +40,12 @@ in {
};
kernelPatches = [
# This is dumb but nix strips FHS paths *before* patching (why???????) so patches might fail to apply
# This "unpatch patch" fixes one such patch failure, then reapplys the stripped FHS path in
# the "repatch patch" (even though the affected file isn't really used but w/e)
(patch ./unpatch.patch)
kernelPatchSrc
caculeSrc
(patch ./repatch.patch)
(patch ./si-manual-clocking.patch)
]
++ builtins.map (name: {