linuxKernel.kernels.linux_zen: fix update script, 6.18.13-zen1 -> 6.19.9-zen1 (#503367)

This commit is contained in:
Thiago Kenji Okada
2026-03-26 09:22:11 +00:00
committed by GitHub
2 changed files with 12 additions and 11 deletions
+8 -8
View File
@@ -64,24 +64,24 @@ def update_file(relpath, version, suffix, sha256):
for line in f:
result = line
result = re.sub(
fr'^ version = ".+";',
f' version = "{version}";',
r'^(\s*)version = ".+";',
fr'\1version = "{version}";',
result)
result = re.sub(
fr'^ suffix = ".+";',
f' suffix = "{suffix}";',
r'^(\s*)suffix = ".+";',
fr'\1suffix = "{suffix}";',
result)
result = re.sub(
fr'^ sha256 = ".+";',
f' sha256 = "{sha256}";',
r'^(\s*)sha256 = ".+";',
fr'\1sha256 = "{sha256}";',
result)
print(result, end='')
def read_file(relpath):
file_path = os.path.join(DIR, relpath)
re_version = re.compile(fr'^\s*version = "(.+)";')
re_suffix = re.compile(fr'^\s*suffix = "(.+)";')
re_version = re.compile(r'^\s*version = "(.+)";')
re_suffix = re.compile(r'^\s*suffix = "(.+)";')
version = None
suffix = None
with fileinput.FileInput(file_path, mode='r') as f:
@@ -12,13 +12,13 @@ let
# override options if they need using lib.mkForce (that has 50 priority)
mkKernelOverride = lib.mkOverride 90;
suffix = "zen1"; # zen
suffix = "zen1";
in
buildLinux (
args
// rec {
version = "6.18.13";
version = "6.19.9";
pname = "linux-zen";
modDirVersion = lib.versions.pad 3 "${version}-${suffix}";
isZen = true;
@@ -27,7 +27,7 @@ buildLinux (
owner = "zen-kernel";
repo = "zen-kernel";
rev = "v${version}-${suffix}";
sha256 = "0x6s3pa7c6zlvr3w2fv6i15v54cy1pschvgk7b4vrzx1bcrjdxf7";
sha256 = "09wlnd8ndm4r75ywk2sanmkc0v788rz9faa61hcfschw5pq5yzx6";
};
# This is based on the following source:
@@ -46,6 +46,7 @@ buildLinux (
# Preempt (low-latency)
PREEMPT = mkKernelOverride yes;
PREEMPT_VOLUNTARY = mkKernelOverride no;
PREEMPT_LAZY = mkKernelOverride no;
# Preemptible tree-based hierarchical RCU
TREE_RCU = yes;