linux-tkg: Switch from our local cpu optimizations patchset to Graysky's
https://github.com/graysky2/kernel_gcc_patch Fixes https://github.com/Tk-Glitch/PKGBUILDS/issues/569
This commit is contained in:
@@ -89,7 +89,7 @@ pkgname=("${pkgbase}" "${pkgbase}-headers")
|
||||
_basekernel=5.7
|
||||
_sub=5
|
||||
pkgver="${_basekernel}"."${_sub}"
|
||||
pkgrel=9
|
||||
pkgrel=10
|
||||
pkgdesc='Linux-tkg'
|
||||
arch=('x86_64') # no i686 in here
|
||||
url="http://www.kernel.org/"
|
||||
@@ -99,6 +99,7 @@ optdepends=('schedtool')
|
||||
options=('!strip')
|
||||
source=("https://www.kernel.org/pub/linux/kernel/v5.x/linux-${_basekernel}.tar.xz"
|
||||
"https://www.kernel.org/pub/linux/kernel/v5.x/patch-${pkgver}.xz"
|
||||
"https://raw.githubusercontent.com/graysky2/kernel_gcc_patch/master/enable_additional_cpu_optimizations_for_gcc_v10.1%2B_kernel_v5.7%2B.patch"
|
||||
'config.x86_64' # stock Arch config
|
||||
#'config_hardened.x86_64' # hardened Arch config
|
||||
90-cleanup.hook
|
||||
@@ -126,12 +127,13 @@ source=("https://www.kernel.org/pub/linux/kernel/v5.x/linux-${_basekernel}.tar.x
|
||||
)
|
||||
sha256sums=('de8163bb62f822d84f7a3983574ec460060bf013a78ff79cd7c979ff1ec1d7e0'
|
||||
'9de52574c9274f340ce649a9520695b21fa9b9465d48b70982b594e4e334ed09'
|
||||
'1f56a2466bd9b4477925682d8f944fabb38727140e246733214fe50aa326fc47'
|
||||
'71030461a03fe30133f357001394ca2644c5fe0aae52161fe00c74aec0f900fe'
|
||||
'1e15fc2ef3fa770217ecc63a220e5df2ddbcf3295eb4a021171e7edd4c6cc898'
|
||||
'66a03c246037451a77b4d448565b1d7e9368270c7d02872fbd0b5d024ed0a997'
|
||||
'31dc68e84aecfb7d069efb1305049122c65694676be8b955634abcf0675922a2'
|
||||
'd02bf5ca08fd610394b9d3a0c3b176d74af206f897dee826e5cbaec97bb4a4aa'
|
||||
'8352d688733b23472d10aa2fec3f604606fdeb957bc35f4851831a9b624556b8'
|
||||
'9eae36f2e3265b787592e64259bcd5a1de4a524a55b2eccb2e3121f1ff1c209f'
|
||||
'7058e57fd68367b029adc77f2a82928f1433daaf02c8c279cb2d13556c8804d7'
|
||||
'c605f638d74c61861ebdc36ebd4cb8b6475eae2f6273e1ccb2bbb3e10a2ec3fe'
|
||||
'bc69d6e5ee8172b0242c8fa72d13cfe2b8d2b6601468836908a7dfe8b78a3bbb'
|
||||
@@ -221,9 +223,15 @@ prepare() {
|
||||
patch -Np1 -i ../0001-add-sysctl-to-disallow-unprivileged-CLONE_NEWUSER-by.patch
|
||||
fi
|
||||
|
||||
# graysky's cpu opts - https://github.com/graysky2/kernel_gcc_patch
|
||||
msg2 "Applying graysky's cpu opts patch"
|
||||
patch -Np1 -i ../enable_additional_cpu_optimizations_for_gcc_v10.1%2B_kernel_v5.7%2B.patch
|
||||
|
||||
# TkG
|
||||
msg2 "Applying clear linux patches"
|
||||
patch -Np1 -i ../0002-clear-patches.patch
|
||||
|
||||
msg2 "Applying glitched base patch"
|
||||
patch -Np1 -i ../0003-glitched-base.patch
|
||||
|
||||
if [ "${_cpusched}" == "MuQSS" ]; then
|
||||
@@ -309,6 +317,8 @@ prepare() {
|
||||
echo "# CONFIG_MGOLDMONT is not set" >> ./.config
|
||||
echo "# CONFIG_MGOLDMONTPLUS is not set" >> ./.config
|
||||
echo "# CONFIG_MCASCADELAKE is not set" >> ./.config
|
||||
echo "# CONFIG_MCOOPERLAKE is not set" >> ./.config
|
||||
echo "# CONFIG_MTIGERLAKE is not set" >> ./.config
|
||||
|
||||
# Disable some debugging
|
||||
if [ "${_debugdisable}" == "true" ]; then
|
||||
@@ -499,6 +509,10 @@ prepare() {
|
||||
sed -i -e 's/# CONFIG_MGOLDMONTPLUS is not set/CONFIG_MGOLDMONTPLUS=y/' ./.config
|
||||
elif [ "$_processor_opt" == "cascadelake" ]; then
|
||||
sed -i -e 's/# CONFIG_MCASCADELAKE is not set/CONFIG_MCASCADELAKE=y/' ./.config
|
||||
elif [ "$_processor_opt" == "cooperlake" ]; then
|
||||
sed -i -e 's/# CONFIG_MCOOPERLAKE is not set/CONFIG_MCOOPERLAKE=y/' ./.config
|
||||
elif [ "$_processor_opt" == "tigerlake" ]; then
|
||||
sed -i -e 's/# CONFIG_MTIGERLAKE is not set/CONFIG_MTIGERLAKE=y/' ./.config
|
||||
fi
|
||||
|
||||
# irq threading
|
||||
|
Reference in New Issue
Block a user