diff --git a/linux-cachyos-bmq/PKGBUILD b/linux-cachyos-bmq/PKGBUILD index 9fd8ab4c..56317c83 100644 --- a/linux-cachyos-bmq/PKGBUILD +++ b/linux-cachyos-bmq/PKGBUILD @@ -118,6 +118,10 @@ _use_llvm_lto=${_use_llvm_lto-none} # https://github.com/CachyOS/linux-cachyos/issues/36 _use_lto_suffix=${_use_lto_suffix-y} +# Use suffix -gcc when requested by the user +# This was added to facilitate https://github.com/CachyOS/linux-cachyos/issues/286 +_use_gcc_suffix=${_use_gcc_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 @@ -144,12 +148,13 @@ _build_debug=${_build_debug-} if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] && [ "$_use_lto_suffix" = "y" ]; then _pkgsuffix="cachyos-${_cpusched}-lto" - pkgbase="linux-$_pkgsuffix" - -elif [ -n "$_use_llvm_lto" ] || [[ "$_use_lto_suffix" = "n" ]]; then +elif [ "$_use_llvm_lto" = "none" ] && [ -z "$_use_kcfi" ] && [ "$_use_gcc_suffix" = "y" ]; then + _pkgsuffix="cachyos-${_cpusched}-gcc" +else _pkgsuffix="cachyos-${_cpusched}" - pkgbase="linux-$_pkgsuffix" fi + +pkgbase="linux-$_pkgsuffix" _major=6.11 _minor=2 #_minorc=$((_minor+1)) diff --git a/linux-cachyos-bore/PKGBUILD b/linux-cachyos-bore/PKGBUILD index e5edb569..170a7c8f 100644 --- a/linux-cachyos-bore/PKGBUILD +++ b/linux-cachyos-bore/PKGBUILD @@ -118,6 +118,10 @@ _use_llvm_lto=${_use_llvm_lto-none} # https://github.com/CachyOS/linux-cachyos/issues/36 _use_lto_suffix=${_use_lto_suffix-y} +# Use suffix -gcc when requested by the user +# This was added to facilitate https://github.com/CachyOS/linux-cachyos/issues/286 +_use_gcc_suffix=${_use_gcc_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 @@ -144,12 +148,13 @@ _build_debug=${_build_debug-} if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] && [ "$_use_lto_suffix" = "y" ]; then _pkgsuffix="cachyos-${_cpusched}-lto" - pkgbase="linux-$_pkgsuffix" - -elif [ -n "$_use_llvm_lto" ] || [[ "$_use_lto_suffix" = "n" ]]; then +elif [ "$_use_llvm_lto" = "none" ] && [ -z "$_use_kcfi" ] && [ "$_use_gcc_suffix" = "y" ]; then + _pkgsuffix="cachyos-${_cpusched}-gcc" +else _pkgsuffix="cachyos-${_cpusched}" - pkgbase="linux-$_pkgsuffix" fi + +pkgbase="linux-$_pkgsuffix" _major=6.11 _minor=2 #_minorc=$((_minor+1)) diff --git a/linux-cachyos-deckify/PKGBUILD b/linux-cachyos-deckify/PKGBUILD index 69d17480..381a41f6 100644 --- a/linux-cachyos-deckify/PKGBUILD +++ b/linux-cachyos-deckify/PKGBUILD @@ -118,6 +118,10 @@ _use_llvm_lto=${_use_llvm_lto-none} # https://github.com/CachyOS/linux-cachyos/issues/36 _use_lto_suffix=${_use_lto_suffix-y} +# Use suffix -gcc when requested by the user +# This was added to facilitate https://github.com/CachyOS/linux-cachyos/issues/286 +_use_gcc_suffix=${_use_gcc_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 @@ -143,13 +147,14 @@ _build_nvidia_open=${_build_nvidia_open-} _build_debug=${_build_debug-} if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] && [ "$_use_lto_suffix" = "y" ]; then - _pkgsuffix=cachyos-deckify-lto - pkgbase="linux-$_pkgsuffix" - -elif [ -n "$_use_llvm_lto" ] || [[ "$_use_lto_suffix" = "n" ]]; then - _pkgsuffix=cachyos-deckify - pkgbase="linux-$_pkgsuffix" + _pkgsuffix="cachyos-deckify-lto" +elif [ "$_use_llvm_lto" = "none" ] && [ -z "$_use_kcfi" ] && [ "$_use_gcc_suffix" = "y" ]; then + _pkgsuffix="cachyos-deckify-gcc" +else + _pkgsuffix="cachyos-deckify" fi + +pkgbase="linux-$_pkgsuffix" _major=6.11 _minor=2 #_minorc=$((_minor+1)) diff --git a/linux-cachyos-eevdf/PKGBUILD b/linux-cachyos-eevdf/PKGBUILD index fa681ad1..19c58dbe 100644 --- a/linux-cachyos-eevdf/PKGBUILD +++ b/linux-cachyos-eevdf/PKGBUILD @@ -118,6 +118,10 @@ _use_llvm_lto=${_use_llvm_lto-none} # https://github.com/CachyOS/linux-cachyos/issues/36 _use_lto_suffix=${_use_lto_suffix-y} +# Use suffix -gcc when requested by the user +# This was added to facilitate https://github.com/CachyOS/linux-cachyos/issues/286 +_use_gcc_suffix=${_use_gcc_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 @@ -144,12 +148,13 @@ _build_debug=${_build_debug-} if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] && [ "$_use_lto_suffix" = "y" ]; then _pkgsuffix="cachyos-${_cpusched}-lto" - pkgbase="linux-$_pkgsuffix" - -elif [ -n "$_use_llvm_lto" ] || [[ "$_use_lto_suffix" = "n" ]]; then +elif [ "$_use_llvm_lto" = "none" ] && [ -z "$_use_kcfi" ] && [ "$_use_gcc_suffix" = "y" ]; then + _pkgsuffix="cachyos-${_cpusched}-gcc" +else _pkgsuffix="cachyos-${_cpusched}" - pkgbase="linux-$_pkgsuffix" fi + +pkgbase="linux-$_pkgsuffix" _major=6.11 _minor=2 #_minorc=$((_minor+1)) diff --git a/linux-cachyos-hardened/PKGBUILD b/linux-cachyos-hardened/PKGBUILD index e86e7b1b..b80cbdfc 100644 --- a/linux-cachyos-hardened/PKGBUILD +++ b/linux-cachyos-hardened/PKGBUILD @@ -118,6 +118,10 @@ _use_llvm_lto=${_use_llvm_lto-none} # https://github.com/CachyOS/linux-cachyos/issues/36 _use_lto_suffix=${_use_lto_suffix-y} +# Use suffix -gcc when requested by the user +# This was added to facilitate https://github.com/CachyOS/linux-cachyos/issues/286 +_use_gcc_suffix=${_use_gcc_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 @@ -143,13 +147,14 @@ _build_nvidia_open=${_build_nvidia_open-} _build_debug=${_build_debug-} if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] && [ "$_use_lto_suffix" = "y" ]; then - _pkgsuffix="cachyos-${_cpusched}-lto" - pkgbase="linux-$_pkgsuffix" - -elif [ -n "$_use_llvm_lto" ] || [[ "$_use_lto_suffix" = "n" ]]; then - _pkgsuffix="cachyos-${_cpusched}" - pkgbase="linux-$_pkgsuffix" -fi + _pkgsuffix="cachyos-${_cpusched}-lto" +elif [ "$_use_llvm_lto" = "none" ] && [ -z "$_use_kcfi" ] && [ "$_use_gcc_suffix" = "y" ]; then + _pkgsuffix="cachyos-${_cpusched}-gcc" +else + _pkgsuffix="cachyos-${_cpusched}" + fi + +pkgbase="linux-$_pkgsuffix" _major=6.10 _minor=13 #_minorc=$((_minor+1)) diff --git a/linux-cachyos-lts/PKGBUILD b/linux-cachyos-lts/PKGBUILD index 8404072c..1c9c2823 100644 --- a/linux-cachyos-lts/PKGBUILD +++ b/linux-cachyos-lts/PKGBUILD @@ -137,6 +137,10 @@ _use_llvm_lto=${_use_llvm_lto-none} # https://github.com/CachyOS/linux-cachyos/issues/36 _use_lto_suffix=${_use_lto_suffix-y} +# Use suffix -gcc when requested by the user +# This was added to facilitate https://github.com/CachyOS/linux-cachyos/issues/286 +_use_gcc_suffix=${_use_gcc_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 @@ -166,13 +170,14 @@ _build_nvidia_open=${_build_nvidia_open-} _build_debug=${_build_debug-} if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] && [ "$_use_lto_suffix" = "y" ]; then - _pkgsuffix=cachyos-lts-lto - pkgbase="linux-$_pkgsuffix" - -elif [ -n "$_use_llvm_lto" ] || [[ "$_use_lto_suffix" = "n" ]]; then - _pkgsuffix=cachyos-lts - pkgbase="linux-$_pkgsuffix" + _pkgsuffix="cachyos-lts-lto" +elif [ "$_use_llvm_lto" = "none" ] && [ -z "$_use_kcfi" ] && [ "$_use_gcc_suffix" = "y" ]; then + _pkgsuffix="cachyos-lts-gcc" +else + _pkgsuffix="cachyos-lts" fi + +pkgbase="linux-$_pkgsuffix" _major=6.6 _minor=54 #_minorc=$((_minor+1)) diff --git a/linux-cachyos-rc/PKGBUILD b/linux-cachyos-rc/PKGBUILD index d2035844..ea1c3bc9 100644 --- a/linux-cachyos-rc/PKGBUILD +++ b/linux-cachyos-rc/PKGBUILD @@ -118,6 +118,10 @@ _use_llvm_lto=${_use_llvm_lto-none} # https://github.com/CachyOS/linux-cachyos/issues/36 _use_lto_suffix=${_use_lto_suffix-y} +# Use suffix -gcc when requested by the user +# This was added to facilitate https://github.com/CachyOS/linux-cachyos/issues/286 +_use_gcc_suffix=${_use_gcc_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 @@ -143,13 +147,14 @@ _build_nvidia_open=${_build_nvidia_open-} _build_debug=${_build_debug-} if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] && [ "$_use_lto_suffix" = "y" ]; then - _pkgsuffix=cachyos-rc-lto - pkgbase="linux-$_pkgsuffix" - -elif [ -n "$_use_llvm_lto" ] || [[ "$_use_lto_suffix" = "n" ]]; then - _pkgsuffix=cachyos-rc - pkgbase="linux-$_pkgsuffix" + _pkgsuffix="cachyos-rc-lto" +elif [ "$_use_llvm_lto" = "none" ] && [ -z "$_use_kcfi" ] && [ "$_use_gcc_suffix" = "y" ]; then + _pkgsuffix="cachyos-rc-gcc" +else + _pkgsuffix="cachyos-rc" fi + +pkgbase="linux-$_pkgsuffix" _major=6.12 _minor=0 #_minorc=$((_minor+1)) diff --git a/linux-cachyos-rt-bore/PKGBUILD b/linux-cachyos-rt-bore/PKGBUILD index 60aca897..6e1df362 100644 --- a/linux-cachyos-rt-bore/PKGBUILD +++ b/linux-cachyos-rt-bore/PKGBUILD @@ -118,6 +118,10 @@ _use_llvm_lto=${_use_llvm_lto-none} # https://github.com/CachyOS/linux-cachyos/issues/36 _use_lto_suffix=${_use_lto_suffix-y} +# Use suffix -gcc when requested by the user +# This was added to facilitate https://github.com/CachyOS/linux-cachyos/issues/286 +_use_gcc_suffix=${_use_gcc_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 @@ -144,12 +148,13 @@ _build_debug=${_build_debug-} if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] && [ "$_use_lto_suffix" = "y" ]; then _pkgsuffix="cachyos-${_cpusched}-lto" - pkgbase="linux-$_pkgsuffix" - -elif [ -n "$_use_llvm_lto" ] || [[ "$_use_lto_suffix" = "n" ]]; then +elif [ "$_use_llvm_lto" = "none" ] && [ -z "$_use_kcfi" ] && [ "$_use_gcc_suffix" = "y" ]; then + _pkgsuffix="cachyos-${_cpusched}-gcc" +else _pkgsuffix="cachyos-${_cpusched}" - pkgbase="linux-$_pkgsuffix" fi + +pkgbase="linux-$_pkgsuffix" _major=6.11 _minor=2 #_minorc=$((_minor+1)) diff --git a/linux-cachyos-sched-ext/PKGBUILD b/linux-cachyos-sched-ext/PKGBUILD index 39227d73..86f9fd6c 100644 --- a/linux-cachyos-sched-ext/PKGBUILD +++ b/linux-cachyos-sched-ext/PKGBUILD @@ -118,6 +118,10 @@ _use_llvm_lto=${_use_llvm_lto-none} # https://github.com/CachyOS/linux-cachyos/issues/36 _use_lto_suffix=${_use_lto_suffix-y} +# Use suffix -gcc when requested by the user +# This was added to facilitate https://github.com/CachyOS/linux-cachyos/issues/286 +_use_gcc_suffix=${_use_gcc_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 @@ -144,12 +148,13 @@ _build_debug=${_build_debug-} if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] && [ "$_use_lto_suffix" = "y" ]; then _pkgsuffix="cachyos-${_cpusched}-lto" - pkgbase="linux-$_pkgsuffix" - -elif [ -n "$_use_llvm_lto" ] || [[ "$_use_lto_suffix" = "n" ]]; then +elif [ "$_use_llvm_lto" = "none" ] && [ -z "$_use_kcfi" ] && [ "$_use_gcc_suffix" = "y" ]; then + _pkgsuffix="cachyos-${_cpusched}-gcc" +else _pkgsuffix="cachyos-${_cpusched}" - pkgbase="linux-$_pkgsuffix" fi + +pkgbase="linux-$_pkgsuffix" _major=6.11 _minor=2 #_minorc=$((_minor+1)) diff --git a/linux-cachyos-server/PKGBUILD b/linux-cachyos-server/PKGBUILD index 1112b43c..0b7e4b01 100644 --- a/linux-cachyos-server/PKGBUILD +++ b/linux-cachyos-server/PKGBUILD @@ -118,6 +118,10 @@ _use_llvm_lto=${_use_llvm_lto-none} # https://github.com/CachyOS/linux-cachyos/issues/36 _use_lto_suffix=${_use_lto_suffix-y} +# Use suffix -gcc when requested by the user +# This was added to facilitate https://github.com/CachyOS/linux-cachyos/issues/286 +_use_gcc_suffix=${_use_gcc_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 @@ -143,13 +147,14 @@ _build_nvidia_open=${_build_nvidia_open-} _build_debug=${_build_debug-} if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] && [ "$_use_lto_suffix" = "y" ]; then - _pkgsuffix=cachyos-server-lto - pkgbase="linux-$_pkgsuffix" - -elif [ -n "$_use_llvm_lto" ] || [[ "$_use_lto_suffix" = "n" ]]; then - _pkgsuffix=cachyos-server - pkgbase="linux-$_pkgsuffix" + _pkgsuffix="cachyos-server-lto" +elif [ "$_use_llvm_lto" = "none" ] && [ -z "$_use_kcfi" ] && [ "$_use_gcc_suffix" = "y" ]; then + _pkgsuffix="cachyos-server-gcc" +else + _pkgsuffix="cachyos-server" fi + +pkgbase="linux-$_pkgsuffix" _major=6.11 _minor=2 #_minorc=$((_minor+1)) diff --git a/linux-cachyos/PKGBUILD b/linux-cachyos/PKGBUILD index bff8a8a9..8f31f44c 100644 --- a/linux-cachyos/PKGBUILD +++ b/linux-cachyos/PKGBUILD @@ -152,7 +152,7 @@ _build_debug=${_build_debug-} if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] && [ "$_use_lto_suffix" = "y" ]; then _pkgsuffix=cachyos-lto -elif [ "$_use_llvm_lto" = "none" ] && [ -z "_use_kcfi" ] && [ "$_use_gcc_suffix" = "y" ]; then +elif [ "$_use_llvm_lto" = "none" ] && [ -z "$_use_kcfi" ] && [ "$_use_gcc_suffix" = "y" ]; then _pkgsuffix=cachyos-gcc else _pkgsuffix=cachyos