Fix some graysky2's cpu opt patch urls following more movements in their repo.

This commit is contained in:
Tk-Glitch 2021-03-09 01:08:45 +01:00
parent cf4717432a
commit dfd20aefa2
2 changed files with 5 additions and 7 deletions

View File

@ -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/might_not_work/enable_additional_cpu_optimizations_for_gcc_v10.1%2B_kernel_v4.19-v5.4.patch"
"https://raw.githubusercontent.com/graysky2/kernel_gcc_patch/master/enable_additional_cpu_optimizations_for_gcc_v10.1%2B_kernel_v4.19-v5.4.patch"
'config.x86_64' # stock Arch config
'config_hardened.x86_64' # hardened Arch config
90-cleanup.hook
@ -120,10 +120,10 @@ case $_basever in
'aeb31404c26ee898d007b1f66cb9572c9884ad8eca14edc4587d68f6cba6de46')
;;
57)
opt_ver="5.7%2B"
opt_ver="5.7"
source=("$kernel_site"
"$patch_site"
"https://raw.githubusercontent.com/graysky2/kernel_gcc_patch/master/might_not_work/enable_additional_cpu_optimizations_for_gcc_v10.1%2B_kernel_v5.7%2B.patch"
"https://raw.githubusercontent.com/graysky2/kernel_gcc_patch/master/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

View File

@ -209,11 +209,9 @@ if [ "$1" = "install" ] || [ "$1" = "config" ]; then
case "$_basever" in
"54")
opt_ver="4.19-v5.4"
opt_urladdon="might_not_work/"
;;
"57")
opt_ver="5.7+"
opt_urladdon="might_not_work/"
opt_ver="5.7"
;;
"58")
opt_ver="5.8+"
@ -232,7 +230,7 @@ if [ "$1" = "install" ] || [ "$1" = "config" ]; then
;;
esac
wget "https://raw.githubusercontent.com/graysky2/kernel_gcc_patch/master/${opt_urladdon}enable_additional_cpu_optimizations_for_gcc_v10.1+_kernel_v${opt_ver}.patch"
wget "https://raw.githubusercontent.com/graysky2/kernel_gcc_patch/master/enable_additional_cpu_optimizations_for_gcc_v10.1+_kernel_v${opt_ver}.patch"
# Follow Ubuntu install isntructions in https://wiki.ubuntu.com/KernelTeam/GitKernelBuild