Remove v2 variants and add BORE v3/v4/zen4 variants (#50)

This commit is contained in:
Lan Tian 2026-05-13 23:13:25 -07:00
parent d34749b472
commit 8bbc225e11
No known key found for this signature in database
GPG Key ID: 04E66B6B25A0862B
2 changed files with 63 additions and 40 deletions

View File

@ -196,6 +196,8 @@
cachyos-latest-lto = mkSystem "linuxPackages-cachyos-latest-lto";
cachyos-lts = mkSystem "linuxPackages-cachyos-lts";
cachyos-lts-lto = mkSystem "linuxPackages-cachyos-lts-lto";
cachyos-bore = mkSystem "linuxPackages-cachyos-bore";
cachyos-bore-lto = mkSystem "linuxPackages-cachyos-bore-lto";
};
};
}

View File

@ -17,18 +17,12 @@ let
in
builtins.listToAttrs (
builtins.map (v: lib.nameValuePair v.pname v) [
# Latest kernel, provide all LTO/CPU arch variants
# Latest kernel, provide all LTO and v3/v4/zen4 arch variants
(mkCachyKernel {
pname = "linux-cachyos-latest";
inherit (linuxSources.latest) version src;
configVariant = "linux-cachyos";
})
(mkCachyKernel {
pname = "linux-cachyos-latest-x86_64-v2";
inherit (linuxSources.latest) version src;
configVariant = "linux-cachyos";
processorOpt = "x86_64-v2";
})
(mkCachyKernel {
pname = "linux-cachyos-latest-x86_64-v3";
inherit (linuxSources.latest) version src;
@ -53,13 +47,6 @@ builtins.listToAttrs (
configVariant = "linux-cachyos";
lto = "thin";
})
(mkCachyKernel {
pname = "linux-cachyos-latest-lto-x86_64-v2";
inherit (linuxSources.latest) version src;
configVariant = "linux-cachyos";
lto = "thin";
processorOpt = "x86_64-v2";
})
(mkCachyKernel {
pname = "linux-cachyos-latest-lto-x86_64-v3";
inherit (linuxSources.latest) version src;
@ -88,12 +75,6 @@ builtins.listToAttrs (
inherit (linuxSources.lts) version src;
configVariant = "linux-cachyos-lts";
})
(mkCachyKernel {
pname = "linux-cachyos-lts-x86_64-v2";
inherit (linuxSources.lts) version src;
configVariant = "linux-cachyos-lts";
processorOpt = "x86_64-v2";
})
(mkCachyKernel {
pname = "linux-cachyos-lts-x86_64-v3";
inherit (linuxSources.lts) version src;
@ -118,13 +99,6 @@ builtins.listToAttrs (
configVariant = "linux-cachyos-lts";
lto = "thin";
})
(mkCachyKernel {
pname = "linux-cachyos-lts-lto-x86_64-v2";
inherit (linuxSources.lts) version src;
configVariant = "linux-cachyos-lts";
lto = "thin";
processorOpt = "x86_64-v2";
})
(mkCachyKernel {
pname = "linux-cachyos-lts-lto-x86_64-v3";
inherit (linuxSources.lts) version src;
@ -147,6 +121,66 @@ builtins.listToAttrs (
processorOpt = "zen4";
})
# BORE variant
(mkCachyKernel {
pname = "linux-cachyos-bore";
inherit (linuxSources.latest) version src;
configVariant = "linux-cachyos-bore";
cpusched = "bore";
})
(mkCachyKernel {
pname = "linux-cachyos-bore-x86_64-v3";
inherit (linuxSources.latest) version src;
configVariant = "linux-cachyos-bore";
cpusched = "bore";
processorOpt = "x86_64-v3";
})
(mkCachyKernel {
pname = "linux-cachyos-bore-x86_64-v4";
inherit (linuxSources.latest) version src;
configVariant = "linux-cachyos-bore";
cpusched = "bore";
processorOpt = "x86_64-v4";
})
(mkCachyKernel {
pname = "linux-cachyos-bore-zen4";
inherit (linuxSources.latest) version src;
configVariant = "linux-cachyos-bore";
cpusched = "bore";
processorOpt = "zen4";
})
(mkCachyKernel {
pname = "linux-cachyos-bore-lto";
inherit (linuxSources.latest) version src;
configVariant = "linux-cachyos-bore";
lto = "thin";
cpusched = "bore";
})
(mkCachyKernel {
pname = "linux-cachyos-bore-lto-x86_64-v3";
inherit (linuxSources.latest) version src;
configVariant = "linux-cachyos-bore";
lto = "thin";
cpusched = "bore";
processorOpt = "x86_64-v3";
})
(mkCachyKernel {
pname = "linux-cachyos-bore-lto-x86_64-v4";
inherit (linuxSources.latest) version src;
configVariant = "linux-cachyos-bore";
lto = "thin";
cpusched = "bore";
processorOpt = "x86_64-v4";
})
(mkCachyKernel {
pname = "linux-cachyos-bore-lto-zen4";
inherit (linuxSources.latest) version src;
configVariant = "linux-cachyos-bore";
lto = "thin";
cpusched = "bore";
processorOpt = "zen4";
})
# Additional CachyOS provided variants
(mkCachyKernel {
pname = "linux-cachyos-bmq";
@ -161,19 +195,6 @@ builtins.listToAttrs (
lto = "thin";
cpusched = "bmq";
})
(mkCachyKernel {
pname = "linux-cachyos-bore";
inherit (linuxSources.latest) version src;
configVariant = "linux-cachyos-bore";
cpusched = "bore";
})
(mkCachyKernel {
pname = "linux-cachyos-bore-lto";
inherit (linuxSources.latest) version src;
configVariant = "linux-cachyos-bore";
lto = "thin";
cpusched = "bore";
})
(mkCachyKernel {
pname = "linux-cachyos-deckify";
inherit (linuxSources.latest) version src;