Archlinux Kernel based on different schedulers and some other performance improvements.
Shell archlinuxbaby-schedcachycachy-schedulercachyoscacule-schedkernellinux-kernelperformanceperformance-tuning
Add patch to workaround incompatible dkms modules when building with clang (#300)
Eric Naim93d051f30780
diff --git a/linux-cachyos-bmq/.SRCINFO b/linux-cachyos-bmq/.SRCINFOindex 0bf4561c..741c317e 100644--- a/linux-cachyos-bmq/.SRCINFO+++ b/linux-cachyos-bmq/.SRCINFO@@ -1,7 +1,7 @@pkgbase = linux-cachyos-bmqpkgdesc = Linux BORE + Cachy Sauce scheduler Kernel by CachyOS with other patches and improvementspkgver = 6.11.0- pkgrel = 1+ pkgrel = 2url = https://github.com/CachyOS/linux-cachyosarch = x86_64license = GPL-2.0-onlydiff --git a/linux-cachyos-bmq/PKGBUILD b/linux-cachyos-bmq/PKGBUILDindex f88ff1a4..8ea07550 100644--- a/linux-cachyos-bmq/PKGBUILD+++ b/linux-cachyos-bmq/PKGBUILD@@ -160,7 +160,7 @@ _stable=${_major}_srcname=linux-${_stable}#_srcname=linux-${_major}pkgdesc='Linux BORE + Cachy Sauce scheduler Kernel by CachyOS with other patches and improvements'-pkgrel=1+pkgrel=2_kernver="$pkgver-$pkgrel"_kernuname="${pkgver}-${_pkgsuffix}"arch=('x86_64')@@ -179,16 +179,6 @@ makedepends=(xzzstd)-# LLVM makedepends-if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then- makedepends+=(clang llvm lld)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- LLVM_IAS=1- )-fi_patchsource="https://raw.githubusercontent.com/cachyos/kernel-patches/master/${_major}"_nv_ver=560.35.03@@ -200,6 +190,18 @@ source=("auto-cpu-optimization.sh""${_patchsource}/all/0001-cachyos-base-all.patch")+# LLVM makedepends+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then+ makedepends+=(clang llvm lld)+ source+=("${_patchsource}/misc/dkms-clang.patch")+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ LLVM_IAS=1+ )+fi+# WARNING The ZFS module doesn't build with selected RT sched due to licensing issues.if [[ "$_cpusched" = "rt" || "$_cpusched" = "rt-bore" ]]; thenunset _build_zfsdiff --git a/linux-cachyos-bore/.SRCINFO b/linux-cachyos-bore/.SRCINFOindex c5ee7ac4..5ffb5a4c 100644--- a/linux-cachyos-bore/.SRCINFO+++ b/linux-cachyos-bore/.SRCINFO@@ -1,7 +1,7 @@pkgbase = linux-cachyos-borepkgdesc = Linux BORE + Cachy Sauce scheduler Kernel by CachyOS with other patches and improvementspkgver = 6.11.0- pkgrel = 4+ pkgrel = 5url = https://github.com/CachyOS/linux-cachyosarch = x86_64license = GPL-2.0-onlydiff --git a/linux-cachyos-bore/PKGBUILD b/linux-cachyos-bore/PKGBUILDindex 505be1cf..c40ad3e6 100644--- a/linux-cachyos-bore/PKGBUILD+++ b/linux-cachyos-bore/PKGBUILD@@ -160,7 +160,7 @@ _stable=${_major}_srcname=linux-${_stable}#_srcname=linux-${_major}pkgdesc='Linux BORE + Cachy Sauce scheduler Kernel by CachyOS with other patches and improvements'-pkgrel=4+pkgrel=5_kernver="$pkgver-$pkgrel"_kernuname="${pkgver}-${_pkgsuffix}"arch=('x86_64')@@ -179,16 +179,6 @@ makedepends=(xzzstd)-# LLVM makedepends-if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then- makedepends+=(clang llvm lld)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- LLVM_IAS=1- )-fi_patchsource="https://raw.githubusercontent.com/cachyos/kernel-patches/master/${_major}"_nv_ver=560.35.03@@ -200,6 +190,18 @@ source=("auto-cpu-optimization.sh""${_patchsource}/all/0001-cachyos-base-all.patch")+# LLVM makedepends+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then+ makedepends+=(clang llvm lld)+ source+=("${_patchsource}/misc/dkms-clang.patch")+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ LLVM_IAS=1+ )+fi+# WARNING The ZFS module doesn't build with selected RT sched due to licensing issues.if [[ "$_cpusched" = "rt" || "$_cpusched" = "rt-bore" ]]; thenunset _build_zfsdiff --git a/linux-cachyos-deckify/.SRCINFO b/linux-cachyos-deckify/.SRCINFOindex 1286f06d..e58ca611 100644--- a/linux-cachyos-deckify/.SRCINFO+++ b/linux-cachyos-deckify/.SRCINFO@@ -1,7 +1,7 @@pkgbase = linux-cachyos-deckifypkgdesc = Linux SCHED-EXT + Cachy Sauce + BORE + Deckify Patches Kernel by CachyOS with other patches and improvementspkgver = 6.11.0- pkgrel = 1+ pkgrel = 2url = https://github.com/CachyOS/linux-cachyosarch = x86_64license = GPL-2.0-onlydiff --git a/linux-cachyos-deckify/PKGBUILD b/linux-cachyos-deckify/PKGBUILDindex e1df9a01..1a5a63ae 100644--- a/linux-cachyos-deckify/PKGBUILD+++ b/linux-cachyos-deckify/PKGBUILD@@ -160,7 +160,7 @@ _stable=${_major}_srcname=linux-${_stable}#_srcname=linux-${_major}pkgdesc='Linux SCHED-EXT + Cachy Sauce + BORE + Deckify Patches Kernel by CachyOS with other patches and improvements'-pkgrel=1+pkgrel=2_kernver="$pkgver-$pkgrel"_kernuname="${pkgver}-${_pkgsuffix}"arch=('x86_64')@@ -179,16 +179,6 @@ makedepends=(xzzstd)-# LLVM makedepends-if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then- makedepends+=(clang llvm lld)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- LLVM_IAS=1- )-fi_patchsource="https://raw.githubusercontent.com/cachyos/kernel-patches/master/${_major}"_nv_ver=560.35.03@@ -203,6 +193,18 @@ source=("${_patchsource}/misc/0001-acpi-call.patch""${_patchsource}/misc/0001-handheld.patch")+# LLVM makedepends+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then+ makedepends+=(clang llvm lld)+ source+=("${_patchsource}/misc/dkms-clang.patch")+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ LLVM_IAS=1+ )+fi+# WARNING The ZFS module doesn't build with selected RT sched due to licensing issues.if [[ "$_cpusched" = "rt" || "$_cpusched" = "rt-bore" ]]; thenunset _build_zfsdiff --git a/linux-cachyos-eevdf/.SRCINFO b/linux-cachyos-eevdf/.SRCINFOindex 3aef67b8..02ac960d 100644--- a/linux-cachyos-eevdf/.SRCINFO+++ b/linux-cachyos-eevdf/.SRCINFO@@ -1,7 +1,7 @@pkgbase = linux-cachyos-eevdfpkgdesc = Linux EEVDF scheduler + Cachy Sauce Kernel by CachyOS with other patches and improvementspkgver = 6.11.0- pkgrel = 4+ pkgrel = 5url = https://github.com/CachyOS/linux-cachyosarch = x86_64license = GPL-2.0-onlydiff --git a/linux-cachyos-eevdf/PKGBUILD b/linux-cachyos-eevdf/PKGBUILDindex 2d016eb3..976cefb1 100644--- a/linux-cachyos-eevdf/PKGBUILD+++ b/linux-cachyos-eevdf/PKGBUILD@@ -160,7 +160,7 @@ _stable=${_major}_srcname=linux-${_stable}#_srcname=linux-${_major}pkgdesc='Linux EEVDF scheduler + Cachy Sauce Kernel by CachyOS with other patches and improvements'-pkgrel=4+pkgrel=5_kernver="$pkgver-$pkgrel"_kernuname="${pkgver}-${_pkgsuffix}"arch=('x86_64')@@ -179,16 +179,6 @@ makedepends=(xzzstd)-# LLVM makedepends-if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then- makedepends+=(clang llvm lld)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- LLVM_IAS=1- )-fi_patchsource="https://raw.githubusercontent.com/cachyos/kernel-patches/master/${_major}"_nv_ver=560.35.03@@ -200,6 +190,18 @@ source=("auto-cpu-optimization.sh""${_patchsource}/all/0001-cachyos-base-all.patch")+# LLVM makedepends+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then+ makedepends+=(clang llvm lld)+ source+=("${_patchsource}/misc/dkms-clang.patch")+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ LLVM_IAS=1+ )+fi+# WARNING The ZFS module doesn't build with selected RT sched due to licensing issues.if [[ "$_cpusched" = "rt" || "$_cpusched" = "rt-bore" ]]; thenunset _build_zfsdiff --git a/linux-cachyos-hardened/.SRCINFO b/linux-cachyos-hardened/.SRCINFOindex 264ce730..de982c80 100644--- a/linux-cachyos-hardened/.SRCINFO+++ b/linux-cachyos-hardened/.SRCINFO@@ -1,7 +1,7 @@pkgbase = linux-cachyos-hardenedpkgdesc = Linux BORE scheduler and hardened Kernel by CachyOS with other patches and improvementspkgver = 6.10.10- pkgrel = 1+ pkgrel = 2url = https://github.com/CachyOS/linux-cachyosarch = x86_64license = GPL-2.0-onlydiff --git a/linux-cachyos-hardened/PKGBUILD b/linux-cachyos-hardened/PKGBUILDindex dfbfbf2c..fbcf1d82 100644--- a/linux-cachyos-hardened/PKGBUILD+++ b/linux-cachyos-hardened/PKGBUILD@@ -160,7 +160,7 @@ _stable=${_major}.${_minor}_srcname=linux-${_stable}#_srcname=linux-${_major}pkgdesc='Linux BORE scheduler and hardened Kernel by CachyOS with other patches and improvements'-pkgrel=1+pkgrel=2_kernver="$pkgver-$pkgrel"_kernuname="${pkgver}-${_pkgsuffix}"arch=('x86_64')@@ -179,16 +179,6 @@ makedepends=(xzzstd)-# LLVM makedepends-if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then- makedepends+=(clang llvm lld)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- LLVM_IAS=1- )-fi_patchsource="https://raw.githubusercontent.com/cachyos/kernel-patches/master/${_major}"_nv_ver=560.35.03@@ -200,6 +190,18 @@ source=("auto-cpu-optimization.sh""${_patchsource}/all/0001-cachyos-base-all.patch")+# LLVM makedepends+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then+ makedepends+=(clang llvm lld)+ source+=("${_patchsource}/misc/dkms-clang.patch")+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ LLVM_IAS=1+ )+fi+# WARNING The ZFS module doesn't build with selected RT sched due to licensing issues.if [[ "$_cpusched" = "rt" || "$_cpusched" = "rt-bore" ]]; thenunset _build_zfsdiff --git a/linux-cachyos-lts/PKGBUILD b/linux-cachyos-lts/PKGBUILDindex 7317ce06..d6a6c27f 100644--- a/linux-cachyos-lts/PKGBUILD+++ b/linux-cachyos-lts/PKGBUILD@@ -202,16 +202,6 @@ makedepends=(xzzstd)-# LLVM makedepends-if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then- makedepends+=(clang llvm lld)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- LLVM_IAS=1- )-fi_patchsource="https://raw.githubusercontent.com/cachyos/kernel-patches/master/${_major}"_nv_ver=560.35.03@@ -223,6 +213,18 @@ source=("auto-cpu-optimization.sh""${_patchsource}/all/0001-cachyos-base-all.patch")+# LLVM makedepends+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then+ makedepends+=(clang llvm lld)+ source+=("${_patchsource}/misc/dkms-clang.patch")+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ LLVM_IAS=1+ )+fi+# WARNING The ZFS module doesn't build with selected RT sched due to licensing issues.if [[ "$_cpusched" = "rt" || "$_cpusched" = "rt-bore" ]]; thenunset _build_zfsdiff --git a/linux-cachyos-rc/PKGBUILD b/linux-cachyos-rc/PKGBUILDindex e35929a0..7df85920 100644--- a/linux-cachyos-rc/PKGBUILD+++ b/linux-cachyos-rc/PKGBUILD@@ -179,16 +179,6 @@ makedepends=(xzzstd)-# LLVM makedepends-if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then- makedepends+=(clang llvm lld)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- LLVM_IAS=1- )-fi_patchsource="https://raw.githubusercontent.com/cachyos/kernel-patches/master/${_major}"_nv_ver=560.35.03@@ -200,6 +190,18 @@ source=("auto-cpu-optimization.sh""${_patchsource}/all/0001-cachyos-base-all.patch")+# LLVM makedepends+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then+ makedepends+=(clang llvm lld)+ source+=("${_patchsource}/misc/dkms-clang.patch")+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ LLVM_IAS=1+ )+fi+# WARNING The ZFS module doesn't build with selected RT sched due to licensing issues.if [[ "$_cpusched" = "rt" || "$_cpusched" = "rt-bore" ]]; thenunset _build_zfsdiff --git a/linux-cachyos-rt-bore/.SRCINFO b/linux-cachyos-rt-bore/.SRCINFOindex 90566010..97e52c9e 100644--- a/linux-cachyos-rt-bore/.SRCINFO+++ b/linux-cachyos-rt-bore/.SRCINFO@@ -1,7 +1,7 @@pkgbase = linux-cachyos-rt-borepkgdesc = Linux BORE-RT + Cachy Sauce Kernel by CachyOS with other patches and improvementspkgver = 6.11.0- pkgrel = 4+ pkgrel = 5url = https://github.com/CachyOS/linux-cachyosarch = x86_64license = GPL-2.0-onlydiff --git a/linux-cachyos-rt-bore/PKGBUILD b/linux-cachyos-rt-bore/PKGBUILDindex 86a5d94a..2fdb5ff5 100644--- a/linux-cachyos-rt-bore/PKGBUILD+++ b/linux-cachyos-rt-bore/PKGBUILD@@ -160,7 +160,7 @@ _stable=${_major}_srcname=linux-${_stable}#_srcname=linux-${_major}pkgdesc='Linux BORE-RT + Cachy Sauce Kernel by CachyOS with other patches and improvements'-pkgrel=4+pkgrel=5_kernver="$pkgver-$pkgrel"_kernuname="${pkgver}-${_pkgsuffix}"arch=('x86_64')@@ -179,16 +179,6 @@ makedepends=(xzzstd)-# LLVM makedepends-if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then- makedepends+=(clang llvm lld)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- LLVM_IAS=1- )-fi_patchsource="https://raw.githubusercontent.com/cachyos/kernel-patches/master/${_major}"_nv_ver=560.35.03@@ -200,6 +190,18 @@ source=("auto-cpu-optimization.sh""${_patchsource}/all/0001-cachyos-base-all.patch")+# LLVM makedepends+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then+ makedepends+=(clang llvm lld)+ source+=("${_patchsource}/misc/dkms-clang.patch")+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ LLVM_IAS=1+ )+fi+# WARNING The ZFS module doesn't build with selected RT sched due to licensing issues.if [[ "$_cpusched" = "rt" || "$_cpusched" = "rt-bore" ]]; thenunset _build_zfsdiff --git a/linux-cachyos-sched-ext/.SRCINFO b/linux-cachyos-sched-ext/.SRCINFOindex bfdd708b..65fdae69 100644--- a/linux-cachyos-sched-ext/.SRCINFO+++ b/linux-cachyos-sched-ext/.SRCINFO@@ -1,7 +1,7 @@pkgbase = linux-cachyos-sched-extpkgdesc = Linux SCHED-EXT + Cachy Sauce Kernel by CachyOS with other patches and improvementspkgver = 6.11.0- pkgrel = 4+ pkgrel = 5url = https://github.com/CachyOS/linux-cachyosarch = x86_64license = GPL-2.0-onlydiff --git a/linux-cachyos-sched-ext/PKGBUILD b/linux-cachyos-sched-ext/PKGBUILDindex fd4a42c0..43262539 100644--- a/linux-cachyos-sched-ext/PKGBUILD+++ b/linux-cachyos-sched-ext/PKGBUILD@@ -160,7 +160,7 @@ _stable=${_major}_srcname=linux-${_stable}#_srcname=linux-${_major}pkgdesc='Linux SCHED-EXT + Cachy Sauce Kernel by CachyOS with other patches and improvements'-pkgrel=4+pkgrel=5_kernver="$pkgver-$pkgrel"_kernuname="${pkgver}-${_pkgsuffix}"arch=('x86_64')@@ -179,16 +179,6 @@ makedepends=(xzzstd)-# LLVM makedepends-if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then- makedepends+=(clang llvm lld)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- LLVM_IAS=1- )-fi_patchsource="https://raw.githubusercontent.com/cachyos/kernel-patches/master/${_major}"_nv_ver=560.35.03@@ -200,6 +190,18 @@ source=("auto-cpu-optimization.sh""${_patchsource}/all/0001-cachyos-base-all.patch")+# LLVM makedepends+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then+ makedepends+=(clang llvm lld)+ source+=("${_patchsource}/misc/dkms-clang.patch")+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ LLVM_IAS=1+ )+fi+# WARNING The ZFS module doesn't build with selected RT sched due to licensing issues.if [[ "$_cpusched" = "rt" || "$_cpusched" = "rt-bore" ]]; thenunset _build_zfsdiff --git a/linux-cachyos-server/.SRCINFO b/linux-cachyos-server/.SRCINFOindex daa45435..71b07688 100644--- a/linux-cachyos-server/.SRCINFO+++ b/linux-cachyos-server/.SRCINFO@@ -1,7 +1,7 @@pkgbase = linux-cachyos-serverpkgdesc = Linux EEVDF scheduler Kernel by CachyOS targeted for Servers workloadspkgver = 6.11.0- pkgrel = 4+ pkgrel = 5url = https://github.com/CachyOS/linux-cachyosarch = x86_64license = GPL-2.0-onlydiff --git a/linux-cachyos-server/PKGBUILD b/linux-cachyos-server/PKGBUILDindex 6adb9737..5d13cee1 100644--- a/linux-cachyos-server/PKGBUILD+++ b/linux-cachyos-server/PKGBUILD@@ -160,7 +160,7 @@ _stable=${_major}_srcname=linux-${_stable}#_srcname=linux-${_major}pkgdesc='Linux EEVDF scheduler Kernel by CachyOS targeted for Servers workloads'-pkgrel=4+pkgrel=5_kernver="$pkgver-$pkgrel"_kernuname="${pkgver}-${_pkgsuffix}"arch=('x86_64')@@ -179,16 +179,6 @@ makedepends=(xzzstd)-# LLVM makedepends-if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then- makedepends+=(clang llvm lld)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- LLVM_IAS=1- )-fi_patchsource="https://raw.githubusercontent.com/cachyos/kernel-patches/master/${_major}"_nv_ver=560.35.03@@ -200,6 +190,18 @@ source=("auto-cpu-optimization.sh""${_patchsource}/all/0001-cachyos-base-all.patch")+# LLVM makedepends+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then+ makedepends+=(clang llvm lld)+ source+=("${_patchsource}/misc/dkms-clang.patch")+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ LLVM_IAS=1+ )+fi+# WARNING The ZFS module doesn't build with selected RT sched due to licensing issues.if [[ "$_cpusched" = "rt" || "$_cpusched" = "rt-bore" ]]; thenunset _build_zfsdiff --git a/linux-cachyos/.SRCINFO b/linux-cachyos/.SRCINFOindex ccffa867..fad3aa62 100644--- a/linux-cachyos/.SRCINFO+++ b/linux-cachyos/.SRCINFO@@ -1,7 +1,7 @@pkgbase = linux-cachyospkgdesc = Linux SCHED-EXT + BORE + Cachy Sauce Kernel by CachyOS with other patches and improvementspkgver = 6.11.0- pkgrel = 4+ pkgrel = 5url = https://github.com/CachyOS/linux-cachyosarch = x86_64license = GPL-2.0-onlydiff --git a/linux-cachyos/PKGBUILD b/linux-cachyos/PKGBUILDindex 8cb546bf..5eca7558 100644--- a/linux-cachyos/PKGBUILD+++ b/linux-cachyos/PKGBUILD@@ -160,7 +160,7 @@ _stable=${_major}_srcname=linux-${_stable}#_srcname=linux-${_major}pkgdesc='Linux SCHED-EXT + BORE + Cachy Sauce Kernel by CachyOS with other patches and improvements'-pkgrel=4+pkgrel=5_kernver="$pkgver-$pkgrel"_kernuname="${pkgver}-${_pkgsuffix}"arch=('x86_64')@@ -179,16 +179,6 @@ makedepends=(xzzstd)-# LLVM makedepends-if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then- makedepends+=(clang llvm lld)- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- LLVM_IAS=1- )-fi_patchsource="https://raw.githubusercontent.com/cachyos/kernel-patches/master/${_major}"_nv_ver=560.35.03@@ -200,6 +190,18 @@ source=("auto-cpu-optimization.sh""${_patchsource}/all/0001-cachyos-base-all.patch")+# LLVM makedepends+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; then+ makedepends+=(clang llvm lld)+ source+=("${_patchsource}/misc/dkms-clang.patch")+ BUILD_FLAGS=(+ CC=clang+ LD=ld.lld+ LLVM=1+ LLVM_IAS=1+ )+fi+# WARNING The ZFS module doesn't build with selected RT sched due to licensing issues.if [[ "$_cpusched" = "rt" || "$_cpusched" = "rt-bore" ]]; thenunset _build_zfs