Bump to 6.1

Signed-off-by: Piotr Gorski <lucjan.lucjanov@gmail.com>
This commit is contained in:
Piotr Gorski 2022-12-12 20:21:50 +01:00
parent d06c0ebe1c
commit c79304bd83
No known key found for this signature in database
GPG Key ID: 79AFA05ABDB26C5A
6 changed files with 351 additions and 11727 deletions

View File

@ -1,6 +1,6 @@
pkgbase = linux-cachyos pkgbase = linux-cachyos
pkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvements pkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.0.12 pkgver = 6.1.0
pkgrel = 1 pkgrel = 1
url = https://github.com/CachyOS/linux-cachyos url = https://github.com/CachyOS/linux-cachyos
arch = x86_64 arch = x86_64
@ -21,20 +21,18 @@ pkgbase = linux-cachyos
makedepends = make makedepends = make
makedepends = patch makedepends = patch
options = !strip options = !strip
source = https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.0.12.tar.xz source = https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.1.tar.xz
source = config source = config
source = config-rt
source = auto-cpu-optimization.sh source = auto-cpu-optimization.sh
source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.0/all/0001-cachyos-base-all.patch source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.1/all/0001-cachyos-base-all.patch
source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.0/misc/0001-Add-latency-priority-for-CFS-class.patch source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.1/misc/0001-Add-latency-priority-for-CFS-class.patch
source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.0/sched/0001-bore-cachy.patch source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.1/sched/0001-bore-cachy.patch
sha256sums = 89b730edf8942b49e02f9894244205886c9a214d629b35b88c4ff06ee9304f01 sha256sums = 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
sha256sums = 5ef4000fa382d718bc88a2c898534c94349bc38125fb0a5e6f90987c64338bc2 sha256sums = 10205fdb7f16016658808d09e927b106f8286df17d511cf6374e2a6fcb265f26
sha256sums = 8e3332029a7e6574b8c5d1f98e5391a20871b889e0a65fc351584c26b9e2b0ef sha256sums = 32e77b3b71225c9f04df2d44c25f982773a8fff9927d26788366baab5e242e74
sha256sums = e1d45b5842079a5f0f53d7ea2d66ffa3f1497766f3ccffcf13ed00f1ac67f95e sha256sums = dcb4652be945fd8de658b271e17a74e5d5c275b934bd852b766cb28c3f97d17d
sha256sums = e56d2483f4abf9a6c935d3bd37d9b5892024daff957f58bc96eec23bfb181d8a sha256sums = 7b3c12a19efe84f023bd64f0c984c73b0ec7a73c78cba96b5f92c5263ed2a46f
sha256sums = 8a29fd18c2deb36cf0bbfb16a84819d86fa476ef4792d07dd627c945c0b55f4b sha256sums = e5c062656b1e3d65b5b10bf933aa6b0bd3f187b90336a067b1dd7d5ff635f002
sha256sums = 4b135afcb13e2a852048e99ee96f74eb4ba785039a447b43d3e87e03494e29d7
pkgname = linux-cachyos pkgname = linux-cachyos
pkgdesc = The Linux BORE scheduler Kernel by CachyOS with other patches and improvements kernel and modules pkgdesc = The Linux BORE scheduler Kernel by CachyOS with other patches and improvements kernel and modules

View File

