From 23197d57fd0ec21d42bfe7c2920a26bf7071315a Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Thu, 22 Feb 2024 19:16:29 +0100 Subject: [PATCH] Update graysky2's compiler optimization patches for 5.17-6.1.78, 6.1.79-6.8-rc3 qnd 6.8-rc4+ The 6.1.79-6.8-rc3 patch doesn't apply against 6.8-rc1, rc2 and rc3, so let's only apply the 6.8-rc4+ patch against 6.8rc. It applies fine against 6.8-rc5. Fixes https://github.com/Frogging-Family/linux-tkg/issues/889 --- linux-tkg-config/prepare | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/linux-tkg-config/prepare b/linux-tkg-config/prepare index 8f60974..d6cc7b7 100644 --- a/linux-tkg-config/prepare +++ b/linux-tkg-config/prepare @@ -674,14 +674,17 @@ _tkg_srcprep() { _patch_name="more-uarches-for-kernel-5.8-5.14" elif [[ "$_kver" =~ ^(515|516)$ ]]; then _patch_name="more-uarches-for-kernel-5.15-5.16" + elif ( [ "$_kver" = "601" ] && [[ $_sub < 79 ]] ) || ( [ "$_kver" = "606" ] && [[ $_sub < 18 ]] ) || ( [ "$_kver" = "607" ] && [[ $_sub < 6 ]] ) || [[ "$_kver" =~ ^(517|518|519|600|602|603|604|605)$ ]]; then + _patch_name="more-uarches-for-kernel-5.17-6.1.78" + elif [[ "$_kver" =~ ^(601|606|607)$ ]]; then + _patch_name="more-uarches-for-kernel-6.1.79-6.8-rc3" else - _patch_name="more-uarches-for-kernel-5.17%2B" + _patch_name="more-uarches-for-kernel-6.8-rc4%2B" fi - curl "https://raw.githubusercontent.com/graysky2/kernel_compiler_patch/master/${_outdated}${_patch_name}.patch" > "$srcdir"/"${_patch_name}".patch || true tkgpatch="${_patch_location}/${_patch_name}.patch" - if [ -e "$tkgpatch" ] && [ "$_kver" != "608" ]; then + if [ -e "$tkgpatch" ]; then _msg="Applying graysky's cpu opts patch" && _tkg_patcher else msg2 "Couldn't find graysky's cpu opts patch for this version"