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"