Fix tkgpatch names for graysky's cpu opt patches and add a legacy path

This commit is contained in:
Tk-Glitch 2021-03-09 16:12:10 +01:00
parent b95ba7d6c3
commit 3a3d09dc8d

View File

@ -358,6 +358,15 @@ _tkg_srcprep() {
# graysky's cpu opts - https://github.com/graysky2/kernel_gcc_patch
msg2 "Applying graysky's cpu opts patch"
if [ "${_distro}" = "Arch" ]; then
tkgpatch="$srcdir/more-uarches-for-gcc-v10-and-kernel-${opt_ver}.patch" && _tkg_patcher
elif [ "${_distro}" = "Void" ]; then
tkgpatch="${wrksrc}/more-uarches-for-gcc-v10-and-kernel-${opt_ver}.patch" && _tkg_patcher
else
tkgpatch="$srcdir/more-uarches-for-gcc-v10-and-kernel-${opt_ver}.patch" && _tkg_patcher
fi
msg2 "Applying graysky's cpu opts patch (legacy)"
if [ "${_distro}" = "Arch" ]; then
tkgpatch="$srcdir/enable_additional_cpu_optimizations_for_gcc_v10.1%2B_kernel_v${opt_ver}.patch" && _tkg_patcher
elif [ "${_distro}" = "Void" ]; then
@ -365,7 +374,6 @@ _tkg_srcprep() {
else
tkgpatch="$srcdir/enable_additional_cpu_optimizations_for_gcc_v10.1+_kernel_v${opt_ver}+.patch" && _tkg_patcher
fi
# TkG
msg2 "Applying clear linux patches"