linux57: Fix graysky2's compiler patch path

This commit is contained in:
Tk-Glitch
2022-05-25 20:26:37 +02:00
parent b75cb38ac8
commit 59775add06

View File

@@ -446,7 +446,8 @@ _tkg_srcprep() {
if [ "$_basever" = "54" ]; then
_patch_name="more-uarches-for-kernel-4.19-5.4"
elif [ "$_basever" = "57" ]; then
_patch_name="outdated_versions/enable_additional_cpu_optimizations_for_gcc_v10.1%2B_kernel_v5.7"
_outdated="outdated_versions/"
_patch_name="enable_additional_cpu_optimizations_for_gcc_v10.1%2B_kernel_v5.7"
elif (( 58 <= "$_basever" && "$_basever" <= 514 )); then
_patch_name="more-uarches-for-kernel-5.8-5.14"
elif [[ "$_basever" =~ ^(515|516)$ ]]; then
@@ -455,7 +456,7 @@ _tkg_srcprep() {
_patch_name="more-uarches-for-kernel-5.17%2B"
fi
wget -O "${_patch_location}/${_patch_name}.patch" "https://raw.githubusercontent.com/graysky2/kernel_compiler_patch/master/${_patch_name}.patch"
wget -O "${_patch_location}/${_patch_name}.patch" "https://raw.githubusercontent.com/graysky2/kernel_compiler_patch/master/${_outdated}${_patch_name}.patch"
tkgpatch="${_patch_location}/${_patch_name}.patch"
_msg="Applying graysky's cpu opts patch" && _tkg_patcher