6 structuredExtraConfig ? { },
13 version = "6.6.65-rt47"; # updated by ./update-rt.sh
14 branch = lib.versions.majorMinor version;
15 kversion = builtins.elemAt (lib.splitString "-" version) 0;
23 # modDirVersion needs a patch number, change X.Y-rtZ to X.Y.0-rtZ.
25 if (builtins.match "[^.]*[.][^.]*-.*" version) == null then
28 lib.replaceStrings [ "-" ] [ ".0-" ] version;
31 url = "mirror://kernel/linux/kernel/v6.x/linux-${kversion}.tar.xz";
32 sha256 = "1q53xiwnszchl9c4g4yfxyzk4nffzgb4a7aq9rsyg1jcidp4gqbs";
40 url = "mirror://kernel/linux/kernel/projects/rt/${branch}/older/patch-${version}.patch.xz";
41 sha256 = "1sb6mmbiwh7kijb2bxhlz09dgvd2hpxh6rxghwi1d4cg2151jsr5";
45 [ rt-patch ] ++ kernelPatches;
47 structuredExtraConfig =
51 # Fix error: unused option: PREEMPT_RT.
52 EXPERT = yes; # PREEMPT_RT depends on it (in kernel/Kconfig.preempt)
53 # Fix error: option not set correctly: PREEMPT_VOLUNTARY (wanted 'y', got 'n').
54 PREEMPT_VOLUNTARY = lib.mkForce no; # PREEMPT_RT deselects it.
55 # Fix error: unused option: RT_GROUP_SCHED.
56 RT_GROUP_SCHED = lib.mkForce (option no); # Removed by sched-disable-rt-group-sched-on-rt.patch.
58 // structuredExtraConfig;
60 extraMeta = extraMeta // {