Archlinux Kernel based on different schedulers and some other performance improvements.
Shell archlinuxbaby-schedcachycachy-schedulercachyoscacule-schedkernellinux-kernelperformanceperformance-tuning
Merge kCFI and LTO checks
Vasiliy Stelmachenok2510c909bfb1
diff --git a/linux-bore/PKGBUILD b/linux-bore/PKGBUILDindex 200f76b5..b2954c4c 100644--- a/linux-bore/PKGBUILD+++ b/linux-bore/PKGBUILD@@ -215,7 +215,7 @@ license=('GPL2')options=('!strip')makedepends=('bc' 'libelf' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'zstd' 'gcc' 'gcc-libs' 'glibc' 'binutils' 'make' 'patch')# LLVM makedepends-if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]]; then+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; thenmakedepends+=(clang llvm lld python)BUILD_FLAGS=(CC=clang@@ -256,14 +256,6 @@ case "$_cpusched" in"${_patchsource}/misc/0001-hardened.patch");;esac-## Kernel CFI Patch-if [ -n "$_use_kcfi" ]; then- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- )-fi## bcachefs Supportif [ -n "$_bcachefs" ]; thensource+=("${_patchsource}/misc/0001-bcachefs.patch")diff --git a/linux-cachyos-bmq/PKGBUILD b/linux-cachyos-bmq/PKGBUILDindex e263a4f0..32032be5 100644--- a/linux-cachyos-bmq/PKGBUILD+++ b/linux-cachyos-bmq/PKGBUILD@@ -215,7 +215,7 @@ license=('GPL2')options=('!strip')makedepends=('bc' 'libelf' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'zstd' 'gcc' 'gcc-libs' 'glibc' 'binutils' 'make' 'patch')# LLVM makedepends-if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]]; then+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; thenmakedepends+=(clang llvm lld python)BUILD_FLAGS=(CC=clang@@ -256,14 +256,6 @@ case "$_cpusched" in"${_patchsource}/misc/0001-hardened.patch");;esac-## Kernel CFI Patch-if [ -n "$_use_kcfi" ]; then- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- )-fi## bcachefs Supportif [ -n "$_bcachefs" ]; thensource+=("${_patchsource}/misc/0001-bcachefs.patch")diff --git a/linux-cachyos-bore/PKGBUILD b/linux-cachyos-bore/PKGBUILDindex 9aea9345..5acbfa62 100644--- a/linux-cachyos-bore/PKGBUILD+++ b/linux-cachyos-bore/PKGBUILD@@ -215,7 +215,7 @@ license=('GPL2')options=('!strip')makedepends=('bc' 'libelf' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'zstd' 'gcc' 'gcc-libs' 'glibc' 'binutils' 'make' 'patch')# LLVM makedepends-if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]]; then+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; thenmakedepends+=(clang llvm lld python)BUILD_FLAGS=(CC=clang@@ -256,14 +256,6 @@ case "$_cpusched" in"${_patchsource}/misc/0001-hardened.patch");;esac-## Kernel CFI Patch-if [ -n "$_use_kcfi" ]; then- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- )-fi## bcachefs Supportif [ -n "$_bcachefs" ]; thensource+=("${_patchsource}/misc/0001-bcachefs.patch")diff --git a/linux-cachyos-cfs/PKGBUILD b/linux-cachyos-cfs/PKGBUILDindex 41d8d035..32a45d60 100644--- a/linux-cachyos-cfs/PKGBUILD+++ b/linux-cachyos-cfs/PKGBUILD@@ -215,7 +215,7 @@ license=('GPL2')options=('!strip')makedepends=('bc' 'libelf' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'zstd' 'gcc' 'gcc-libs' 'glibc' 'binutils' 'make' 'patch')# LLVM makedepends-if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]]; then+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; thenmakedepends+=(clang llvm lld python)BUILD_FLAGS=(CC=clang@@ -256,14 +256,6 @@ case "$_cpusched" in"${_patchsource}/misc/0001-hardened.patch");;esac-## Kernel CFI Patch-if [ -n "$_use_kcfi" ]; then- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- )-fi## bcachefs Supportif [ -n "$_bcachefs" ]; thensource+=("${_patchsource}/misc/0001-bcachefs.patch")diff --git a/linux-cachyos-hardened/PKGBUILD b/linux-cachyos-hardened/PKGBUILDindex 66d843ea..43f4cf06 100644--- a/linux-cachyos-hardened/PKGBUILD+++ b/linux-cachyos-hardened/PKGBUILD@@ -215,7 +215,7 @@ license=('GPL2')options=('!strip')makedepends=('bc' 'libelf' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'zstd' 'gcc' 'gcc-libs' 'glibc' 'binutils' 'make' 'patch')# LLVM makedepends-if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]]; then+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; thenmakedepends+=(clang llvm lld python)BUILD_FLAGS=(CC=clang@@ -256,14 +256,6 @@ case "$_cpusched" in"${_patchsource}/misc/0001-hardened.patch");;esac-## Kernel CFI Patch-if [ -n "$_use_kcfi" ]; then- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- )-fi## bcachefs Supportif [ -n "$_bcachefs" ]; thensource+=("${_patchsource}/misc/0001-bcachefs.patch")diff --git a/linux-cachyos-pds/PKGBUILD b/linux-cachyos-pds/PKGBUILDindex a1d5bda8..e17a1136 100644--- a/linux-cachyos-pds/PKGBUILD+++ b/linux-cachyos-pds/PKGBUILD@@ -215,7 +215,7 @@ license=('GPL2')options=('!strip')makedepends=('bc' 'libelf' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'zstd' 'gcc' 'gcc-libs' 'glibc' 'binutils' 'make' 'patch')# LLVM makedepends-if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]]; then+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; thenmakedepends+=(clang llvm lld python)BUILD_FLAGS=(CC=clang@@ -256,14 +256,6 @@ case "$_cpusched" in"${_patchsource}/misc/0001-hardened.patch");;esac-## Kernel CFI Patch-if [ -n "$_use_kcfi" ]; then- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- )-fi## bcachefs Supportif [ -n "$_bcachefs" ]; thensource+=("${_patchsource}/misc/0001-bcachefs.patch")diff --git a/linux-cachyos-rc/PKGBUILD b/linux-cachyos-rc/PKGBUILDindex d206595f..1ffc47ce 100644--- a/linux-cachyos-rc/PKGBUILD+++ b/linux-cachyos-rc/PKGBUILD@@ -215,7 +215,7 @@ license=('GPL2')options=('!strip')makedepends=('bc' 'libelf' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'zstd' 'gcc' 'gcc-libs' 'glibc' 'binutils' 'make' 'patch')# LLVM makedepends-if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]]; then+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; thenmakedepends+=(clang llvm lld python)BUILD_FLAGS=(CC=clang@@ -256,14 +256,6 @@ case "$_cpusched" in"${_patchsource}/misc/0001-hardened.patch");;esac-## Kernel CFI Patch-if [ -n "$_use_kcfi" ]; then- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- )-fi## bcachefs Supportif [ -n "$_bcachefs" ]; thensource+=("${_patchsource}/misc/0001-bcachefs.patch")diff --git a/linux-cachyos-server/PKGBUILD b/linux-cachyos-server/PKGBUILDindex a640f95b..ce5f04e6 100644--- a/linux-cachyos-server/PKGBUILD+++ b/linux-cachyos-server/PKGBUILD@@ -215,7 +215,7 @@ license=('GPL2')options=('!strip')makedepends=('bc' 'libelf' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'zstd' 'gcc' 'gcc-libs' 'glibc' 'binutils' 'make' 'patch')# LLVM makedepends-if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]]; then+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; thenmakedepends+=(clang llvm lld python)BUILD_FLAGS=(CC=clang@@ -256,14 +256,6 @@ case "$_cpusched" in"${_patchsource}/misc/0001-hardened.patch");;esac-## Kernel CFI Patch-if [ -n "$_use_kcfi" ]; then- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- )-fi## bcachefs Supportif [ -n "$_bcachefs" ]; thensource+=("${_patchsource}/misc/0001-bcachefs.patch")diff --git a/linux-cachyos-tt/PKGBUILD b/linux-cachyos-tt/PKGBUILDindex b6bec6d3..e095c5e8 100644--- a/linux-cachyos-tt/PKGBUILD+++ b/linux-cachyos-tt/PKGBUILD@@ -215,7 +215,7 @@ license=('GPL2')options=('!strip')makedepends=('bc' 'libelf' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'zstd' 'gcc' 'gcc-libs' 'glibc' 'binutils' 'make' 'patch')# LLVM makedepends-if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]]; then+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; thenmakedepends+=(clang llvm lld python)BUILD_FLAGS=(CC=clang@@ -256,14 +256,6 @@ case "$_cpusched" in"${_patchsource}/misc/0001-hardened.patch");;esac-## Kernel CFI Patch-if [ -n "$_use_kcfi" ]; then- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- )-fi## bcachefs Supportif [ -n "$_bcachefs" ]; thensource+=("${_patchsource}/misc/0001-bcachefs.patch")diff --git a/linux-cachyos/PKGBUILD b/linux-cachyos/PKGBUILDindex 841c979a..dea944bd 100644--- a/linux-cachyos/PKGBUILD+++ b/linux-cachyos/PKGBUILD@@ -215,7 +215,7 @@ license=('GPL2')options=('!strip')makedepends=('bc' 'libelf' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'zstd' 'gcc' 'gcc-libs' 'glibc' 'binutils' 'make' 'patch')# LLVM makedepends-if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]]; then+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; thenmakedepends+=(clang llvm lld python)BUILD_FLAGS=(CC=clang@@ -256,14 +256,6 @@ case "$_cpusched" in"${_patchsource}/misc/0001-hardened.patch");;esac-## Kernel CFI Patch-if [ -n "$_use_kcfi" ]; then- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- )-fi## bcachefs Supportif [ -n "$_bcachefs" ]; thensource+=("${_patchsource}/misc/0001-bcachefs.patch")diff --git a/linux-tt/PKGBUILD b/linux-tt/PKGBUILDindex 86be1881..092d130c 100644--- a/linux-tt/PKGBUILD+++ b/linux-tt/PKGBUILD@@ -215,7 +215,7 @@ license=('GPL2')options=('!strip')makedepends=('bc' 'libelf' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'zstd' 'gcc' 'gcc-libs' 'glibc' 'binutils' 'make' 'patch')# LLVM makedepends-if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]]; then+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]; thenmakedepends+=(clang llvm lld python)BUILD_FLAGS=(CC=clang@@ -256,14 +256,6 @@ case "$_cpusched" in"${_patchsource}/misc/0001-hardened.patch");;esac-## Kernel CFI Patch-if [ -n "$_use_kcfi" ]; then- BUILD_FLAGS=(- CC=clang- LD=ld.lld- LLVM=1- )-fi## bcachefs Supportif [ -n "$_bcachefs" ]; thensource+=("${_patchsource}/misc/0001-bcachefs.patch")