Skip to content

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

Add lto suffix flag

Piotr Gorski703f6599674a
diff --git a/linux-bore/.SRCINFO b/linux-bore/.SRCINFO
index a7332776..be2e00f3 100644
--- a/linux-bore/.SRCINFO
+++ b/linux-bore/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.2
+# Thu Oct 6 19:54:16 UTC 2022
pkgbase = linux-bore
pkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.0.0
diff --git a/linux-bore/PKGBUILD b/linux-bore/PKGBUILD
index 9bfddb7d..dd5b57de 100644
--- a/linux-bore/PKGBUILD
+++ b/linux-bore/PKGBUILD
@@ -138,6 +138,10 @@ _zstd_level_value=${_zstd_level_value-'normal'}
# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."
_use_llvm_lto=${_use_llvm_lto-}
+# Use suffix -lto only when requested by the user
+# https://github.com/CachyOS/linux-cachyos/issues/36
+_use_lto_suffix=${_use_lto_suffix-}
+
# KCFI is a proposed forward-edge control-flow integrity scheme for
# Clang, which is more suitable for kernel use than the existing CFI
# scheme used by CONFIG_CFI_CLANG. KCFI doesn't require LTO, doesn't
@@ -180,7 +184,7 @@ _nest=${_nest-}
# https://gitlab.com/ananicy-cpp/ananicy-cpp/-/tree/feature/latency-nice
_latency_nice=${_latency_nice-y}
-if [ -n "$_use_llvm_lto" ]; then
+if [[ -n "$_use_llvm_lto" && -n "$_use_lto_suffix" ]]; then
pkgsuffix=${_cpusched}-lto
pkgbase=linux-$pkgsuffix
diff --git a/linux-cachyos-bmq/.SRCINFO b/linux-cachyos-bmq/.SRCINFO
index 071a2dfc..a329afd4 100644
--- a/linux-cachyos-bmq/.SRCINFO
+++ b/linux-cachyos-bmq/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.2
+# Thu Oct 6 19:56:28 UTC 2022
pkgbase = linux-cachyos-bmq
pkgdesc = Linux BMQ scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.0.0
@@ -32,7 +34,7 @@ pkgbase = linux-cachyos-bmq
sha256sums = fe22c8635aaa0d17742c3bcb943692782902c3eb8c213adfe47bb5dd517021e9
sha256sums = e1d45b5842079a5f0f53d7ea2d66ffa3f1497766f3ccffcf13ed00f1ac67f95e
sha256sums = 8180568fa32a598c9643cb757daa4a8b59b4d888917aa086f82f4929dcaea3d5
- sha256sums = 6a6f1c1311d84fb9bfe99267ce057771b4e682f962087ab1cecb3ee28a016677
+ sha256sums = 6eff562fa2fc58a651f98c15fb41e9421460b73aceb309a764b0f062d0d0e78a
pkgname = linux-cachyos-bmq
pkgdesc = The Linux BMQ scheduler Kernel by CachyOS with other patches and improvements kernel and modules
diff --git a/linux-cachyos-bmq/PKGBUILD b/linux-cachyos-bmq/PKGBUILD
index 01a221aa..7c32ac80 100644
--- a/linux-cachyos-bmq/PKGBUILD
+++ b/linux-cachyos-bmq/PKGBUILD
@@ -138,6 +138,10 @@ _zstd_level_value=${_zstd_level_value-'normal'}
# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."
_use_llvm_lto=${_use_llvm_lto-}
+# Use suffix -lto only when requested by the user
+# https://github.com/CachyOS/linux-cachyos/issues/36
+_use_lto_suffix=${_use_lto_suffix-}
+
# KCFI is a proposed forward-edge control-flow integrity scheme for
# Clang, which is more suitable for kernel use than the existing CFI
# scheme used by CONFIG_CFI_CLANG. KCFI doesn't require LTO, doesn't
@@ -180,7 +184,7 @@ _nest=${_nest-}
# https://gitlab.com/ananicy-cpp/ananicy-cpp/-/tree/feature/latency-nice
_latency_nice=${_latency_nice-}
-if [ -n "$_use_llvm_lto" ]; then
+if [[ -n "$_use_llvm_lto" && -n "$_use_lto_suffix" ]]; then
pkgsuffix=cachyos-${_cpusched}-lto
pkgbase=linux-$pkgsuffix
@@ -1025,4 +1029,4 @@ sha256sums=('5c2443a5538de52688efb55c27ab0539c1f5eb58c0cfd16a2b9fbb08fd81788e'
'fe22c8635aaa0d17742c3bcb943692782902c3eb8c213adfe47bb5dd517021e9'
'e1d45b5842079a5f0f53d7ea2d66ffa3f1497766f3ccffcf13ed00f1ac67f95e'
'8180568fa32a598c9643cb757daa4a8b59b4d888917aa086f82f4929dcaea3d5'
- '6a6f1c1311d84fb9bfe99267ce057771b4e682f962087ab1cecb3ee28a016677')
+ '6eff562fa2fc58a651f98c15fb41e9421460b73aceb309a764b0f062d0d0e78a')
diff --git a/linux-cachyos-bore/.SRCINFO b/linux-cachyos-bore/.SRCINFO
index 07a61afc..87cb0fae 100644
--- a/linux-cachyos-bore/.SRCINFO
+++ b/linux-cachyos-bore/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.2
+# Thu Oct 6 19:57:49 UTC 2022
pkgbase = linux-cachyos-bore
pkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.0.0
diff --git a/linux-cachyos-bore/PKGBUILD b/linux-cachyos-bore/PKGBUILD
index 75561398..d38e2aca 100644
--- a/linux-cachyos-bore/PKGBUILD
+++ b/linux-cachyos-bore/PKGBUILD
@@ -138,6 +138,10 @@ _zstd_level_value=${_zstd_level_value-'normal'}
# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."
_use_llvm_lto=${_use_llvm_lto-}
+# Use suffix -lto only when requested by the user
+# https://github.com/CachyOS/linux-cachyos/issues/36
+_use_lto_suffix=${_use_lto_suffix-}
+
# KCFI is a proposed forward-edge control-flow integrity scheme for
# Clang, which is more suitable for kernel use than the existing CFI
# scheme used by CONFIG_CFI_CLANG. KCFI doesn't require LTO, doesn't
@@ -180,7 +184,7 @@ _nest=${_nest-}
# https://gitlab.com/ananicy-cpp/ananicy-cpp/-/tree/feature/latency-nice
_latency_nice=${_latency_nice-y}
-if [ -n "$_use_llvm_lto" ]; then
+if [[ -n "$_use_llvm_lto" && -n "$_use_lto_suffix" ]]; then
pkgsuffix=cachyos-${_cpusched}-lto
pkgbase=linux-$pkgsuffix
diff --git a/linux-cachyos-cacule/.SRCINFO b/linux-cachyos-cacule/.SRCINFO
index 855747a7..a2a3371c 100644
--- a/linux-cachyos-cacule/.SRCINFO
+++ b/linux-cachyos-cacule/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.2
+# Thu Oct 6 19:58:08 UTC 2022
pkgbase = linux-cachyos-cacule
pkgdesc = Linux cacULE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.0.0
diff --git a/linux-cachyos-cacule/PKGBUILD b/linux-cachyos-cacule/PKGBUILD
index 8cabf435..82c2f39f 100644
--- a/linux-cachyos-cacule/PKGBUILD
+++ b/linux-cachyos-cacule/PKGBUILD
@@ -138,6 +138,10 @@ _zstd_level_value=${_zstd_level_value-'normal'}
# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."
_use_llvm_lto=${_use_llvm_lto-}
+# Use suffix -lto only when requested by the user
+# https://github.com/CachyOS/linux-cachyos/issues/36
+_use_lto_suffix=${_use_lto_suffix-}
+
# KCFI is a proposed forward-edge control-flow integrity scheme for
# Clang, which is more suitable for kernel use than the existing CFI
# scheme used by CONFIG_CFI_CLANG. KCFI doesn't require LTO, doesn't
@@ -180,7 +184,7 @@ _nest=${_nest-}
# https://gitlab.com/ananicy-cpp/ananicy-cpp/-/tree/feature/latency-nice
_latency_nice=${_latency_nice-}
-if [ -n "$_use_llvm_lto" ]; then
+if [[ -n "$_use_llvm_lto" && -n "$_use_lto_suffix" ]]; then
pkgsuffix=cachyos-${_cpusched}-lto
pkgbase=linux-$pkgsuffix
diff --git a/linux-cachyos-cfs/.SRCINFO b/linux-cachyos-cfs/.SRCINFO
index 49f2d8d1..835b0384 100644
--- a/linux-cachyos-cfs/.SRCINFO
+++ b/linux-cachyos-cfs/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.2
+# Thu Oct 6 19:58:32 UTC 2022
pkgbase = linux-cachyos-cfs
pkgdesc = Linux CFS scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.0.0
diff --git a/linux-cachyos-cfs/PKGBUILD b/linux-cachyos-cfs/PKGBUILD
index e972c5ae..a14b3c21 100644
--- a/linux-cachyos-cfs/PKGBUILD
+++ b/linux-cachyos-cfs/PKGBUILD
@@ -138,6 +138,10 @@ _zstd_level_value=${_zstd_level_value-'normal'}
# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."
_use_llvm_lto=${_use_llvm_lto-}
+# Use suffix -lto only when requested by the user
+# https://github.com/CachyOS/linux-cachyos/issues/36
+_use_lto_suffix=${_use_lto_suffix-}
+
# KCFI is a proposed forward-edge control-flow integrity scheme for
# Clang, which is more suitable for kernel use than the existing CFI
# scheme used by CONFIG_CFI_CLANG. KCFI doesn't require LTO, doesn't
@@ -180,7 +184,7 @@ _nest=${_nest-}
# https://gitlab.com/ananicy-cpp/ananicy-cpp/-/tree/feature/latency-nice
_latency_nice=${_latency_nice-y}
-if [ -n "$_use_llvm_lto" ]; then
+if [[ -n "$_use_llvm_lto" && -n "$_use_lto_suffix" ]]; then
pkgsuffix=cachyos-${_cpusched}-lto
pkgbase=linux-$pkgsuffix
diff --git a/linux-cachyos-hardened/.SRCINFO b/linux-cachyos-hardened/.SRCINFO
index 6eafd750..dce4c3fb 100644
--- a/linux-cachyos-hardened/.SRCINFO
+++ b/linux-cachyos-hardened/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.2
+# Thu Oct 6 19:59:38 UTC 2022
pkgbase = linux-cachyos-hardened
pkgdesc = Linux hardenened BORE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.0.0
diff --git a/linux-cachyos-hardened/PKGBUILD b/linux-cachyos-hardened/PKGBUILD
index 7d277609..5d36a079 100644
--- a/linux-cachyos-hardened/PKGBUILD
+++ b/linux-cachyos-hardened/PKGBUILD
@@ -138,6 +138,10 @@ _zstd_level_value=${_zstd_level_value-'normal'}
# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."
_use_llvm_lto=${_use_llvm_lto-}
+# Use suffix -lto only when requested by the user
+# https://github.com/CachyOS/linux-cachyos/issues/36
+_use_lto_suffix=${_use_lto_suffix-}
+
# KCFI is a proposed forward-edge control-flow integrity scheme for
# Clang, which is more suitable for kernel use than the existing CFI
# scheme used by CONFIG_CFI_CLANG. KCFI doesn't require LTO, doesn't
@@ -180,7 +184,7 @@ _nest=${_nest-}
# https://gitlab.com/ananicy-cpp/ananicy-cpp/-/tree/feature/latency-nice
_latency_nice=${_latency_nice-y}
-if [ -n "$_use_llvm_lto" ]; then
+if [[ -n "$_use_llvm_lto" && -n "$_use_lto_suffix" ]]; then
pkgsuffix=cachyos-${_cpusched}-lto
pkgbase=linux-$pkgsuffix
diff --git a/linux-cachyos-pds/.SRCINFO b/linux-cachyos-pds/.SRCINFO
index 3927ce5a..953705ad 100644
--- a/linux-cachyos-pds/.SRCINFO
+++ b/linux-cachyos-pds/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.2
+# Thu Oct 6 20:00:09 UTC 2022
pkgbase = linux-cachyos-pds
pkgdesc = Linux PDS scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.0.0
@@ -32,7 +34,7 @@ pkgbase = linux-cachyos-pds
sha256sums = fe22c8635aaa0d17742c3bcb943692782902c3eb8c213adfe47bb5dd517021e9
sha256sums = e1d45b5842079a5f0f53d7ea2d66ffa3f1497766f3ccffcf13ed00f1ac67f95e
sha256sums = 8180568fa32a598c9643cb757daa4a8b59b4d888917aa086f82f4929dcaea3d5
- sha256sums = 6a6f1c1311d84fb9bfe99267ce057771b4e682f962087ab1cecb3ee28a016677
+ sha256sums = 6eff562fa2fc58a651f98c15fb41e9421460b73aceb309a764b0f062d0d0e78a
pkgname = linux-cachyos-pds
pkgdesc = The Linux PDS scheduler Kernel by CachyOS with other patches and improvements kernel and modules
diff --git a/linux-cachyos-pds/PKGBUILD b/linux-cachyos-pds/PKGBUILD
index 6b6ea00e..04b9aedd 100644
--- a/linux-cachyos-pds/PKGBUILD
+++ b/linux-cachyos-pds/PKGBUILD
@@ -138,6 +138,10 @@ _zstd_level_value=${_zstd_level_value-'normal'}
# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."
_use_llvm_lto=${_use_llvm_lto-}
+# Use suffix -lto only when requested by the user
+# https://github.com/CachyOS/linux-cachyos/issues/36
+_use_lto_suffix=${_use_lto_suffix-}
+
# KCFI is a proposed forward-edge control-flow integrity scheme for
# Clang, which is more suitable for kernel use than the existing CFI
# scheme used by CONFIG_CFI_CLANG. KCFI doesn't require LTO, doesn't
@@ -180,7 +184,7 @@ _nest=${_nest-}
# https://gitlab.com/ananicy-cpp/ananicy-cpp/-/tree/feature/latency-nice
_latency_nice=${_latency_nice-}
-if [ -n "$_use_llvm_lto" ]; then
+if [[ -n "$_use_llvm_lto" && -n "$_use_lto_suffix" ]]; then
pkgsuffix=cachyos-${_cpusched}-lto
pkgbase=linux-$pkgsuffix
@@ -1025,4 +1029,4 @@ sha256sums=('5c2443a5538de52688efb55c27ab0539c1f5eb58c0cfd16a2b9fbb08fd81788e'
'fe22c8635aaa0d17742c3bcb943692782902c3eb8c213adfe47bb5dd517021e9'
'e1d45b5842079a5f0f53d7ea2d66ffa3f1497766f3ccffcf13ed00f1ac67f95e'
'8180568fa32a598c9643cb757daa4a8b59b4d888917aa086f82f4929dcaea3d5'
- '6a6f1c1311d84fb9bfe99267ce057771b4e682f962087ab1cecb3ee28a016677')
+ '6eff562fa2fc58a651f98c15fb41e9421460b73aceb309a764b0f062d0d0e78a')
diff --git a/linux-cachyos-rc/.SRCINFO b/linux-cachyos-rc/.SRCINFO
index 9db69992..b738915b 100644
--- a/linux-cachyos-rc/.SRCINFO
+++ b/linux-cachyos-rc/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.2
+# Thu Oct 6 20:00:49 UTC 2022
pkgbase = linux-cachyos-rc
pkgdesc = Linux BORE scheduler Kernel by CachyOS and with some other patches and other improvements
pkgver = 6.0.rc7
diff --git a/linux-cachyos-rc/PKGBUILD b/linux-cachyos-rc/PKGBUILD
index 48611d3e..f7e13c9f 100644
--- a/linux-cachyos-rc/PKGBUILD
+++ b/linux-cachyos-rc/PKGBUILD
@@ -138,6 +138,10 @@ _zstd_level_value=${_zstd_level_value-'normal'}
# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."
_use_llvm_lto=${_use_llvm_lto-}
+# Use suffix -lto only when requested by the user
+# https://github.com/CachyOS/linux-cachyos/issues/36
+_use_lto_suffix=${_use_lto_suffix-}
+
# KCFI is a proposed forward-edge control-flow integrity scheme for
# Clang, which is more suitable for kernel use than the existing CFI
# scheme used by CONFIG_CFI_CLANG. KCFI doesn't require LTO, doesn't
@@ -180,17 +184,9 @@ _nest=${_nest-}
# https://gitlab.com/ananicy-cpp/ananicy-cpp/-/tree/feature/latency-nice
_latency_nice=${_latency_nice-y}
-if [[ -n "$_use_llvm_lto" && -n "$_rtkernel" ]]; then
- pkgsuffix=cachyos-rt-rc-lto
- pkgbase=linux-$pkgsuffix
-
-elif [ -n "$_use_llvm_lto" ]; then
+if [[ -n "$_use_llvm_lto" && -n "$_use_lto_suffix" ]]; then
pkgsuffix=cachyos-rc-lto
pkgbase=linux-$pkgsuffix
-
-elif [ -n "$_rtkernel" ]; then
- pkgsuffix=cachyos-rt-rc
- pkgbase=linux-$pkgsuffix
else
pkgsuffix=cachyos-rc
diff --git a/linux-cachyos-tt/.SRCINFO b/linux-cachyos-tt/.SRCINFO
index c61dbe30..e73a3217 100644
--- a/linux-cachyos-tt/.SRCINFO
+++ b/linux-cachyos-tt/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.2
+# Thu Oct 6 20:01:52 UTC 2022
pkgbase = linux-cachyos-tt
pkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.0.0
diff --git a/linux-cachyos-tt/PKGBUILD b/linux-cachyos-tt/PKGBUILD
index 04564133..546cd184 100644
--- a/linux-cachyos-tt/PKGBUILD
+++ b/linux-cachyos-tt/PKGBUILD
@@ -138,6 +138,10 @@ _zstd_level_value=${_zstd_level_value-'normal'}
# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."
_use_llvm_lto=${_use_llvm_lto-}
+# Use suffix -lto only when requested by the user
+# https://github.com/CachyOS/linux-cachyos/issues/36
+_use_lto_suffix=${_use_lto_suffix-}
+
# KCFI is a proposed forward-edge control-flow integrity scheme for
# Clang, which is more suitable for kernel use than the existing CFI
# scheme used by CONFIG_CFI_CLANG. KCFI doesn't require LTO, doesn't
@@ -180,7 +184,7 @@ _nest=${_nest-}
# https://gitlab.com/ananicy-cpp/ananicy-cpp/-/tree/feature/latency-nice
_latency_nice=${_latency_nice-}
-if [ -n "$_use_llvm_lto" ]; then
+if [[ -n "$_use_llvm_lto" && -n "$_use_lto_suffix" ]]; then
pkgsuffix=cachyos-${_cpusched}-lto
pkgbase=linux-$pkgsuffix
diff --git a/linux-cachyos/.SRCINFO b/linux-cachyos/.SRCINFO
index a6656917..a52fef04 100644
--- a/linux-cachyos/.SRCINFO
+++ b/linux-cachyos/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.2
+# Thu Oct 6 19:54:57 UTC 2022
pkgbase = linux-cachyos
pkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.0.0
diff --git a/linux-cachyos/PKGBUILD b/linux-cachyos/PKGBUILD
index 7981a530..fdb25b33 100644
--- a/linux-cachyos/PKGBUILD
+++ b/linux-cachyos/PKGBUILD
@@ -138,6 +138,10 @@ _zstd_level_value=${_zstd_level_value-'normal'}
# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."
_use_llvm_lto=${_use_llvm_lto-}
+# Use suffix -lto only when requested by the user
+# https://github.com/CachyOS/linux-cachyos/issues/36
+_use_lto_suffix=${_use_lto_suffix-}
+
# KCFI is a proposed forward-edge control-flow integrity scheme for
# Clang, which is more suitable for kernel use than the existing CFI
# scheme used by CONFIG_CFI_CLANG. KCFI doesn't require LTO, doesn't
@@ -180,7 +184,7 @@ _nest=${_nest-}
# https://gitlab.com/ananicy-cpp/ananicy-cpp/-/tree/feature/latency-nice
_latency_nice=${_latency_nice-y}
-if [ -n "$_use_llvm_lto" ]; then
+if [[ -n "$_use_llvm_lto" && -n "$_use_lto_suffix" ]]; then
pkgsuffix=cachyos-lto
pkgbase=linux-$pkgsuffix
diff --git a/linux-cacule-rdb/.SRCINFO b/linux-cacule-rdb/.SRCINFO
index 7db75301..80b93864 100644
--- a/linux-cacule-rdb/.SRCINFO
+++ b/linux-cacule-rdb/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.2
+# Thu Oct 6 20:02:39 UTC 2022
pkgbase = linux-cacule-rdb
pkgdesc = Linux cacULE-RDB scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.0.0
diff --git a/linux-cacule-rdb/PKGBUILD b/linux-cacule-rdb/PKGBUILD
index f224f03c..46e295b7 100644
--- a/linux-cacule-rdb/PKGBUILD
+++ b/linux-cacule-rdb/PKGBUILD
@@ -138,6 +138,10 @@ _zstd_level_value=${_zstd_level_value-'normal'}
# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."
_use_llvm_lto=${_use_llvm_lto-}
+# Use suffix -lto only when requested by the user
+# https://github.com/CachyOS/linux-cachyos/issues/36
+_use_lto_suffix=${_use_lto_suffix-}
+
# KCFI is a proposed forward-edge control-flow integrity scheme for
# Clang, which is more suitable for kernel use than the existing CFI
# scheme used by CONFIG_CFI_CLANG. KCFI doesn't require LTO, doesn't
@@ -180,7 +184,7 @@ _nest=${_nest-}
# https://gitlab.com/ananicy-cpp/ananicy-cpp/-/tree/feature/latency-nice
_latency_nice=${_latency_nice-}
-if [ -n "$_use_llvm_lto" ]; then
+if [[ -n "$_use_llvm_lto" && -n "$_use_lto_suffix" ]]; then
pkgsuffix=${_cpusched}-lto
pkgbase=linux-$pkgsuffix
diff --git a/linux-cacule/.SRCINFO b/linux-cacule/.SRCINFO
index c923d275..38cba111 100644
--- a/linux-cacule/.SRCINFO
+++ b/linux-cacule/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.2
+# Thu Oct 6 20:02:14 UTC 2022
pkgbase = linux-cacule
pkgdesc = Linux cacULE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.0.0
diff --git a/linux-cacule/PKGBUILD b/linux-cacule/PKGBUILD
index 3e1d71c4..b26fc259 100644
--- a/linux-cacule/PKGBUILD
+++ b/linux-cacule/PKGBUILD
@@ -138,6 +138,10 @@ _zstd_level_value=${_zstd_level_value-'normal'}
# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."
_use_llvm_lto=${_use_llvm_lto-}
+# Use suffix -lto only when requested by the user
+# https://github.com/CachyOS/linux-cachyos/issues/36
+_use_lto_suffix=${_use_lto_suffix-}
+
# KCFI is a proposed forward-edge control-flow integrity scheme for
# Clang, which is more suitable for kernel use than the existing CFI
# scheme used by CONFIG_CFI_CLANG. KCFI doesn't require LTO, doesn't
@@ -180,7 +184,7 @@ _nest=${_nest-}
# https://gitlab.com/ananicy-cpp/ananicy-cpp/-/tree/feature/latency-nice
_latency_nice=${_latency_nice-}
-if [ -n "$_use_llvm_lto" ]; then
+if [[ -n "$_use_llvm_lto" && -n "$_use_lto_suffix" ]]; then
pkgsuffix=${_cpusched}-lto
pkgbase=linux-$pkgsuffix
diff --git a/linux-tt/.SRCINFO b/linux-tt/.SRCINFO
index 0d3de6aa..4f66d497 100644
--- a/linux-tt/.SRCINFO
+++ b/linux-tt/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.2
+# Thu Oct 6 20:03:23 UTC 2022
pkgbase = linux-tt
pkgdesc = Linux TT scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.0.0
diff --git a/linux-tt/PKGBUILD b/linux-tt/PKGBUILD
index 4bfccd9a..a262c18e 100644
--- a/linux-tt/PKGBUILD
+++ b/linux-tt/PKGBUILD
@@ -138,6 +138,10 @@ _zstd_level_value=${_zstd_level_value-'normal'}
# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."
_use_llvm_lto=${_use_llvm_lto-}
+# Use suffix -lto only when requested by the user
+# https://github.com/CachyOS/linux-cachyos/issues/36
+_use_lto_suffix=${_use_lto_suffix-}
+
# KCFI is a proposed forward-edge control-flow integrity scheme for
# Clang, which is more suitable for kernel use than the existing CFI
# scheme used by CONFIG_CFI_CLANG. KCFI doesn't require LTO, doesn't
@@ -180,7 +184,7 @@ _nest=${_nest-}
# https://gitlab.com/ananicy-cpp/ananicy-cpp/-/tree/feature/latency-nice
_latency_nice=${_latency_nice-}
-if [ -n "$_use_llvm_lto" ]; then
+if [[ -n "$_use_llvm_lto" && -n "$_use_lto_suffix" ]]; then
pkgsuffix=${_cpusched}-lto
pkgbase=linux-$pkgsuffix