@ -141,37 +141,30 @@ _use_llvm_lto=${_use_llvm_lto-}
# https://github.com/CachyOS/linux-cachyos/issues/36 # https://github.com/CachyOS/linux-cachyos/issues/36
_use_lto_suffix=${_use_lto_suffix-y} _use_lto_suffix=${_use_lto_suffix-y}
# ATTENTION!: Really experimental LTO implementation for GCC
# This can improve the performance of the kernel
# The performance difference is currently negligible
# DEBUG and BTF needs to be disabled, otherwise the compilation is failing
# The Kernel is bigger with GCC LTO due to more inlining
# More informations:
# https://lore.kernel.org/lkml/20221114114344.18650-1-jirislaby@kernel.org/T/#md8014ad799b02221b67f33584002d98ede6234eb
_use_gcc_lto=${_use_gcc_lto-}
# KCFI is a proposed forward-edge control-flow integrity scheme for # KCFI is a proposed forward-edge control-flow integrity scheme for
# Clang, which is more suitable for kernel use than the existing CFI # Clang, which is more suitable for kernel use than the existing CFI
# scheme used by CONFIG_CFI_CLANG. KCFI doesn't require LTO, doesn't # scheme used by CONFIG_CFI_CLANG. kCFI doesn't require LTO, doesn't
# alter function references to point to a jump table, and won't break # alter function references to point to a jump table, and won't break
# function address equality. # function address equality.
# ATTENTION!: you do need a patched llvm for the usage of kcfi, # ATTENTION!: You need llvm-git or a patched llvm 15
# you can find a patched llvm-git in the cachyos-repo's. # ATTENTION!: This is experimental, could fail to boot with nvidia
# The packagename is called "llvm-kcfi"
# ATTENTION!: This is very experimental and could fail and the compilation or have other bugs in the kernel
_use_kcfi=${_use_kcfi-} _use_kcfi=${_use_kcfi-}
# Build the zfs module builtin in to the kernel # Build the zfs module in to the kernel
_build_zfs=${_build_zfs-} _build_zfs=${_build_zfs-}
# Enable bcachefs # Enable bcachefs
_bcachefs=${_bcachefs-} _bcachefs=${_bcachefs-}
# Enable RT kernel
# Only works for CFS Scheduler and BORE Scheduler
_rtkernel=${_rtkernel-}
# Enable NEST
# NEST is a experimental cfs scheduler you can find more about here:
# https://www.phoronix.com/news/Nest-Linux-Scheduling-Warm-Core
# https://gitlab.inria.fr/nest-public/nest-artifact/-/tree/main
# ATTENTION!:NEST is only active if you start applications with
# taskset -c $THREADS application
# example: taskset -c 0-23 application
# ATTENTION!:Just works together with the BORE Scheduler and CFS Scheduler
_nest=${_nest-}
# Enable LATENCY NICE # Enable LATENCY NICE
# Latency nice is a approach to sets latency-nice as a per-task attribute # Latency nice is a approach to sets latency-nice as a per-task attribute
# It can improve the latency of applications similar to sched_nice, but focused on the latency # It can improve the latency of applications similar to sched_nice, but focused on the latency
@ -191,13 +184,13 @@ else
pkgsuffix=cachyos pkgsuffix=cachyos
pkgbase=linux-$pkgsuffix pkgbase=linux-$pkgsuffix
fi fi
_major=6.0 _major=6.1
_minor=12 _minor=0
#_minorc=$((_minor+1)) #_minorc=$((_minor+1))
#_rcver=rc8 #_rcver=rc8
pkgver=${_major}.${_minor} pkgver=${_major}.${_minor}
_stable=${_major}.${_minor} #_stable=${_major}.${_minor}
#_stable=${_major} _stable=${_major}
#_stablerc=${_major}-${_rcver} #_stablerc=${_major}-${_rcver}
_srcname=linux-${_stable} _srcname=linux-${_stable}
#_srcname=linux-${_major} #_srcname=linux-${_major}
@ -227,7 +220,7 @@ fi
_patchsource="https://raw.githubusercontent.com/cachyos/kernel-patches/master/${_major}" _patchsource="https://raw.githubusercontent.com/cachyos/kernel-patches/master/${_major}"
source=( source=(
"https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.xz" "https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.xz"
"config" "config-rt" "config"
"auto-cpu-optimization.sh" "auto-cpu-optimization.sh"
"${_patchsource}/all/0001-cachyos-base-all.patch") "${_patchsource}/all/0001-cachyos-base-all.patch")
## ZFS Support ## ZFS Support
@ -283,19 +276,15 @@ if [ -n "$_use_kcfi" ]; then
LLVM=1 LLVM=1
) )
fi fi
## NEST Support
if [ -n "$_nest" ]; then
if [[ "$_cpusched" = "bore" || "$_cpusched" = "cfs" || "$_cpusched" = "hardened" ]]; then
source+=("${_patchsource}/sched/0001-NEST.patch")
fi
fi
## bcachefs Support ## bcachefs Support
if [ -n "$_bcachefs" ]; then if [ -n "$_bcachefs" ]; then
source+=("${_patchsource}/misc/0001-bcachefs-after-lru.patch") source+=("${_patchsource}/misc/0001-bcachefs-after-lru.patch")
fi fi
## rt kernel if [ -n "$_use_gcc_lto" ]; then
if [ -n "$_rtkernel" ]; then ## GCC-LTO Patch
source+=("${_patchsource}/misc/0001-rt.patch") ## Fix for current gcc --enable-default-pie option
source+=("${_patchsource}/misc/gcc-lto/0001-gcc-LTO-support-for-the-kernel.patch"
"${_patchsource}/misc/gcc-lto/0002-gcc-lto-no-pie.patch")
fi fi
export KBUILD_BUILD_HOST=cachyos export KBUILD_BUILD_HOST=cachyos
@ -321,11 +310,7 @@ prepare() {
done done
echo "Setting config..." echo "Setting config..."
if [ -n "$_rtkernel" ]; then
cp ../config-rt .config
else
cp ../config .config cp ../config .config
fi
### Select CPU optimization ### Select CPU optimization
if [ -n "$_processor_opt" ]; then if [ -n "$_processor_opt" ]; then
@ -357,17 +342,6 @@ prepare() {
exit exit
fi fi
### Selecting proper RT config
if [ -n "$_rtkernel" ]; then
echo "Setting proper RT config"
scripts/config --enable RCU_NOCB_CPU_CB_BOOST \
--disable RCU_NOCB_CPU_DEFAULT_ALL \
--enable HZ_1000 \
--set-val HZ 1000 \
--enable PREEMPT_RT \
--enable PREEMPT_LAZY
fi
### Selecting the CPU scheduler ### Selecting the CPU scheduler
if [ "$_cpusched" = "bmq" ]; then if [ "$_cpusched" = "bmq" ]; then
echo "Selecting BMQ CPU scheduler..." echo "Selecting BMQ CPU scheduler..."
@ -443,6 +417,15 @@ prepare() {
scripts/config --enable LTO_NONE scripts/config --enable LTO_NONE
fi fi
### Enable GCC FULL LTO
### Disable LTO_CP_CLONE, its experimental
if [ -n "$_use_gcc_lto" ]; then
scripts/config --enable LTO_GCC \
--disable LTO_CP_CLONE
### Disable DEBUG, pahole is currently broken with GCC LTO
_disable_debug=y
fi
### Select tick rate ### Select tick rate
if [ "$_HZ_ticks" = "1000" ]; then if [ "$_HZ_ticks" = "1000" ]; then
echo "Setting tick rate to 1k Hz..." echo "Setting tick rate to 1k Hz..."
@ -1007,10 +990,9 @@ for _p in "${pkgname[@]}"; do
}" }"
done done
sha256sums=('89b730edf8942b49e02f9894244205886c9a214d629b35b88c4ff06ee9304f01' sha256sums=('2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb'
'5ef4000fa382d718bc88a2c898534c94349bc38125fb0a5e6f90987c64338bc2' '10205fdb7f16016658808d09e927b106f8286df17d511cf6374e2a6fcb265f26'
'8e3332029a7e6574b8c5d1f98e5391a20871b889e0a65fc351584c26b9e2b0ef' '32e77b3b71225c9f04df2d44c25f982773a8fff9927d26788366baab5e242e74'
'e1d45b5842079a5f0f53d7ea2d66ffa3f1497766f3ccffcf13ed00f1ac67f95e' 'dcb4652be945fd8de658b271e17a74e5d5c275b934bd852b766cb28c3f97d17d'
'e56d2483f4abf9a6c935d3bd37d9b5892024daff957f58bc96eec23bfb181d8a' '7b3c12a19efe84f023bd64f0c984c73b0ec7a73c78cba96b5f92c5263ed2a46f'
'8a29fd18c2deb36cf0bbfb16a84819d86fa476ef4792d07dd627c945c0b55f4b' 'e5c062656b1e3d65b5b10bf933aa6b0bd3f187b90336a067b1dd7d5ff635f002')
'4b135afcb13e2a852048e99ee96f74eb4ba785039a447b43d3e87e03494e29d7')

View File

@ -7,6 +7,8 @@ elif [[ ${MARCH} == "ZNVER2" ]]; then
MARCH="ZEN2" MARCH="ZEN2"
elif [[ ${MARCH} == "ZNVER3" ]]; then elif [[ ${MARCH} == "ZNVER3" ]]; then
MARCH="ZEN3" MARCH="ZEN3"
elif [[ ${MARCH} == "ZNVER4" ]]; then
MARCH="ZEN4"
elif [[ ${MARCH} == "BDVER1" ]]; then elif [[ ${MARCH} == "BDVER1" ]]; then
MARCH="BULLDOZER" MARCH="BULLDOZER"
elif [[ ${MARCH} == "BDVER2" ]]; then elif [[ ${MARCH} == "BDVER2" ]]; then

353
config

File diff suppressed because it is too large Load Diff

11439
config-rt

File diff suppressed because it is too large Load Diff

164
configure vendored
View File

@ -29,44 +29,47 @@ cpu_arch() {
> 23) MZEN : Select this for AMD Family 17h Zen processors.\n \ > 23) MZEN : Select this for AMD Family 17h Zen processors.\n \
> 24) MZEN2 : Select this for AMD Family 17h Zen 2 processors.\n \ > 24) MZEN2 : Select this for AMD Family 17h Zen 2 processors.\n \
> 25) MZEN3 : Select this for AMD Family 19h Zen 3 processors. - GCC 10.3 required\n \ > 25) MZEN3 : Select this for AMD Family 19h Zen 3 processors. - GCC 10.3 required\n \
> 26) MCRUSOE : Select this for a Transmeta Crusoe processor.\n \ > 26) MZEN4 : Select this for AMD Family 19h Zen 4 processors. - GCC 13.1 required\n \
> 27) MEFFICEON : Select this for a Transmeta Efficeon processor.\n \ > 27) MCRUSOE : Select this for a Transmeta Crusoe processor.\n \
> 28) MWINCHIPC6 : Select this for an IDT Winchip C6 chip.\n \ > 28) MEFFICEON : Select this for a Transmeta Efficeon processor.\n \
> 29) MWINCHIP3D : Select this for an IDT Winchip-2, 2A or 3.\n \ > 29) MWINCHIPC6 : Select this for an IDT Winchip C6 chip.\n \
> 30) MELAN : Select this for an AMD Elan processor.\n \ > 30) MWINCHIP3D : Select this for an IDT Winchip-2, 2A or 3.\n \
> 31) MGEODEGX1 : Select this for a Geode GX1 (Cyrix MediaGX) chip.\n \ > 31) MELAN : Select this for an AMD Elan processor.\n \
> 32) MGEODE_LX Select this for AMD Geode GX and LX processors.\n \ > 32) MGEODEGX1 : Select this for a Geode GX1 (Cyrix MediaGX) chip.\n \
> 33) MCYRIXIII : Select this for a Cyrix III or C3 chip.\n \ > 33) MGEODE_LX Select this for AMD Geode GX and LX processors.\n \
> 34) MVIAC3_2 : Select this for a VIA C3 "Nehemiah".\n \ > 34) MCYRIXIII : Select this for a Cyrix III or C3 chip.\n \
> 35) MVIAC7 : Select this for a VIA C7.\n \ > 35) MVIAC3_2 : Select this for a VIA C3 "Nehemiah".\n \
> 36) MPSC : Optimize for Intel Pentium 4, Pentium D and older Nocona/Dempsey Xeon CPUs with Intel 64bit which is compatible with x86-64.\n \ > 36) MVIAC7 : Select this for a VIA C7.\n \
> 37) MATOM : Select this for the Intel Atom platform.\n \ > 37) MPSC : Optimize for Intel Pentium 4, Pentium D and older Nocona/Dempsey Xeon CPUs with Intel 64bit which is compatible with x86-64.\n \
> 38) MCORE2 : Select this for Intel Core 2 and newer Core 2 Xeons (Xeon 51xx and 53xx) CPUs.\n \ > 38) MATOM : Select this for the Intel Atom platform.\n \
> 39) MNEHALEM : Select this for 1st Gen Core processors in the Nehalem family.\n \ > 39) MCORE2 : Select this for Intel Core 2 and newer Core 2 Xeons (Xeon 51xx and 53xx) CPUs.\n \
> 40) MWESTMERE : Select this for the Intel Westmere formerly Nehalem-C family.\n \ > 40) MNEHALEM : Select this for 1st Gen Core processors in the Nehalem family.\n \
> 41) MSILVERMONT Select this for the Intel Silvermont platform.\n \ > 41) MWESTMERE : Select this for the Intel Westmere formerly Nehalem-C family.\n \
> 42) MGOLDMONT : Select this for the Intel Goldmont platform including Apollo Lake and Denverton.\n \ > 42) MSILVERMONT Select this for the Intel Silvermont platform.\n \
> 43) MGOLDMONTPLUS : Select this for the Intel Goldmont Plus platform including Gemini Lake.\n \ > 43) MGOLDMONT : Select this for the Intel Goldmont platform including Apollo Lake and Denverton.\n \
> 44) MSANDYBRIDGE : Select this for 2nd Gen Core processors in the Sandy Bridge family.\n \ > 44) MGOLDMONTPLUS : Select this for the Intel Goldmont Plus platform including Gemini Lake.\n \
> 45) MIVYBRIDGE : Select this for 3rd Gen Core processors in the Ivy Bridge family.\n \ > 45) MSANDYBRIDGE : Select this for 2nd Gen Core processors in the Sandy Bridge family.\n \
> 46) MHASWELL : Select this for 4th Gen Core processors in the Haswell family.\n \ > 46) MIVYBRIDGE : Select this for 3rd Gen Core processors in the Ivy Bridge family.\n \
> 47) MBROADWELL : Select this for 5th Gen Core processors in the Broadwell family.\n \ > 47) MHASWELL : Select this for 4th Gen Core processors in the Haswell family.\n \
> 48) MSKYLAKE : Select this for 6th Gen Core processors in the Skylake family.\n \ > 48) MBROADWELL : Select this for 5th Gen Core processors in the Broadwell family.\n \
> 49) MSKYLAKEX : Select this for 6th Gen Core processors in the Skylake X family.\n \ > 49) MSKYLAKE : Select this for 6th Gen Core processors in the Skylake family.\n \
> 50) MCANNONLAKE : Select this for 8th Gen Core processors.\n \ > 50) MSKYLAKEX : Select this for 6th Gen Core processors in the Skylake X family.\n \
> 51) MICELAKE : Select this for 10th Gen Core processors in the Ice Lake family.\n \ > 51) MCANNONLAKE : Select this for 8th Gen Core processors.\n \
> 52) MCASCADELAKE : Select this for Xeon processors in the Cascade Lake family.\n \ > 52) MICELAKE : Select this for 10th Gen Core processors in the Ice Lake family.\n \
> 53) MCOOPERLAKE : Select this for Xeon processors in the Cooper Lake family. - GCC 10.1 required\n \ > 53) MCASCADELAKE : Select this for Xeon processors in the Cascade Lake family.\n \
> 54) MTIGERLAKE : Select this for third-generation 10 nm process processors in the Tiger Lake family. - GCC 10.1 required\n \ > 54) MCOOPERLAKE : Select this for Xeon processors in the Cooper Lake family. - GCC 10.1 required\n \
> 55) MSAPPHIRERAPIDS : Select this for third-generation 10 nm process processors in the Sapphire Rapids family. - GCC 11 required\n \ > 55) MTIGERLAKE : Select this for third-generation 10 nm process processors in the Tiger Lake family. - GCC 10.1 required\n \
> 56) MALDERLAKE : Select this for twelfth-generation processors in the Alder Lake family.- GCC 11 required\n \ > 56) MSAPPHIRERAPIDS : Select this for third-generation 10 nm process processors in the Sapphire Rapids family. - GCC 11 required\n \
> 57) GENERIC_CPU : Generic x86-64 CPU. Run equally well on all x86-64 CPUs.\n \ > 57) MALDERLAKE : Select this for twelfth-generation processors in the Alder Lake family.- GCC 11 required\n \
> 58) GENERIC_CPU2 : Run equally well on all x86-64 CPUs with min support of x86-64-v2. - GCC 11 required\n \ > 58) MRAPTORLAKE : Select this for thirteenth-generation processors in the Raptor Lake family.- GCC 13 required\n \
> 59) GENERIC_CPU3 : Generic x86-64-v3 CPU with v3 instructions. Run equally well on all x86-64 CPUs with min support of x86-64-v3. - GCC 11 required\n \ > 59) MMETORLAKE : Select this for fourteenth-generation processors in the Meteor Lake family.- GCC 13 required\n \
> 60) GENERIC_CPU4 : Generic x86-64 CPU with v4 instructions. Run equally well on all x86-64 CPUs with min support of x86-64-v4. - GCC 11 required\n \ > 60) GENERIC_CPU : Generic x86-64 CPU. Run equally well on all x86-64 CPUs.\n \
> 61) MNATIVE_INTEL : Intel-Native optimizations autodetected by GCC.\n \ > 61) GENERIC_CPU2 : Run equally well on all x86-64 CPUs with min support of x86-64-v2. - GCC 11 required\n \
> 62) MNATIVE_AMD : AMD-Native optimizations autodetected by GCC.\n \ > 62) GENERIC_CPU3 : Generic x86-64-v3 CPU with v3 instructions. Run equally well on all x86-64 CPUs with min support of x86-64-v3. - GCC 11 required\n \
> Default (57 : Gneric CPU)\nchoice[0-62]: '`" _microarchitecture > 63) GENERIC_CPU4 : Generic x86-64 CPU with v4 instructions. Run equally well on all x86-64 CPUs with min support of x86-64-v4. - GCC 11 required\n \
> 64) MNATIVE_INTEL : Intel-Native optimizations autodetected by GCC.\n \
> 65) MNATIVE_AMD : AMD-Native optimizations autodetected by GCC.\n \
> Default (60 : Gneric CPU)\nchoice[0-65]: '`" _microarchitecture
if [[ "$_microarchitecture" = "1" ]]; then if [[ "$_microarchitecture" = "1" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU scripts/config --disable CONFIG_GENERIC_CPU
@ -145,114 +148,123 @@ cpu_arch() {
scripts/config --enable CONFIG_MZEN3 scripts/config --enable CONFIG_MZEN3
elif [[ "$_microarchitecture" = "26" ]]; then elif [[ "$_microarchitecture" = "26" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_MCRUSOE scripts/config --enable CONFIG_MZEN4
elif [[ "$_microarchitecture" = "27" ]]; then elif [[ "$_microarchitecture" = "27" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_MEFFICEON scripts/config --enable CONFIG_MCRUSOE
elif [[ "$_microarchitecture" = "28" ]]; then elif [[ "$_microarchitecture" = "28" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_MWINCHIPC6 scripts/config --enable CONFIG_MEFFICEON
elif [[ "$_microarchitecture" = "29" ]]; then elif [[ "$_microarchitecture" = "29" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_MWINCHIP3D scripts/config --enable CONFIG_MWINCHIPC6
elif [[ "$_microarchitecture" = "30" ]]; then elif [[ "$_microarchitecture" = "30" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_MELAN scripts/config --enable CONFIG_MWINCHIP3D
elif [[ "$_microarchitecture" = "31" ]]; then elif [[ "$_microarchitecture" = "31" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_MGEODEGX1 scripts/config --enable CONFIG_MELAN
elif [[ "$_microarchitecture" = "32" ]]; then elif [[ "$_microarchitecture" = "32" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_MGEODE_LX scripts/config --enable CONFIG_MGEODEGX1
elif [[ "$_microarchitecture" = "33" ]]; then elif [[ "$_microarchitecture" = "33" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_MCYRIXIII scripts/config --enable CONFIG_MGEODE_LX
elif [[ "$_microarchitecture" = "34" ]]; then elif [[ "$_microarchitecture" = "34" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_MVIAC3_2 scripts/config --enable CONFIG_MCYRIXIII
elif [[ "$_microarchitecture" = "35" ]]; then elif [[ "$_microarchitecture" = "35" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_MVIAC7 scripts/config --enable CONFIG_MVIAC3_2
elif [[ "$_microarchitecture" = "36" ]]; then elif [[ "$_microarchitecture" = "36" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_MPSC scripts/config --enable CONFIG_MVIAC7
elif [[ "$_microarchitecture" = "37" ]]; then elif [[ "$_microarchitecture" = "37" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_MATOM scripts/config --enable CONFIG_MPSC
elif [[ "$_microarchitecture" = "38" ]]; then elif [[ "$_microarchitecture" = "38" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_MCORE2 scripts/config --enable CONFIG_MATOM
elif [[ "$_microarchitecture" = "39" ]]; then elif [[ "$_microarchitecture" = "39" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_MNEHALEM scripts/config --enable CONFIG_MCORE2
elif [[ "$_microarchitecture" = "40" ]]; then elif [[ "$_microarchitecture" = "40" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_MWESTMERE scripts/config --enable CONFIG_MNEHALEM
elif [[ "$_microarchitecture" = "41" ]]; then elif [[ "$_microarchitecture" = "41" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_MSILVERMONT scripts/config --enable CONFIG_MWESTMERE
elif [[ "$_microarchitecture" = "42" ]]; then elif [[ "$_microarchitecture" = "42" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_MGOLDMONT scripts/config --enable CONFIG_MSILVERMONT
elif [[ "$_microarchitecture" = "43" ]]; then elif [[ "$_microarchitecture" = "43" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_MGOLDMONTPLUS scripts/config --enable CONFIG_MGOLDMONT
elif [[ "$_microarchitecture" = "44" ]]; then elif [[ "$_microarchitecture" = "44" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_MSANDYBRIDGE scripts/config --enable CONFIG_MGOLDMONTPLUS
elif [[ "$_microarchitecture" = "45" ]]; then elif [[ "$_microarchitecture" = "45" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_MSANDYBRIDGE
elif [[ "$_microarchitecture" = "46" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --disable CONFIG_AGP_AMD64 scripts/config --disable CONFIG_AGP_AMD64
scripts/config --disable CONFIG_MICROCODE_AMD scripts/config --disable CONFIG_MICROCODE_AMD
scripts/config --enable CONFIG_MIVYBRIDGE scripts/config --enable CONFIG_MIVYBRIDGE
elif [[ "$_microarchitecture" = "46" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_MHASWELL
elif [[ "$_microarchitecture" = "47" ]]; then elif [[ "$_microarchitecture" = "47" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_MBROADWELL scripts/config --enable CONFIG_MHASWELL
elif [[ "$_microarchitecture" = "48" ]]; then elif [[ "$_microarchitecture" = "48" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_MSKYLAKE scripts/config --enable CONFIG_MBROADWELL
elif [[ "$_microarchitecture" = "49" ]]; then elif [[ "$_microarchitecture" = "49" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_MSKYLAKEX scripts/config --enable CONFIG_MSKYLAKE
elif [[ "$_microarchitecture" = "50" ]]; then elif [[ "$_microarchitecture" = "50" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_MCANNONLAKE scripts/config --enable CONFIG_MSKYLAKEX
elif [[ "$_microarchitecture" = "51" ]]; then elif [[ "$_microarchitecture" = "51" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_MICELAKE scripts/config --enable CONFIG_MCANNONLAKE
elif [[ "$_microarchitecture" = "52" ]]; then elif [[ "$_microarchitecture" = "52" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_MCASCADELAKE scripts/config --enable CONFIG_MICELAKE
elif [[ "$_microarchitecture" = "53" ]]; then elif [[ "$_microarchitecture" = "53" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_MCOOPERLAKE scripts/config --enable CONFIG_MCASCADELAKE
elif [[ "$_microarchitecture" = "54" ]]; then elif [[ "$_microarchitecture" = "54" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_MTIGERLAKE scripts/config --enable CONFIG_MCOOPERLAKE
elif [[ "$_microarchitecture" = "55" ]]; then elif [[ "$_microarchitecture" = "55" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_MSAPPHIRERAPIDS scripts/config --enable CONFIG_MTIGERLAKE
elif [[ "$_microarchitecture" = "56" ]]; then elif [[ "$_microarchitecture" = "56" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_MALDERLAKE scripts/config --enable CONFIG_MSAPPHIRERAPIDS
elif [[ "$_microarchitecture" = "57" ]]; then elif [[ "$_microarchitecture" = "57" ]]; then
scripts/config --enable CONFIG_GENERIC_CPU scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_MALDERLAKE
elif [[ "$_microarchitecture" = "58" ]]; then elif [[ "$_microarchitecture" = "58" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_GENERIC_CPU2 scripts/config --enable CONFIG_MRAPTORLAKE
elif [[ "$_microarchitecture" = "59" ]]; then elif [[ "$_microarchitecture" = "59" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_GENERIC_CPU3 scripts/config --enable CONFIG_MMETORLAKE
elif [[ "$_microarchitecture" = "60" ]]; then elif [[ "$_microarchitecture" = "60" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU scripts/config --enable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_GENERIC_CPU4
elif [[ "$_microarchitecture" = "61" ]]; then elif [[ "$_microarchitecture" = "61" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_MNATIVE_INTEL scripts/config --enable CONFIG_GENERIC_CPU2
elif [[ "$_microarchitecture" = "62" ]]; then elif [[ "$_microarchitecture" = "62" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_GENERIC_CPU3
elif [[ "$_microarchitecture" = "63" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_GENERIC_CPU4
elif [[ "$_microarchitecture" = "64" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_MNATIVE_INTEL
elif [[ "$_microarchitecture" = "65" ]]; then
scripts/config --disable CONFIG_GENERIC_CPU scripts/config --disable CONFIG_GENERIC_CPU
scripts/config --enable CONFIG_MNATIVE_AMD scripts/config --enable CONFIG_MNATIVE_AMD
else else