Skip to content

Archlinux Kernel based on different schedulers and some other performance improvements.

Merge kCFI and LTO checks

Vasiliy Stelmachenok2510c909bfb1
diff --git a/linux-bore/PKGBUILD b/linux-bore/PKGBUILD
index 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" ]; then
makedepends+=(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 Support
if [ -n "$_bcachefs" ]; then
source+=("${_patchsource}/misc/0001-bcachefs.patch")
diff --git a/linux-cachyos-bmq/PKGBUILD b/linux-cachyos-bmq/PKGBUILD
index 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" ]; then
makedepends+=(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 Support
if [ -n "$_bcachefs" ]; then
source+=("${_patchsource}/misc/0001-bcachefs.patch")
diff --git a/linux-cachyos-bore/PKGBUILD b/linux-cachyos-bore/PKGBUILD
index 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" ]; then
makedepends+=(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 Support
if [ -n "$_bcachefs" ]; then
source+=("${_patchsource}/misc/0001-bcachefs.patch")
diff --git a/linux-cachyos-cfs/PKGBUILD b/linux-cachyos-cfs/PKGBUILD
index 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" ]; then
makedepends+=(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 Support
if [ -n "$_bcachefs" ]; then
source+=("${_patchsource}/misc/0001-bcachefs.patch")
diff --git a/linux-cachyos-hardened/PKGBUILD b/linux-cachyos-hardened/PKGBUILD
index 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" ]; then
makedepends+=(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 Support
if [ -n "$_bcachefs" ]; then
source+=("${_patchsource}/misc/0001-bcachefs.patch")
diff --git a/linux-cachyos-pds/PKGBUILD b/linux-cachyos-pds/PKGBUILD
index 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" ]; then
makedepends+=(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 Support
if [ -n "$_bcachefs" ]; then
source+=("${_patchsource}/misc/0001-bcachefs.patch")
diff --git a/linux-cachyos-rc/PKGBUILD b/linux-cachyos-rc/PKGBUILD
index 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" ]; then
makedepends+=(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 Support
if [ -n "$_bcachefs" ]; then
source+=("${_patchsource}/misc/0001-bcachefs.patch")
diff --git a/linux-cachyos-server/PKGBUILD b/linux-cachyos-server/PKGBUILD
index 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" ]; then
makedepends+=(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 Support
if [ -n "$_bcachefs" ]; then
source+=("${_patchsource}/misc/0001-bcachefs.patch")
diff --git a/linux-cachyos-tt/PKGBUILD b/linux-cachyos-tt/PKGBUILD
index 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" ]; then
makedepends+=(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 Support
if [ -n "$_bcachefs" ]; then
source+=("${_patchsource}/misc/0001-bcachefs.patch")
diff --git a/linux-cachyos/PKGBUILD b/linux-cachyos/PKGBUILD
index 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" ]; then
makedepends+=(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 Support
if [ -n "$_bcachefs" ]; then
source+=("${_patchsource}/misc/0001-bcachefs.patch")
diff --git a/linux-tt/PKGBUILD b/linux-tt/PKGBUILD
index 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" ]; then
makedepends+=(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 Support
if [ -n "$_bcachefs" ]; then
source+=("${_patchsource}/misc/0001-bcachefs.patch")