From b95ba7d6c3896b611b3cd02f3e8d09033d317f55 Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Tue, 9 Mar 2021 16:04:19 +0100 Subject: [PATCH] Adapt to new names/paths for graysky2's cpu opt patchsets Again :frog: Fixes https://github.com/Frogging-Family/linux-tkg/issues/196 --- PKGBUILD | 14 +++++++------- install.sh | 7 ++++++- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 6e738a7..ca05081 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -70,7 +70,7 @@ case $_basever in opt_ver="4.19-v5.4" source=("$kernel_site" "$patch_site" - "https://raw.githubusercontent.com/graysky2/kernel_gcc_patch/master/enable_additional_cpu_optimizations_for_gcc_v10.1%2B_kernel_v4.19-v5.4.patch" + "https://raw.githubusercontent.com/graysky2/kernel_gcc_patch/master/more-uarches-for-gcc-v10-and-kernel-4.19-v5.4.patch" 'config.x86_64' # stock Arch config 'config_hardened.x86_64' # hardened Arch config 90-cleanup.hook @@ -123,7 +123,7 @@ case $_basever in opt_ver="5.7" source=("$kernel_site" "$patch_site" - "https://raw.githubusercontent.com/graysky2/kernel_gcc_patch/master/enable_additional_cpu_optimizations_for_gcc_v10.1%2B_kernel_v5.7.patch" + "https://raw.githubusercontent.com/graysky2/kernel_gcc_patch/master/outdated_versions/enable_additional_cpu_optimizations_for_gcc_v10.1%2B_kernel_v5.7.patch" 'config.x86_64' # stock Arch config 'config_hardened.x86_64' # hardened Arch config 90-cleanup.hook @@ -179,7 +179,7 @@ case $_basever in opt_ver="5.8%2B" source=("$kernel_site" "$patch_site" - "https://raw.githubusercontent.com/graysky2/kernel_gcc_patch/master/enable_additional_cpu_optimizations_for_gcc_v10.1%2B_kernel_v5.8%2B.patch" + "https://raw.githubusercontent.com/graysky2/kernel_gcc_patch/master/more-uarches-for-gcc-v10-and-kernel-5.8%2B.patch" 'config.x86_64' # stock Arch config #'config_hardened.x86_64' # hardened Arch config 90-cleanup.hook @@ -232,7 +232,7 @@ case $_basever in opt_ver="5.8%2B" source=("$kernel_site" $patch_site - "https://raw.githubusercontent.com/graysky2/kernel_gcc_patch/master/enable_additional_cpu_optimizations_for_gcc_v10.1%2B_kernel_v5.8%2B.patch" + "https://raw.githubusercontent.com/graysky2/kernel_gcc_patch/master/more-uarches-for-gcc-v10-and-kernel-5.8%2B.patch" "config.x86_64" # stock Arch config #$hardened_config_file # hardened Arch config 90-cleanup.hook @@ -288,7 +288,7 @@ case $_basever in opt_ver="5.8%2B" source=("$kernel_site" "$patch_site" - "https://raw.githubusercontent.com/graysky2/kernel_gcc_patch/master/enable_additional_cpu_optimizations_for_gcc_v10.1%2B_kernel_v5.8%2B.patch" + "https://raw.githubusercontent.com/graysky2/kernel_gcc_patch/master/more-uarches-for-gcc-v10-and-kernel-5.8%2B.patch" 'config.x86_64' # stock Arch config 'config_hardened.x86_64' # hardened Arch config 90-cleanup.hook @@ -350,7 +350,7 @@ case $_basever in opt_ver="5.8%2B" source=("$kernel_site" "$patch_site" - "https://raw.githubusercontent.com/graysky2/kernel_gcc_patch/master/enable_additional_cpu_optimizations_for_gcc_v10.1%2B_kernel_v5.8%2B.patch" + "https://raw.githubusercontent.com/graysky2/kernel_gcc_patch/master/more-uarches-for-gcc-v10-and-kernel-5.8%2B.patch" 'config.x86_64' # stock Arch config #'config_hardened.x86_64' # hardened Arch config 90-cleanup.hook @@ -406,7 +406,7 @@ case $_basever in opt_ver="5.8%2B" source=("$kernel_site" #"$patch_site" - "https://raw.githubusercontent.com/graysky2/kernel_gcc_patch/master/enable_additional_cpu_optimizations_for_gcc_v10.1%2B_kernel_v5.8%2B.patch" + "https://raw.githubusercontent.com/graysky2/kernel_gcc_patch/master/more-uarches-for-gcc-v10-and-kernel-5.8%2B.patch" 'config.x86_64' # stock Arch config #'config_hardened.x86_64' # hardened Arch config 90-cleanup.hook diff --git a/install.sh b/install.sh index 90b4c1a..a056017 100755 --- a/install.sh +++ b/install.sh @@ -212,6 +212,7 @@ if [ "$1" = "install" ] || [ "$1" = "config" ]; then ;; "57") opt_ver="5.7" + opt_alternative_url="true" ;; "58") opt_ver="5.8+" @@ -230,7 +231,11 @@ if [ "$1" = "install" ] || [ "$1" = "config" ]; then ;; esac - wget "https://raw.githubusercontent.com/graysky2/kernel_gcc_patch/master/enable_additional_cpu_optimizations_for_gcc_v10.1+_kernel_v${opt_ver}.patch" + if [ "$opt_alternative_url" = "true" ]; then + wget "https://raw.githubusercontent.com/graysky2/kernel_gcc_patch/master/more-uarches-for-gcc-v10-and-kernel-${opt_ver}.patch" + else + wget "https://raw.githubusercontent.com/graysky2/kernel_gcc_patch/master/outdated_versions/enable_additional_cpu_optimizations_for_gcc_v10.1+_kernel_v${opt_ver}.patch" + fi # Follow Ubuntu install isntructions in https://wiki.ubuntu.com/KernelTeam/GitKernelBuild