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
This commit is contained in:
@@ -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"
|
||||
|
Reference in New Issue
Block a user