Merge pull request #330435 from K900/kernels-20240727

Kernel updates for 2024-07-27

authored by K900 and committed by GitHub daa0978d 6d4350b1

+29 -29
+16 -16
pkgs/os-specific/linux/kernel/kernels-org.json
··· 4 "hash": "sha256:0i29ga9lzqd4zcsbr4bbb122i8nyfhcalihnq3bgsg04dwb36s19" 5 }, 6 "6.1": { 7 - "version": "6.1.101", 8 - "hash": "sha256:0k5kjb2n78dcfpqqj8n76fxqbmifs2gqd2z1g9had7s2d2m9yigi" 9 }, 10 "5.15": { 11 - "version": "5.15.163", 12 - "hash": "sha256:00mkipkhz0i5xld7kyaxcj8cj8faw4gmjl5fribg832nn7ccfpq2" 13 }, 14 "5.10": { 15 - "version": "5.10.222", 16 - "hash": "sha256:1jshn64g165rdshyjvq38ni6pkbskp50048pbz407fss7f00cbbv" 17 }, 18 "5.4": { 19 - "version": "5.4.280", 20 - "hash": "sha256:0hix0dywf2ybvzxkijjsjmkrj7sx61hwq6mg1wqsq317p1zccxm9" 21 }, 22 "4.19": { 23 - "version": "4.19.318", 24 - "hash": "sha256:14vl0288apl76rvxa9yxfggrc4600bjsn4gw097m4gy5ldiaapqd" 25 }, 26 "6.6": { 27 - "version": "6.6.42", 28 - "hash": "sha256:10z6fjvpiv3l11rpsd6fgi7dr6a3d38c6zlp8ihffx6pjz1ch0c8" 29 }, 30 "6.8": { 31 "version": "6.8.12", 32 "hash": "sha256:0fb0m0fv4521g63gq04d7lm6hy8169s1rykiav5bkd99s9b1kcqr" 33 }, 34 "6.9": { 35 - "version": "6.9.11", 36 - "hash": "sha256:1q8kyn9cxc1ykf3cvifmfqk2p2p4x53l7h704hh92gichgh89pyy" 37 }, 38 "6.10": { 39 - "version": "6.10.1", 40 - "hash": "sha256:0szpkhrwfqwj068vz032daf3zycv5c93gjxiisjziifi3kyrs43h" 41 } 42 }
··· 4 "hash": "sha256:0i29ga9lzqd4zcsbr4bbb122i8nyfhcalihnq3bgsg04dwb36s19" 5 }, 6 "6.1": { 7 + "version": "6.1.102", 8 + "hash": "sha256:1v4p4i8pfg4i6v90dr7m65npkxjnqv3fxcj8zs3pbb8y84xzk98v" 9 }, 10 "5.15": { 11 + "version": "5.15.164", 12 + "hash": "sha256:11linb9jzarr8wz0vim3g9gkhi5ldqm82bkpl5xs9f34xpx9hq7c" 13 }, 14 "5.10": { 15 + "version": "5.10.223", 16 + "hash": "sha256:189b3yl4lsjzh6qpza0phj8hgsvnyh38cgrd70rnqw3rddmdh2fa" 17 }, 18 "5.4": { 19 + "version": "5.4.281", 20 + "hash": "sha256:1ckja83km101h2dwlp86xrnnlzdzvjly48iywhy53xric3kw7824" 21 }, 22 "4.19": { 23 + "version": "4.19.319", 24 + "hash": "sha256:0c7bhb31hpbbw1is1ykppk9lm0x025yyd4hrmlg1s6yg75rxqkal" 25 }, 26 "6.6": { 27 + "version": "6.6.43", 28 + "hash": "sha256:0pha226h5011kl5r2iiddxi0rib3xraslmcdjjnil2kq38d3pn0a" 29 }, 30 "6.8": { 31 "version": "6.8.12", 32 "hash": "sha256:0fb0m0fv4521g63gq04d7lm6hy8169s1rykiav5bkd99s9b1kcqr" 33 }, 34 "6.9": { 35 + "version": "6.9.12", 36 + "hash": "sha256:08ngskni7d9wi93vlwcmbdg7sb2jl1drhhzn62k9nsrg1r7crrss" 37 }, 38 "6.10": { 39 + "version": "6.10.2", 40 + "hash": "sha256:0w4vsb0c8bp34j90l89qms50nx6r6mmyf23jbvyar9fbv46m5n3k" 41 } 42 }
+3 -3
pkgs/os-specific/linux/kernel/linux-rt-5.15.nix
··· 6 , ... } @ args: 7 8 let 9 - version = "5.15.160-rt77"; # updated by ./update-rt.sh 10 branch = lib.versions.majorMinor version; 11 kversion = builtins.elemAt (lib.splitString "-" version) 0; 12 in buildLinux (args // { ··· 19 20 src = fetchurl { 21 url = "mirror://kernel/linux/kernel/v5.x/linux-${kversion}.tar.xz"; 22 - sha256 = "018v19a7rhzc4szybzzn86jlnk42x7jm6xkadfd2d3xq6f7727pl"; 23 }; 24 25 kernelPatches = let rt-patch = { 26 name = "rt"; 27 patch = fetchurl { 28 url = "mirror://kernel/linux/kernel/projects/rt/${branch}/older/patch-${version}.patch.xz"; 29 - sha256 = "0id4m1k1xq84bxgnchm8r2iwfqw6nacv5n1ksgyzj6q6v66ik3wk"; 30 }; 31 }; in [ rt-patch ] ++ kernelPatches; 32
··· 6 , ... } @ args: 7 8 let 9 + version = "5.15.163-rt78"; # updated by ./update-rt.sh 10 branch = lib.versions.majorMinor version; 11 kversion = builtins.elemAt (lib.splitString "-" version) 0; 12 in buildLinux (args // { ··· 19 20 src = fetchurl { 21 url = "mirror://kernel/linux/kernel/v5.x/linux-${kversion}.tar.xz"; 22 + sha256 = "00mkipkhz0i5xld7kyaxcj8cj8faw4gmjl5fribg832nn7ccfpq2"; 23 }; 24 25 kernelPatches = let rt-patch = { 26 name = "rt"; 27 patch = fetchurl { 28 url = "mirror://kernel/linux/kernel/projects/rt/${branch}/older/patch-${version}.patch.xz"; 29 + sha256 = "030aycnrcnjhylkqj0wrfi992v2l26v17rgvxl16514zpdjmiv1x"; 30 }; 31 }; in [ rt-patch ] ++ kernelPatches; 32
+10 -10
pkgs/os-specific/linux/kernel/update-mainline.py
··· 1 #!/usr/bin/env nix-shell 2 #!nix-shell -i python3 -p "python3.withPackages (ps: [ ps.beautifulsoup4 ps.lxml ps.packaging ])" 3 import json 4 import os 5 import pathlib ··· 11 12 from bs4 import BeautifulSoup, NavigableString, Tag 13 from packaging.version import parse as parse_version, Version 14 - from typing import List 15 16 HERE = pathlib.Path(__file__).parent 17 ROOT = HERE.parent.parent.parent.parent ··· 41 except KeyError: 42 return None 43 44 - version = columns[1].get_text().rstrip(" [EOL]") 45 date = columns[2].get_text() 46 link = columns[3].find("a") 47 if link is not None and isinstance(link, Tag): ··· 59 ) 60 61 62 - def get_branch(version: str): 63 # This is a testing kernel. 64 - if "rc" in version: 65 return "testing" 66 else: 67 - major, minor, *_ = version.split(".") 68 - return f"{major}.{minor}" 69 70 71 def get_hash(kernel: KernelRelease): ··· 113 114 oldest_branch = get_oldest_branch() 115 116 - for kernel in parsed_releases: 117 - branch = get_branch(kernel.version) 118 nixpkgs_branch = branch.replace(".", "_") 119 120 - old_version = all_kernels.get(branch, {}).get("version") 121 if old_version == kernel.version: 122 print(f"linux_{nixpkgs_branch}: {kernel.version} is latest, skipping...") 123 continue ··· 144 print(message, file=sys.stderr) 145 146 all_kernels[branch] = { 147 - "version": kernel.version, 148 "hash": get_hash(kernel), 149 } 150
··· 1 #!/usr/bin/env nix-shell 2 #!nix-shell -i python3 -p "python3.withPackages (ps: [ ps.beautifulsoup4 ps.lxml ps.packaging ])" 3 + from itertools import groupby 4 import json 5 import os 6 import pathlib ··· 12 13 from bs4 import BeautifulSoup, NavigableString, Tag 14 from packaging.version import parse as parse_version, Version 15 + 16 17 HERE = pathlib.Path(__file__).parent 18 ROOT = HERE.parent.parent.parent.parent ··· 42 except KeyError: 43 return None 44 45 + version = parse_version(columns[1].get_text().rstrip(" [EOL]")) 46 date = columns[2].get_text() 47 link = columns[3].find("a") 48 if link is not None and isinstance(link, Tag): ··· 60 ) 61 62 63 + def get_branch(version: Version): 64 # This is a testing kernel. 65 + if version.is_prerelease: 66 return "testing" 67 else: 68 + return f"{version.major}.{version.minor}" 69 70 71 def get_hash(kernel: KernelRelease): ··· 113 114 oldest_branch = get_oldest_branch() 115 116 + for (branch, kernels) in groupby(parsed_releases, lambda kernel: get_branch(kernel.version)): 117 + kernel = max(kernels, key=lambda kernel: kernel.version) 118 nixpkgs_branch = branch.replace(".", "_") 119 120 + old_version = parse_version(all_kernels.get(branch, {}).get("version")) 121 if old_version == kernel.version: 122 print(f"linux_{nixpkgs_branch}: {kernel.version} is latest, skipping...") 123 continue ··· 144 print(message, file=sys.stderr) 145 146 all_kernels[branch] = { 147 + "version": str(kernel.version), 148 "hash": get_hash(kernel), 149 } 150