Skip to content

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

Refactor and cleanup PKGBUILDS

Piotr Gorski3c70a9253a1f
diff --git a/linux-bore/.SRCINFO b/linux-bore/.SRCINFO
index 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 2023
pkgbase = linux-bore
pkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.1.9
diff --git a/linux-bore/PKGBUILD b/linux-bore/PKGBUILD
index 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" ]]; then
pkgsuffix=${_cpusched}-lto
pkgbase=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" ]]; then
makedepends+=(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 experimental
diff --git a/linux-cachyos-bmq/.SRCINFO b/linux-cachyos-bmq/.SRCINFO
index 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 2023
pkgbase = linux-cachyos-bmq
pkgdesc = Linux BMQ scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.1.9
diff --git a/linux-cachyos-bmq/PKGBUILD b/linux-cachyos-bmq/PKGBUILD
index 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" ]]; then
pkgsuffix=cachyos-${_cpusched}-lto
pkgbase=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" ]]; then
makedepends+=(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 experimental
diff --git a/linux-cachyos-bore/.SRCINFO b/linux-cachyos-bore/.SRCINFO
index 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 2023
pkgbase = linux-cachyos-bore
pkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.1.9
diff --git a/linux-cachyos-bore/PKGBUILD b/linux-cachyos-bore/PKGBUILD
index 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" ]]; then
pkgsuffix=cachyos-${_cpusched}-lto
pkgbase=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" ]]; then
makedepends+=(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 experimental
diff --git a/linux-cachyos-cfs/.SRCINFO b/linux-cachyos-cfs/.SRCINFO
index 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 2023
pkgbase = linux-cachyos-cfs
pkgdesc = Linux CFS scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.1.9
diff --git a/linux-cachyos-cfs/PKGBUILD b/linux-cachyos-cfs/PKGBUILD
index 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" ]]; then
pkgsuffix=cachyos-${_cpusched}-lto
pkgbase=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" ]]; then
makedepends+=(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 experimental
diff --git a/linux-cachyos-hardened/.SRCINFO b/linux-cachyos-hardened/.SRCINFO
index 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 2023
pkgbase = linux-cachyos-hardened
pkgdesc = Linux hardenened BORE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.1.9
diff --git a/linux-cachyos-hardened/PKGBUILD b/linux-cachyos-hardened/PKGBUILD
index 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" ]]; then
pkgsuffix=cachyos-${_cpusched}-lto
pkgbase=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" ]]; then
makedepends+=(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 experimental
diff --git a/linux-cachyos-pds/.SRCINFO b/linux-cachyos-pds/.SRCINFO
index 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 2023
pkgbase = linux-cachyos-pds
pkgdesc = Linux PDS scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.1.9
diff --git a/linux-cachyos-pds/PKGBUILD b/linux-cachyos-pds/PKGBUILD
index 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" ]]; then
pkgsuffix=cachyos-${_cpusched}-lto
pkgbase=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" ]]; then
makedepends+=(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 experimental
diff --git a/linux-cachyos-rc/.SRCINFO b/linux-cachyos-rc/.SRCINFO
index 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 2023
pkgbase = linux-cachyos-rc
pkgdesc = Linux BORE scheduler Kernel by CachyOS and with some other patches and other improvements
pkgver = 6.2.rc6
diff --git a/linux-cachyos-rc/PKGBUILD b/linux-cachyos-rc/PKGBUILD
index 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" ]]; then
pkgsuffix=cachyos-rc-lto
pkgbase=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" ]]; then
makedepends+=(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 experimental
diff --git a/linux-cachyos-server/.SRCINFO b/linux-cachyos-server/.SRCINFO
index 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 2023
pkgbase = linux-cachyos-server
pkgdesc = Linux CFS scheduler Kernel by CachyOS targeted for Servers
pkgver = 6.1.9
diff --git a/linux-cachyos-server/PKGBUILD b/linux-cachyos-server/PKGBUILD
index 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" ]]; then
pkgsuffix=cachyos-server-lto
pkgbase=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" ]]; then
makedepends+=(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 experimental
diff --git a/linux-cachyos-tt/.SRCINFO b/linux-cachyos-tt/.SRCINFO
index 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 2023
pkgbase = linux-cachyos-tt
pkgdesc = Linux TT scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.1.9
diff --git a/linux-cachyos-tt/PKGBUILD b/linux-cachyos-tt/PKGBUILD
index 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" ]]; then
pkgsuffix=cachyos-${_cpusched}-lto
pkgbase=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" ]]; then
makedepends+=(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 experimental
diff --git a/linux-cachyos/.SRCINFO b/linux-cachyos/.SRCINFO
index 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 2023
pkgbase = linux-cachyos
pkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.1.9
diff --git a/linux-cachyos/PKGBUILD b/linux-cachyos/PKGBUILD
index 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" ]]; then
pkgsuffix=cachyos-lto
pkgbase=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" ]]; then
makedepends+=(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 experimental
diff --git a/linux-tt/.SRCINFO b/linux-tt/.SRCINFO
index 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 2023
pkgbase = linux-tt
pkgdesc = Linux TT scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.1.9
diff --git a/linux-tt/PKGBUILD b/linux-tt/PKGBUILD
index 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" ]]; then
pkgsuffix=${_cpusched}-lto
pkgbase=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" ]]; then
makedepends+=(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 experimental
diff --git a/script.sh b/script.sh
index 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 Kernel
find . -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")