diff --git a/linux-tkg-config/prepare b/linux-tkg-config/prepare index cdb8edc..6adfece 100644 --- a/linux-tkg-config/prepare +++ b/linux-tkg-config/prepare @@ -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"