From 4ba36093471fd7dbed0259e65fcc88c653d15c20 Mon Sep 17 00:00:00 2001 From: Eric Naim Date: Mon, 23 Sep 2024 17:43:37 +0800 Subject: [PATCH] Add patch to workaround incompatible dkms modules when building with clang Signed-off-by: Eric Naim --- linux-cachyos-bmq/.SRCINFO | 2 +- linux-cachyos-bmq/PKGBUILD | 24 +++++++++++++----------- linux-cachyos-bore/.SRCINFO | 2 +- linux-cachyos-bore/PKGBUILD | 24 +++++++++++++----------- linux-cachyos-deckify/.SRCINFO | 2 +- linux-cachyos-deckify/PKGBUILD | 24 +++++++++++++----------- linux-cachyos-eevdf/.SRCINFO | 2 +- linux-cachyos-eevdf/PKGBUILD | 24 +++++++++++++----------- linux-cachyos-hardened/.SRCINFO | 2 +- linux-cachyos-hardened/PKGBUILD | 24 +++++++++++++----------- linux-cachyos-lts/PKGBUILD | 22 ++++++++++++---------- linux-cachyos-rc/PKGBUILD | 22 ++++++++++++---------- linux-cachyos-rt-bore/.SRCINFO | 2 +- linux-cachyos-rt-bore/PKGBUILD | 24 +++++++++++++----------- linux-cachyos-sched-ext/.SRCINFO | 2 +- linux-cachyos-sched-ext/PKGBUILD | 24 +++++++++++++----------- linux-cachyos-server/.SRCINFO | 2 +- linux-cachyos-server/PKGBUILD | 24 +++++++++++++----------- linux-cachyos/.SRCINFO | 2 +- linux-cachyos/PKGBUILD | 24 +++++++++++++----------- 20 files changed, 150 insertions(+), 128 deletions(-) diff --git a/linux-cachyos-bmq/.SRCINFO b/linux-cachyos-bmq/.SRCINFO index 0bf4561c..741c317e 100644 --- a/linux-cachyos-bmq/.SRCINFO +++ b/linux-cachyos-bmq/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = linux-cachyos-bmq pkgdesc = Linux BORE + Cachy Sauce scheduler Kernel by CachyOS with other patches and improvements pkgver = 6.11.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/CachyOS/linux-cachyos arch = x86_64 license = GPL-2.0-only diff --git a/linux-cachyos-bmq/PKGBUILD b/linux-cachyos-bmq/PKGBUILD index 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=( xz zstd ) -# 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" ]]; then unset _build_zfs diff --git a/linux-cachyos-bore/.SRCINFO b/linux-cachyos-bore/.SRCINFO index c5ee7ac4..5ffb5a4c 100644 --- a/linux-cachyos-bore/.SRCINFO +++ b/linux-cachyos-bore/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = linux-cachyos-bore pkgdesc = Linux BORE + Cachy Sauce scheduler Kernel by CachyOS with other patches and improvements pkgver = 6.11.0 - pkgrel = 4 + pkgrel = 5 url = https://github.com/CachyOS/linux-cachyos arch = x86_64 license = GPL-2.0-only diff --git a/linux-cachyos-bore/PKGBUILD b/linux-cachyos-bore/PKGBUILD index 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=( xz zstd ) -# 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" ]]; then unset _build_zfs diff --git a/linux-cachyos-deckify/.SRCINFO b/linux-cachyos-deckify/.SRCINFO index 1286f06d..e58ca611 100644 --- a/linux-cachyos-deckify/.SRCINFO +++ b/linux-cachyos-deckify/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = linux-cachyos-deckify pkgdesc = Linux SCHED-EXT + Cachy Sauce + BORE + Deckify Patches Kernel by CachyOS with other patches and improvements pkgver = 6.11.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/CachyOS/linux-cachyos arch = x86_64 license = GPL-2.0-only diff --git a/linux-cachyos-deckify/PKGBUILD b/linux-cachyos-deckify/PKGBUILD index 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=( xz zstd ) -# 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" ]]; then unset _build_zfs diff --git a/linux-cachyos-eevdf/.SRCINFO b/linux-cachyos-eevdf/.SRCINFO index 3aef67b8..02ac960d 100644 --- a/linux-cachyos-eevdf/.SRCINFO +++ b/linux-cachyos-eevdf/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = linux-cachyos-eevdf pkgdesc = Linux EEVDF scheduler + Cachy Sauce Kernel by CachyOS with other patches and improvements pkgver = 6.11.0 - pkgrel = 4 + pkgrel = 5 url = https://github.com/CachyOS/linux-cachyos arch = x86_64 license = GPL-2.0-only diff --git a/linux-cachyos-eevdf/PKGBUILD b/linux-cachyos-eevdf/PKGBUILD index 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=( xz zstd ) -# 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" ]]; then unset _build_zfs diff --git a/linux-cachyos-hardened/.SRCINFO b/linux-cachyos-hardened/.SRCINFO index 264ce730..de982c80 100644 --- a/linux-cachyos-hardened/.SRCINFO +++ b/linux-cachyos-hardened/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = linux-cachyos-hardened pkgdesc = Linux BORE scheduler and hardened Kernel by CachyOS with other patches and improvements pkgver = 6.10.10 - pkgrel = 1 + pkgrel = 2 url = https://github.com/CachyOS/linux-cachyos arch = x86_64 license = GPL-2.0-only diff --git a/linux-cachyos-hardened/PKGBUILD b/linux-cachyos-hardened/PKGBUILD index 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=( xz zstd ) -# 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" ]]; then unset _build_zfs diff --git a/linux-cachyos-lts/PKGBUILD b/linux-cachyos-lts/PKGBUILD index 7317ce06..d6a6c27f 100644 --- a/linux-cachyos-lts/PKGBUILD +++ b/linux-cachyos-lts/PKGBUILD @@ -202,16 +202,6 @@ makedepends=( xz zstd ) -# 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" ]]; then unset _build_zfs diff --git a/linux-cachyos-rc/PKGBUILD b/linux-cachyos-rc/PKGBUILD index e35929a0..7df85920 100644 --- a/linux-cachyos-rc/PKGBUILD +++ b/linux-cachyos-rc/PKGBUILD @@ -179,16 +179,6 @@ makedepends=( xz zstd ) -# 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" ]]; then unset _build_zfs diff --git a/linux-cachyos-rt-bore/.SRCINFO b/linux-cachyos-rt-bore/.SRCINFO index 90566010..97e52c9e 100644 --- a/linux-cachyos-rt-bore/.SRCINFO +++ b/linux-cachyos-rt-bore/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = linux-cachyos-rt-bore pkgdesc = Linux BORE-RT + Cachy Sauce Kernel by CachyOS with other patches and improvements pkgver = 6.11.0 - pkgrel = 4 + pkgrel = 5 url = https://github.com/CachyOS/linux-cachyos arch = x86_64 license = GPL-2.0-only diff --git a/linux-cachyos-rt-bore/PKGBUILD b/linux-cachyos-rt-bore/PKGBUILD index 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=( xz zstd ) -# 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" ]]; then unset _build_zfs diff --git a/linux-cachyos-sched-ext/.SRCINFO b/linux-cachyos-sched-ext/.SRCINFO index bfdd708b..65fdae69 100644 --- a/linux-cachyos-sched-ext/.SRCINFO +++ b/linux-cachyos-sched-ext/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = linux-cachyos-sched-ext pkgdesc = Linux SCHED-EXT + Cachy Sauce Kernel by CachyOS with other patches and improvements pkgver = 6.11.0 - pkgrel = 4 + pkgrel = 5 url = https://github.com/CachyOS/linux-cachyos arch = x86_64 license = GPL-2.0-only diff --git a/linux-cachyos-sched-ext/PKGBUILD b/linux-cachyos-sched-ext/PKGBUILD index 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=( xz zstd ) -# 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" ]]; then unset _build_zfs diff --git a/linux-cachyos-server/.SRCINFO b/linux-cachyos-server/.SRCINFO index daa45435..71b07688 100644 --- a/linux-cachyos-server/.SRCINFO +++ b/linux-cachyos-server/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = linux-cachyos-server pkgdesc = Linux EEVDF scheduler Kernel by CachyOS targeted for Servers workloads pkgver = 6.11.0 - pkgrel = 4 + pkgrel = 5 url = https://github.com/CachyOS/linux-cachyos arch = x86_64 license = GPL-2.0-only diff --git a/linux-cachyos-server/PKGBUILD b/linux-cachyos-server/PKGBUILD index 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=( xz zstd ) -# 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" ]]; then unset _build_zfs diff --git a/linux-cachyos/.SRCINFO b/linux-cachyos/.SRCINFO index ccffa867..fad3aa62 100644 --- a/linux-cachyos/.SRCINFO +++ b/linux-cachyos/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = linux-cachyos pkgdesc = Linux SCHED-EXT + BORE + Cachy Sauce Kernel by CachyOS with other patches and improvements pkgver = 6.11.0 - pkgrel = 4 + pkgrel = 5 url = https://github.com/CachyOS/linux-cachyos arch = x86_64 license = GPL-2.0-only diff --git a/linux-cachyos/PKGBUILD b/linux-cachyos/PKGBUILD index 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=( xz zstd ) -# 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" ]]; then unset _build_zfs