Skip to content

Commit

Permalink
Update graysky2's compiler optimization patches for 5.17-6.1.78, 6.1.…
Browse files Browse the repository at this point in the history
…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 #889
  • Loading branch information
Tk-Glitch committed Feb 22, 2024
1 parent 829c6d5 commit 23197d5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions linux-tkg-config/prepare
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 23197d5

Please sign in to comment.