Archlinux Kernel based on different schedulers and some other performance improvements.
Shell archlinuxbaby-schedcachycachy-schedulercachyoscacule-schedkernellinux-kernelperformanceperformance-tuning
Refactor and cleanup PKGBUILDS
Piotr Gorski3c70a9253a1f
diff --git a/linux-bore/.SRCINFO b/linux-bore/.SRCINFOindex 679d000e..4f1313de 100644--- a/linux-bore/.SRCINFO+++ b/linux-bore/.SRCINFO@@ -1,5 +1,5 @@# Generated by makepkg 6.0.2-# Thu Feb 2 08:42:42 UTC 2023+# Thu Feb 2 09:33:38 UTC 2023pkgbase = linux-borepkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvementspkgver = 6.1.9diff --git a/linux-bore/PKGBUILD b/linux-bore/PKGBUILDindex 5822293e..5d69c28b 100644--- a/linux-bore/PKGBUILD+++ b/linux-bore/PKGBUILD@@ -143,7 +143,8 @@ _zstd_level_value=${_zstd_level_value-'normal'}# Clang LTO mode, only available with the "llvm" compiler - options are "no", "full" or "thin".# "full: uses 1 thread for Linking, slow and uses more memory, theoretically with the highest performance gains."# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."-_use_llvm_lto=${_use_llvm_lto-}+# "none: disable LTO+_use_llvm_lto=${_use_llvm_lto-none}# Use suffix -lto only when requested by the user# Enabled by default.@@ -186,7 +187,7 @@ _bcachefs=${_bcachefs-}# https://gitlab.com/ananicy-cpp/ananicy-cpp/-/tree/feature/latency-nice_latency_nice=${_latency_nice-y}-if [[ -n "$_use_llvm_lto" && -n "$_use_lto_suffix" ]]; then+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" && -n "$_use_lto_suffix" ]]; thenpkgsuffix=${_cpusched}-ltopkgbase=linux-$pkgsuffix@@ -213,7 +214,7 @@ license=('GPL2')options=('!strip')makedepends=('bc' 'libelf' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'zstd' 'gcc' 'gcc-libs' 'glibc' 'binutils' 'make' 'patch')# LLVM makedepends-if [ -n "$_use_llvm_lto" ]; then+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]]; thenmakedepends+=(clang llvm lld python)BUILD_FLAGS=(CC=clang@@ -353,31 +354,16 @@ prepare() {fi### Select LLVM level- if [ "$_use_llvm_lto" = "thin" ]; then- echo "Enabling LLVM THIN LTO..."- scripts/config -e LTO \- -e LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG_THIN \- -d LTO_NONE \- -e HAS_LTO_CLANG \- -d LTO_CLANG_FULL \- -e LTO_CLANG_THIN \- -e HAVE_GCC_PLUGINS- elif [ "$_use_llvm_lto" = "full" ]; then- echo "Enabling LLVM FULL LTO..."- scripts/config -e LTO \- -e LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG_THIN \- -d LTO_NONE \- -e HAS_LTO_CLANG \- -e LTO_CLANG_FULL \- -d LTO_CLANG_THIN \- -e HAVE_GCC_PLUGINS- else- scripts/config -e LTO_NONE- fi+ [ -z "$_use_llvm_lto" ] && _die "The value is empty. Choose the correct one again."++ case "$_use_llvm_lto" in+ thin) scripts/config -e LTO -e LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG_THIN -d LTO_NONE -e HAS_LTO_CLANG -d LTO_CLANG_FULL -e LTO_CLANG_THIN -e HAVE_GCC_PLUGINS;;+ full) scripts/config -e LTO -e LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG_THIN -d LTO_NONE -e HAS_LTO_CLANG -e LTO_CLANG_FULL -d LTO_CLANG_THIN -e HAVE_GCC_PLUGINS;;+ none) scripts/config -e LTO_NONE;;+ *) _die "The value $_use_llvm_lto is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_use_llvm_lto LLVM level..."### Enable GCC FULL LTO### Disable LTO_CP_CLONE, its experimentaldiff --git a/linux-cachyos-bmq/.SRCINFO b/linux-cachyos-bmq/.SRCINFOindex 8d0a302b..13bc7775 100644--- a/linux-cachyos-bmq/.SRCINFO+++ b/linux-cachyos-bmq/.SRCINFO@@ -1,5 +1,5 @@# Generated by makepkg 6.0.2-# Thu Feb 2 08:43:08 UTC 2023+# Thu Feb 2 09:34:05 UTC 2023pkgbase = linux-cachyos-bmqpkgdesc = Linux BMQ scheduler Kernel by CachyOS with other patches and improvementspkgver = 6.1.9diff --git a/linux-cachyos-bmq/PKGBUILD b/linux-cachyos-bmq/PKGBUILDindex 7cab2385..24057850 100644--- a/linux-cachyos-bmq/PKGBUILD+++ b/linux-cachyos-bmq/PKGBUILD@@ -143,7 +143,8 @@ _zstd_level_value=${_zstd_level_value-'normal'}# Clang LTO mode, only available with the "llvm" compiler - options are "no", "full" or "thin".# "full: uses 1 thread for Linking, slow and uses more memory, theoretically with the highest performance gains."# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."-_use_llvm_lto=${_use_llvm_lto-}+# "none: disable LTO+_use_llvm_lto=${_use_llvm_lto-none}# Use suffix -lto only when requested by the user# Enabled by default.@@ -186,7 +187,7 @@ _bcachefs=${_bcachefs-}# https://gitlab.com/ananicy-cpp/ananicy-cpp/-/tree/feature/latency-nice_latency_nice=${_latency_nice-}-if [[ -n "$_use_llvm_lto" && -n "$_use_lto_suffix" ]]; then+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" && -n "$_use_lto_suffix" ]]; thenpkgsuffix=cachyos-${_cpusched}-ltopkgbase=linux-$pkgsuffix@@ -213,7 +214,7 @@ license=('GPL2')options=('!strip')makedepends=('bc' 'libelf' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'zstd' 'gcc' 'gcc-libs' 'glibc' 'binutils' 'make' 'patch')# LLVM makedepends-if [ -n "$_use_llvm_lto" ]; then+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]]; thenmakedepends+=(clang llvm lld python)BUILD_FLAGS=(CC=clang@@ -353,31 +354,16 @@ prepare() {fi### Select LLVM level- if [ "$_use_llvm_lto" = "thin" ]; then- echo "Enabling LLVM THIN LTO..."- scripts/config -e LTO \- -e LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG_THIN \- -d LTO_NONE \- -e HAS_LTO_CLANG \- -d LTO_CLANG_FULL \- -e LTO_CLANG_THIN \- -e HAVE_GCC_PLUGINS- elif [ "$_use_llvm_lto" = "full" ]; then- echo "Enabling LLVM FULL LTO..."- scripts/config -e LTO \- -e LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG_THIN \- -d LTO_NONE \- -e HAS_LTO_CLANG \- -e LTO_CLANG_FULL \- -d LTO_CLANG_THIN \- -e HAVE_GCC_PLUGINS- else- scripts/config -e LTO_NONE- fi+ [ -z "$_use_llvm_lto" ] && _die "The value is empty. Choose the correct one again."++ case "$_use_llvm_lto" in+ thin) scripts/config -e LTO -e LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG_THIN -d LTO_NONE -e HAS_LTO_CLANG -d LTO_CLANG_FULL -e LTO_CLANG_THIN -e HAVE_GCC_PLUGINS;;+ full) scripts/config -e LTO -e LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG_THIN -d LTO_NONE -e HAS_LTO_CLANG -e LTO_CLANG_FULL -d LTO_CLANG_THIN -e HAVE_GCC_PLUGINS;;+ none) scripts/config -e LTO_NONE;;+ *) _die "The value $_use_llvm_lto is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_use_llvm_lto LLVM level..."### Enable GCC FULL LTO### Disable LTO_CP_CLONE, its experimentaldiff --git a/linux-cachyos-bore/.SRCINFO b/linux-cachyos-bore/.SRCINFOindex e95cd0b8..5d84ab00 100644--- a/linux-cachyos-bore/.SRCINFO+++ b/linux-cachyos-bore/.SRCINFO@@ -1,5 +1,5 @@# Generated by makepkg 6.0.2-# Thu Feb 2 08:43:20 UTC 2023+# Thu Feb 2 09:34:17 UTC 2023pkgbase = linux-cachyos-borepkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvementspkgver = 6.1.9diff --git a/linux-cachyos-bore/PKGBUILD b/linux-cachyos-bore/PKGBUILDindex a771f744..c05e9ed5 100644--- a/linux-cachyos-bore/PKGBUILD+++ b/linux-cachyos-bore/PKGBUILD@@ -143,7 +143,8 @@ _zstd_level_value=${_zstd_level_value-'normal'}# Clang LTO mode, only available with the "llvm" compiler - options are "no", "full" or "thin".# "full: uses 1 thread for Linking, slow and uses more memory, theoretically with the highest performance gains."# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."-_use_llvm_lto=${_use_llvm_lto-}+# "none: disable LTO+_use_llvm_lto=${_use_llvm_lto-none}# Use suffix -lto only when requested by the user# Enabled by default.@@ -186,7 +187,7 @@ _bcachefs=${_bcachefs-}# https://gitlab.com/ananicy-cpp/ananicy-cpp/-/tree/feature/latency-nice_latency_nice=${_latency_nice-y}-if [[ -n "$_use_llvm_lto" && -n "$_use_lto_suffix" ]]; then+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" && -n "$_use_lto_suffix" ]]; thenpkgsuffix=cachyos-${_cpusched}-ltopkgbase=linux-$pkgsuffix@@ -213,7 +214,7 @@ license=('GPL2')options=('!strip')makedepends=('bc' 'libelf' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'zstd' 'gcc' 'gcc-libs' 'glibc' 'binutils' 'make' 'patch')# LLVM makedepends-if [ -n "$_use_llvm_lto" ]; then+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]]; thenmakedepends+=(clang llvm lld python)BUILD_FLAGS=(CC=clang@@ -353,31 +354,16 @@ prepare() {fi### Select LLVM level- if [ "$_use_llvm_lto" = "thin" ]; then- echo "Enabling LLVM THIN LTO..."- scripts/config -e LTO \- -e LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG_THIN \- -d LTO_NONE \- -e HAS_LTO_CLANG \- -d LTO_CLANG_FULL \- -e LTO_CLANG_THIN \- -e HAVE_GCC_PLUGINS- elif [ "$_use_llvm_lto" = "full" ]; then- echo "Enabling LLVM FULL LTO..."- scripts/config -e LTO \- -e LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG_THIN \- -d LTO_NONE \- -e HAS_LTO_CLANG \- -e LTO_CLANG_FULL \- -d LTO_CLANG_THIN \- -e HAVE_GCC_PLUGINS- else- scripts/config -e LTO_NONE- fi+ [ -z "$_use_llvm_lto" ] && _die "The value is empty. Choose the correct one again."++ case "$_use_llvm_lto" in+ thin) scripts/config -e LTO -e LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG_THIN -d LTO_NONE -e HAS_LTO_CLANG -d LTO_CLANG_FULL -e LTO_CLANG_THIN -e HAVE_GCC_PLUGINS;;+ full) scripts/config -e LTO -e LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG_THIN -d LTO_NONE -e HAS_LTO_CLANG -e LTO_CLANG_FULL -d LTO_CLANG_THIN -e HAVE_GCC_PLUGINS;;+ none) scripts/config -e LTO_NONE;;+ *) _die "The value $_use_llvm_lto is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_use_llvm_lto LLVM level..."### Enable GCC FULL LTO### Disable LTO_CP_CLONE, its experimentaldiff --git a/linux-cachyos-cfs/.SRCINFO b/linux-cachyos-cfs/.SRCINFOindex 20f077c2..04f0249f 100644--- a/linux-cachyos-cfs/.SRCINFO+++ b/linux-cachyos-cfs/.SRCINFO@@ -1,5 +1,5 @@# Generated by makepkg 6.0.2-# Thu Feb 2 08:43:33 UTC 2023+# Thu Feb 2 09:34:30 UTC 2023pkgbase = linux-cachyos-cfspkgdesc = Linux CFS scheduler Kernel by CachyOS with other patches and improvementspkgver = 6.1.9diff --git a/linux-cachyos-cfs/PKGBUILD b/linux-cachyos-cfs/PKGBUILDindex daebc164..fa58478a 100644--- a/linux-cachyos-cfs/PKGBUILD+++ b/linux-cachyos-cfs/PKGBUILD@@ -143,7 +143,8 @@ _zstd_level_value=${_zstd_level_value-'normal'}# Clang LTO mode, only available with the "llvm" compiler - options are "no", "full" or "thin".# "full: uses 1 thread for Linking, slow and uses more memory, theoretically with the highest performance gains."# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."-_use_llvm_lto=${_use_llvm_lto-}+# "none: disable LTO+_use_llvm_lto=${_use_llvm_lto-none}# Use suffix -lto only when requested by the user# Enabled by default.@@ -186,7 +187,7 @@ _bcachefs=${_bcachefs-}# https://gitlab.com/ananicy-cpp/ananicy-cpp/-/tree/feature/latency-nice_latency_nice=${_latency_nice-y}-if [[ -n "$_use_llvm_lto" && -n "$_use_lto_suffix" ]]; then+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" && -n "$_use_lto_suffix" ]]; thenpkgsuffix=cachyos-${_cpusched}-ltopkgbase=linux-$pkgsuffix@@ -213,7 +214,7 @@ license=('GPL2')options=('!strip')makedepends=('bc' 'libelf' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'zstd' 'gcc' 'gcc-libs' 'glibc' 'binutils' 'make' 'patch')# LLVM makedepends-if [ -n "$_use_llvm_lto" ]; then+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]]; thenmakedepends+=(clang llvm lld python)BUILD_FLAGS=(CC=clang@@ -353,31 +354,16 @@ prepare() {fi### Select LLVM level- if [ "$_use_llvm_lto" = "thin" ]; then- echo "Enabling LLVM THIN LTO..."- scripts/config -e LTO \- -e LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG_THIN \- -d LTO_NONE \- -e HAS_LTO_CLANG \- -d LTO_CLANG_FULL \- -e LTO_CLANG_THIN \- -e HAVE_GCC_PLUGINS- elif [ "$_use_llvm_lto" = "full" ]; then- echo "Enabling LLVM FULL LTO..."- scripts/config -e LTO \- -e LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG_THIN \- -d LTO_NONE \- -e HAS_LTO_CLANG \- -e LTO_CLANG_FULL \- -d LTO_CLANG_THIN \- -e HAVE_GCC_PLUGINS- else- scripts/config -e LTO_NONE- fi+ [ -z "$_use_llvm_lto" ] && _die "The value is empty. Choose the correct one again."++ case "$_use_llvm_lto" in+ thin) scripts/config -e LTO -e LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG_THIN -d LTO_NONE -e HAS_LTO_CLANG -d LTO_CLANG_FULL -e LTO_CLANG_THIN -e HAVE_GCC_PLUGINS;;+ full) scripts/config -e LTO -e LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG_THIN -d LTO_NONE -e HAS_LTO_CLANG -e LTO_CLANG_FULL -d LTO_CLANG_THIN -e HAVE_GCC_PLUGINS;;+ none) scripts/config -e LTO_NONE;;+ *) _die "The value $_use_llvm_lto is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_use_llvm_lto LLVM level..."### Enable GCC FULL LTO### Disable LTO_CP_CLONE, its experimentaldiff --git a/linux-cachyos-hardened/.SRCINFO b/linux-cachyos-hardened/.SRCINFOindex f813e2c8..5c32164e 100644--- a/linux-cachyos-hardened/.SRCINFO+++ b/linux-cachyos-hardened/.SRCINFO@@ -1,5 +1,5 @@# Generated by makepkg 6.0.2-# Thu Feb 2 08:44:49 UTC 2023+# Thu Feb 2 09:35:55 UTC 2023pkgbase = linux-cachyos-hardenedpkgdesc = Linux hardenened BORE scheduler Kernel by CachyOS with other patches and improvementspkgver = 6.1.9diff --git a/linux-cachyos-hardened/PKGBUILD b/linux-cachyos-hardened/PKGBUILDindex 3bfe7ed9..dfa415e6 100644--- a/linux-cachyos-hardened/PKGBUILD+++ b/linux-cachyos-hardened/PKGBUILD@@ -143,7 +143,8 @@ _zstd_level_value=${_zstd_level_value-'normal'}# Clang LTO mode, only available with the "llvm" compiler - options are "no", "full" or "thin".# "full: uses 1 thread for Linking, slow and uses more memory, theoretically with the highest performance gains."# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."-_use_llvm_lto=${_use_llvm_lto-}+# "none: disable LTO+_use_llvm_lto=${_use_llvm_lto-none}# Use suffix -lto only when requested by the user# Enabled by default.@@ -186,7 +187,7 @@ _bcachefs=${_bcachefs-}# https://gitlab.com/ananicy-cpp/ananicy-cpp/-/tree/feature/latency-nice_latency_nice=${_latency_nice-y}-if [[ -n "$_use_llvm_lto" && -n "$_use_lto_suffix" ]]; then+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" && -n "$_use_lto_suffix" ]]; thenpkgsuffix=cachyos-${_cpusched}-ltopkgbase=linux-$pkgsuffix@@ -217,7 +218,7 @@ makedepends=(git)# LLVM makedepends-if [ -n "$_use_llvm_lto" ]; then+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]]; thenmakedepends+=(clang llvm lld python)BUILD_FLAGS=(CC=clang@@ -357,31 +358,16 @@ prepare() {fi### Select LLVM level- if [ "$_use_llvm_lto" = "thin" ]; then- echo "Enabling LLVM THIN LTO..."- scripts/config -e LTO \- -e LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG_THIN \- -d LTO_NONE \- -e HAS_LTO_CLANG \- -d LTO_CLANG_FULL \- -e LTO_CLANG_THIN \- -e HAVE_GCC_PLUGINS- elif [ "$_use_llvm_lto" = "full" ]; then- echo "Enabling LLVM FULL LTO..."- scripts/config -e LTO \- -e LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG_THIN \- -d LTO_NONE \- -e HAS_LTO_CLANG \- -e LTO_CLANG_FULL \- -d LTO_CLANG_THIN \- -e HAVE_GCC_PLUGINS- else- scripts/config -e LTO_NONE- fi+ [ -z "$_use_llvm_lto" ] && _die "The value is empty. Choose the correct one again."++ case "$_use_llvm_lto" in+ thin) scripts/config -e LTO -e LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG_THIN -d LTO_NONE -e HAS_LTO_CLANG -d LTO_CLANG_FULL -e LTO_CLANG_THIN -e HAVE_GCC_PLUGINS;;+ full) scripts/config -e LTO -e LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG_THIN -d LTO_NONE -e HAS_LTO_CLANG -e LTO_CLANG_FULL -d LTO_CLANG_THIN -e HAVE_GCC_PLUGINS;;+ none) scripts/config -e LTO_NONE;;+ *) _die "The value $_use_llvm_lto is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_use_llvm_lto LLVM level..."### Enable GCC FULL LTO### Disable LTO_CP_CLONE, its experimentaldiff --git a/linux-cachyos-pds/.SRCINFO b/linux-cachyos-pds/.SRCINFOindex 406f8f0b..e92c2468 100644--- a/linux-cachyos-pds/.SRCINFO+++ b/linux-cachyos-pds/.SRCINFO@@ -1,5 +1,5 @@# Generated by makepkg 6.0.2-# Thu Feb 2 08:43:45 UTC 2023+# Thu Feb 2 09:34:43 UTC 2023pkgbase = linux-cachyos-pdspkgdesc = Linux PDS scheduler Kernel by CachyOS with other patches and improvementspkgver = 6.1.9diff --git a/linux-cachyos-pds/PKGBUILD b/linux-cachyos-pds/PKGBUILDindex 12336950..a78ec2a0 100644--- a/linux-cachyos-pds/PKGBUILD+++ b/linux-cachyos-pds/PKGBUILD@@ -143,7 +143,8 @@ _zstd_level_value=${_zstd_level_value-'normal'}# Clang LTO mode, only available with the "llvm" compiler - options are "no", "full" or "thin".# "full: uses 1 thread for Linking, slow and uses more memory, theoretically with the highest performance gains."# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."-_use_llvm_lto=${_use_llvm_lto-}+# "none: disable LTO+_use_llvm_lto=${_use_llvm_lto-none}# Use suffix -lto only when requested by the user# Enabled by default.@@ -186,7 +187,7 @@ _bcachefs=${_bcachefs-}# https://gitlab.com/ananicy-cpp/ananicy-cpp/-/tree/feature/latency-nice_latency_nice=${_latency_nice-}-if [[ -n "$_use_llvm_lto" && -n "$_use_lto_suffix" ]]; then+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" && -n "$_use_lto_suffix" ]]; thenpkgsuffix=cachyos-${_cpusched}-ltopkgbase=linux-$pkgsuffix@@ -213,7 +214,7 @@ license=('GPL2')options=('!strip')makedepends=('bc' 'libelf' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'zstd' 'gcc' 'gcc-libs' 'glibc' 'binutils' 'make' 'patch')# LLVM makedepends-if [ -n "$_use_llvm_lto" ]; then+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]]; thenmakedepends+=(clang llvm lld python)BUILD_FLAGS=(CC=clang@@ -353,31 +354,16 @@ prepare() {fi### Select LLVM level- if [ "$_use_llvm_lto" = "thin" ]; then- echo "Enabling LLVM THIN LTO..."- scripts/config -e LTO \- -e LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG_THIN \- -d LTO_NONE \- -e HAS_LTO_CLANG \- -d LTO_CLANG_FULL \- -e LTO_CLANG_THIN \- -e HAVE_GCC_PLUGINS- elif [ "$_use_llvm_lto" = "full" ]; then- echo "Enabling LLVM FULL LTO..."- scripts/config -e LTO \- -e LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG_THIN \- -d LTO_NONE \- -e HAS_LTO_CLANG \- -e LTO_CLANG_FULL \- -d LTO_CLANG_THIN \- -e HAVE_GCC_PLUGINS- else- scripts/config -e LTO_NONE- fi+ [ -z "$_use_llvm_lto" ] && _die "The value is empty. Choose the correct one again."++ case "$_use_llvm_lto" in+ thin) scripts/config -e LTO -e LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG_THIN -d LTO_NONE -e HAS_LTO_CLANG -d LTO_CLANG_FULL -e LTO_CLANG_THIN -e HAVE_GCC_PLUGINS;;+ full) scripts/config -e LTO -e LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG_THIN -d LTO_NONE -e HAS_LTO_CLANG -e LTO_CLANG_FULL -d LTO_CLANG_THIN -e HAVE_GCC_PLUGINS;;+ none) scripts/config -e LTO_NONE;;+ *) _die "The value $_use_llvm_lto is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_use_llvm_lto LLVM level..."### Enable GCC FULL LTO### Disable LTO_CP_CLONE, its experimentaldiff --git a/linux-cachyos-rc/.SRCINFO b/linux-cachyos-rc/.SRCINFOindex 8e6cdcfa..1a7bc8ca 100644--- a/linux-cachyos-rc/.SRCINFO+++ b/linux-cachyos-rc/.SRCINFO@@ -1,5 +1,5 @@# Generated by makepkg 6.0.2-# Thu Feb 2 08:43:59 UTC 2023+# Thu Feb 2 09:34:57 UTC 2023pkgbase = linux-cachyos-rcpkgdesc = Linux BORE scheduler Kernel by CachyOS and with some other patches and other improvementspkgver = 6.2.rc6diff --git a/linux-cachyos-rc/PKGBUILD b/linux-cachyos-rc/PKGBUILDindex cc859dfe..f3fdd284 100644--- a/linux-cachyos-rc/PKGBUILD+++ b/linux-cachyos-rc/PKGBUILD@@ -143,7 +143,8 @@ _zstd_level_value=${_zstd_level_value-'normal'}# Clang LTO mode, only available with the "llvm" compiler - options are "no", "full" or "thin".# "full: uses 1 thread for Linking, slow and uses more memory, theoretically with the highest performance gains."# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."-_use_llvm_lto=${_use_llvm_lto-}+# "none: disable LTO+_use_llvm_lto=${_use_llvm_lto-none}# Use suffix -lto only when requested by the user# Enabled by default.@@ -186,7 +187,7 @@ _bcachefs=${_bcachefs-}# https://gitlab.com/ananicy-cpp/ananicy-cpp/-/tree/feature/latency-nice_latency_nice=${_latency_nice-y}-if [[ -n "$_use_llvm_lto" && -n "$_use_lto_suffix" ]]; then+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" && -n "$_use_lto_suffix" ]]; thenpkgsuffix=cachyos-rc-ltopkgbase=linux-$pkgsuffix@@ -213,7 +214,7 @@ license=('GPL2')options=('!strip')makedepends=('bc' 'libelf' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'zstd' 'gcc' 'gcc-libs' 'glibc' 'binutils' 'make' 'patch')# LLVM makedepends-if [ -n "$_use_llvm_lto" ]; then+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]]; thenmakedepends+=(clang llvm lld python)BUILD_FLAGS=(CC=clang@@ -353,31 +354,16 @@ prepare() {fi### Select LLVM level- if [ "$_use_llvm_lto" = "thin" ]; then- echo "Enabling LLVM THIN LTO..."- scripts/config -e LTO \- -e LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG_THIN \- -d LTO_NONE \- -e HAS_LTO_CLANG \- -d LTO_CLANG_FULL \- -e LTO_CLANG_THIN \- -e HAVE_GCC_PLUGINS- elif [ "$_use_llvm_lto" = "full" ]; then- echo "Enabling LLVM FULL LTO..."- scripts/config -e LTO \- -e LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG_THIN \- -d LTO_NONE \- -e HAS_LTO_CLANG \- -e LTO_CLANG_FULL \- -d LTO_CLANG_THIN \- -e HAVE_GCC_PLUGINS- else- scripts/config -e LTO_NONE- fi+ [ -z "$_use_llvm_lto" ] && _die "The value is empty. Choose the correct one again."++ case "$_use_llvm_lto" in+ thin) scripts/config -e LTO -e LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG_THIN -d LTO_NONE -e HAS_LTO_CLANG -d LTO_CLANG_FULL -e LTO_CLANG_THIN -e HAVE_GCC_PLUGINS;;+ full) scripts/config -e LTO -e LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG_THIN -d LTO_NONE -e HAS_LTO_CLANG -e LTO_CLANG_FULL -d LTO_CLANG_THIN -e HAVE_GCC_PLUGINS;;+ none) scripts/config -e LTO_NONE;;+ *) _die "The value $_use_llvm_lto is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_use_llvm_lto LLVM level..."### Enable GCC FULL LTO### Disable LTO_CP_CLONE, its experimentaldiff --git a/linux-cachyos-server/.SRCINFO b/linux-cachyos-server/.SRCINFOindex 2d2bbfbc..15d3dd1b 100644--- a/linux-cachyos-server/.SRCINFO+++ b/linux-cachyos-server/.SRCINFO@@ -1,5 +1,5 @@# Generated by makepkg 6.0.2-# Thu Feb 2 08:44:36 UTC 2023+# Thu Feb 2 09:35:39 UTC 2023pkgbase = linux-cachyos-serverpkgdesc = Linux CFS scheduler Kernel by CachyOS targeted for Serverspkgver = 6.1.9diff --git a/linux-cachyos-server/PKGBUILD b/linux-cachyos-server/PKGBUILDindex 89cd9747..b10a1e79 100644--- a/linux-cachyos-server/PKGBUILD+++ b/linux-cachyos-server/PKGBUILD@@ -143,7 +143,8 @@ _zstd_level_value=${_zstd_level_value-'normal'}# Clang LTO mode, only available with the "llvm" compiler - options are "no", "full" or "thin".# "full: uses 1 thread for Linking, slow and uses more memory, theoretically with the highest performance gains."# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."-_use_llvm_lto=${_use_llvm_lto-}+# "none: disable LTO+_use_llvm_lto=${_use_llvm_lto-none}# Use suffix -lto only when requested by the user# Enabled by default.@@ -186,7 +187,7 @@ _bcachefs=${_bcachefs-}# https://gitlab.com/ananicy-cpp/ananicy-cpp/-/tree/feature/latency-nice_latency_nice=${_latency_nice-}-if [[ -n "$_use_llvm_lto" && -n "$_use_lto_suffix" ]]; then+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" && -n "$_use_lto_suffix" ]]; thenpkgsuffix=cachyos-server-ltopkgbase=linux-$pkgsuffix@@ -213,7 +214,7 @@ license=('GPL2')options=('!strip')makedepends=('bc' 'libelf' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'zstd' 'gcc' 'gcc-libs' 'glibc' 'binutils' 'make' 'patch')# LLVM makedepends-if [ -n "$_use_llvm_lto" ]; then+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]]; thenmakedepends+=(clang llvm lld python)BUILD_FLAGS=(CC=clang@@ -353,31 +354,16 @@ prepare() {fi### Select LLVM level- if [ "$_use_llvm_lto" = "thin" ]; then- echo "Enabling LLVM THIN LTO..."- scripts/config -e LTO \- -e LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG_THIN \- -d LTO_NONE \- -e HAS_LTO_CLANG \- -d LTO_CLANG_FULL \- -e LTO_CLANG_THIN \- -e HAVE_GCC_PLUGINS- elif [ "$_use_llvm_lto" = "full" ]; then- echo "Enabling LLVM FULL LTO..."- scripts/config -e LTO \- -e LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG_THIN \- -d LTO_NONE \- -e HAS_LTO_CLANG \- -e LTO_CLANG_FULL \- -d LTO_CLANG_THIN \- -e HAVE_GCC_PLUGINS- else- scripts/config -e LTO_NONE- fi+ [ -z "$_use_llvm_lto" ] && _die "The value is empty. Choose the correct one again."++ case "$_use_llvm_lto" in+ thin) scripts/config -e LTO -e LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG_THIN -d LTO_NONE -e HAS_LTO_CLANG -d LTO_CLANG_FULL -e LTO_CLANG_THIN -e HAVE_GCC_PLUGINS;;+ full) scripts/config -e LTO -e LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG_THIN -d LTO_NONE -e HAS_LTO_CLANG -e LTO_CLANG_FULL -d LTO_CLANG_THIN -e HAVE_GCC_PLUGINS;;+ none) scripts/config -e LTO_NONE;;+ *) _die "The value $_use_llvm_lto is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_use_llvm_lto LLVM level..."### Enable GCC FULL LTO### Disable LTO_CP_CLONE, its experimentaldiff --git a/linux-cachyos-tt/.SRCINFO b/linux-cachyos-tt/.SRCINFOindex efde2315..cfda0bc3 100644--- a/linux-cachyos-tt/.SRCINFO+++ b/linux-cachyos-tt/.SRCINFO@@ -1,5 +1,5 @@# Generated by makepkg 6.0.2-# Thu Feb 2 08:44:12 UTC 2023+# Thu Feb 2 09:35:11 UTC 2023pkgbase = linux-cachyos-ttpkgdesc = Linux TT scheduler Kernel by CachyOS with other patches and improvementspkgver = 6.1.9diff --git a/linux-cachyos-tt/PKGBUILD b/linux-cachyos-tt/PKGBUILDindex 343e227e..9e6ee660 100644--- a/linux-cachyos-tt/PKGBUILD+++ b/linux-cachyos-tt/PKGBUILD@@ -143,7 +143,8 @@ _zstd_level_value=${_zstd_level_value-'normal'}# Clang LTO mode, only available with the "llvm" compiler - options are "no", "full" or "thin".# "full: uses 1 thread for Linking, slow and uses more memory, theoretically with the highest performance gains."# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."-_use_llvm_lto=${_use_llvm_lto-}+# "none: disable LTO+_use_llvm_lto=${_use_llvm_lto-none}# Use suffix -lto only when requested by the user# Enabled by default.@@ -186,7 +187,7 @@ _bcachefs=${_bcachefs-}# https://gitlab.com/ananicy-cpp/ananicy-cpp/-/tree/feature/latency-nice_latency_nice=${_latency_nice-}-if [[ -n "$_use_llvm_lto" && -n "$_use_lto_suffix" ]]; then+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" && -n "$_use_lto_suffix" ]]; thenpkgsuffix=cachyos-${_cpusched}-ltopkgbase=linux-$pkgsuffix@@ -213,7 +214,7 @@ license=('GPL2')options=('!strip')makedepends=('bc' 'libelf' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'zstd' 'gcc' 'gcc-libs' 'glibc' 'binutils' 'make' 'patch')# LLVM makedepends-if [ -n "$_use_llvm_lto" ]; then+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]]; thenmakedepends+=(clang llvm lld python)BUILD_FLAGS=(CC=clang@@ -353,31 +354,16 @@ prepare() {fi### Select LLVM level- if [ "$_use_llvm_lto" = "thin" ]; then- echo "Enabling LLVM THIN LTO..."- scripts/config -e LTO \- -e LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG_THIN \- -d LTO_NONE \- -e HAS_LTO_CLANG \- -d LTO_CLANG_FULL \- -e LTO_CLANG_THIN \- -e HAVE_GCC_PLUGINS- elif [ "$_use_llvm_lto" = "full" ]; then- echo "Enabling LLVM FULL LTO..."- scripts/config -e LTO \- -e LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG_THIN \- -d LTO_NONE \- -e HAS_LTO_CLANG \- -e LTO_CLANG_FULL \- -d LTO_CLANG_THIN \- -e HAVE_GCC_PLUGINS- else- scripts/config -e LTO_NONE- fi+ [ -z "$_use_llvm_lto" ] && _die "The value is empty. Choose the correct one again."++ case "$_use_llvm_lto" in+ thin) scripts/config -e LTO -e LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG_THIN -d LTO_NONE -e HAS_LTO_CLANG -d LTO_CLANG_FULL -e LTO_CLANG_THIN -e HAVE_GCC_PLUGINS;;+ full) scripts/config -e LTO -e LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG_THIN -d LTO_NONE -e HAS_LTO_CLANG -e LTO_CLANG_FULL -d LTO_CLANG_THIN -e HAVE_GCC_PLUGINS;;+ none) scripts/config -e LTO_NONE;;+ *) _die "The value $_use_llvm_lto is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_use_llvm_lto LLVM level..."### Enable GCC FULL LTO### Disable LTO_CP_CLONE, its experimentaldiff --git a/linux-cachyos/.SRCINFO b/linux-cachyos/.SRCINFOindex f6e353d1..87b07477 100644--- a/linux-cachyos/.SRCINFO+++ b/linux-cachyos/.SRCINFO@@ -1,5 +1,5 @@# Generated by makepkg 6.0.2-# Thu Feb 2 08:42:55 UTC 2023+# Thu Feb 2 09:33:51 UTC 2023pkgbase = linux-cachyospkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvementspkgver = 6.1.9diff --git a/linux-cachyos/PKGBUILD b/linux-cachyos/PKGBUILDindex 67f08e68..0f430589 100644--- a/linux-cachyos/PKGBUILD+++ b/linux-cachyos/PKGBUILD@@ -143,7 +143,8 @@ _zstd_level_value=${_zstd_level_value-'normal'}# Clang LTO mode, only available with the "llvm" compiler - options are "no", "full" or "thin".# "full: uses 1 thread for Linking, slow and uses more memory, theoretically with the highest performance gains."# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."-_use_llvm_lto=${_use_llvm_lto-}+# "none: disable LTO+_use_llvm_lto=${_use_llvm_lto-none}# Use suffix -lto only when requested by the user# Enabled by default.@@ -186,7 +187,7 @@ _bcachefs=${_bcachefs-}# https://gitlab.com/ananicy-cpp/ananicy-cpp/-/tree/feature/latency-nice_latency_nice=${_latency_nice-y}-if [[ -n "$_use_llvm_lto" && -n "$_use_lto_suffix" ]]; then+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" && -n "$_use_lto_suffix" ]]; thenpkgsuffix=cachyos-ltopkgbase=linux-$pkgsuffix@@ -213,7 +214,7 @@ license=('GPL2')options=('!strip')makedepends=('bc' 'libelf' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'zstd' 'gcc' 'gcc-libs' 'glibc' 'binutils' 'make' 'patch')# LLVM makedepends-if [ -n "$_use_llvm_lto" ]; then+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]]; thenmakedepends+=(clang llvm lld python)BUILD_FLAGS=(CC=clang@@ -353,31 +354,16 @@ prepare() {fi### Select LLVM level- if [ "$_use_llvm_lto" = "thin" ]; then- echo "Enabling LLVM THIN LTO..."- scripts/config -e LTO \- -e LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG_THIN \- -d LTO_NONE \- -e HAS_LTO_CLANG \- -d LTO_CLANG_FULL \- -e LTO_CLANG_THIN \- -e HAVE_GCC_PLUGINS- elif [ "$_use_llvm_lto" = "full" ]; then- echo "Enabling LLVM FULL LTO..."- scripts/config -e LTO \- -e LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG_THIN \- -d LTO_NONE \- -e HAS_LTO_CLANG \- -e LTO_CLANG_FULL \- -d LTO_CLANG_THIN \- -e HAVE_GCC_PLUGINS- else- scripts/config -e LTO_NONE- fi+ [ -z "$_use_llvm_lto" ] && _die "The value is empty. Choose the correct one again."++ case "$_use_llvm_lto" in+ thin) scripts/config -e LTO -e LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG_THIN -d LTO_NONE -e HAS_LTO_CLANG -d LTO_CLANG_FULL -e LTO_CLANG_THIN -e HAVE_GCC_PLUGINS;;+ full) scripts/config -e LTO -e LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG_THIN -d LTO_NONE -e HAS_LTO_CLANG -e LTO_CLANG_FULL -d LTO_CLANG_THIN -e HAVE_GCC_PLUGINS;;+ none) scripts/config -e LTO_NONE;;+ *) _die "The value $_use_llvm_lto is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_use_llvm_lto LLVM level..."### Enable GCC FULL LTO### Disable LTO_CP_CLONE, its experimentaldiff --git a/linux-tt/.SRCINFO b/linux-tt/.SRCINFOindex 7328dec9..664563ce 100644--- a/linux-tt/.SRCINFO+++ b/linux-tt/.SRCINFO@@ -1,5 +1,5 @@# Generated by makepkg 6.0.2-# Thu Feb 2 08:44:24 UTC 2023+# Thu Feb 2 09:35:25 UTC 2023pkgbase = linux-ttpkgdesc = Linux TT scheduler Kernel by CachyOS with other patches and improvementspkgver = 6.1.9diff --git a/linux-tt/PKGBUILD b/linux-tt/PKGBUILDindex bcef2267..13ed7e24 100644--- a/linux-tt/PKGBUILD+++ b/linux-tt/PKGBUILD@@ -143,7 +143,8 @@ _zstd_level_value=${_zstd_level_value-'normal'}# Clang LTO mode, only available with the "llvm" compiler - options are "no", "full" or "thin".# "full: uses 1 thread for Linking, slow and uses more memory, theoretically with the highest performance gains."# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."-_use_llvm_lto=${_use_llvm_lto-}+# "none: disable LTO+_use_llvm_lto=${_use_llvm_lto-none}# Use suffix -lto only when requested by the user# Enabled by default.@@ -186,7 +187,7 @@ _bcachefs=${_bcachefs-}# https://gitlab.com/ananicy-cpp/ananicy-cpp/-/tree/feature/latency-nice_latency_nice=${_latency_nice-}-if [[ -n "$_use_llvm_lto" && -n "$_use_lto_suffix" ]]; then+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" && -n "$_use_lto_suffix" ]]; thenpkgsuffix=${_cpusched}-ltopkgbase=linux-$pkgsuffix@@ -213,7 +214,7 @@ license=('GPL2')options=('!strip')makedepends=('bc' 'libelf' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'zstd' 'gcc' 'gcc-libs' 'glibc' 'binutils' 'make' 'patch')# LLVM makedepends-if [ -n "$_use_llvm_lto" ]; then+if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]]; thenmakedepends+=(clang llvm lld python)BUILD_FLAGS=(CC=clang@@ -353,31 +354,16 @@ prepare() {fi### Select LLVM level- if [ "$_use_llvm_lto" = "thin" ]; then- echo "Enabling LLVM THIN LTO..."- scripts/config -e LTO \- -e LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG_THIN \- -d LTO_NONE \- -e HAS_LTO_CLANG \- -d LTO_CLANG_FULL \- -e LTO_CLANG_THIN \- -e HAVE_GCC_PLUGINS- elif [ "$_use_llvm_lto" = "full" ]; then- echo "Enabling LLVM FULL LTO..."- scripts/config -e LTO \- -e LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG \- -e ARCH_SUPPORTS_LTO_CLANG_THIN \- -d LTO_NONE \- -e HAS_LTO_CLANG \- -e LTO_CLANG_FULL \- -d LTO_CLANG_THIN \- -e HAVE_GCC_PLUGINS- else- scripts/config -e LTO_NONE- fi+ [ -z "$_use_llvm_lto" ] && _die "The value is empty. Choose the correct one again."++ case "$_use_llvm_lto" in+ thin) scripts/config -e LTO -e LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG_THIN -d LTO_NONE -e HAS_LTO_CLANG -d LTO_CLANG_FULL -e LTO_CLANG_THIN -e HAVE_GCC_PLUGINS;;+ full) scripts/config -e LTO -e LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG -e ARCH_SUPPORTS_LTO_CLANG_THIN -d LTO_NONE -e HAS_LTO_CLANG -e LTO_CLANG_FULL -d LTO_CLANG_THIN -e HAVE_GCC_PLUGINS;;+ none) scripts/config -e LTO_NONE;;+ *) _die "The value $_use_llvm_lto is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_use_llvm_lto LLVM level..."### Enable GCC FULL LTO### Disable LTO_CP_CLONE, its experimentaldiff --git a/script.sh b/script.shindex e00c32fa..12f7d62a 100755--- a/script.sh+++ b/script.sh@@ -25,7 +25,7 @@ mv */*-x86_64_v3.pkg.tar.zst* /home/ptr1337/.docker/build/nginx/www/repo/x86_64_repoctl update -P cachyos-v3## LLVM v3 Kernel-find . -name "PKGBUILD" | xargs -I {} sed -i "s/_use_llvm_lto-/_use_llvm_lto-thin/" {}+find . -name "PKGBUILD" | xargs -I {} sed -i "s/_use_llvm_lto-none/_use_llvm_lto-thin/" {}files=$(find . -name "PKGBUILD")@@ -45,7 +45,7 @@ repoctl update -P cachyos-v3## GCC Generic Kernelfind . -name "config" | xargs -I {} sed -i 's/GENERIC_CPU3=y/GENERIC_CPU=y/' {}-find . -name "PKGBUILD" | xargs -I {} sed -i "s/_use_llvm_lto-thin/_use_llvm_lto-/" {}+find . -name "PKGBUILD" | xargs -I {} sed -i "s/_use_llvm_lto-thin/_use_llvm_lto-none/" {}files=$(find . -name "PKGBUILD")