feat(linux-tkg): update to 6.14

This commit is contained in:
2025-05-14 14:54:38 +02:00
parent 8828947c66
commit 96ce4ba12d
+37 -55
View File
@@ -5,11 +5,13 @@
# If left empty, the script will prompt
_distro="Arch"
# Kernel Version - x.x format without the subversion (will always grab latest available subversion) is recommended
# you can also set a specific kernel version, e.g. "6.0-rc4" or "5.10.51",
# -> note however that a "z" too small on a "x.y.z" version may make patches fail
# as they got adapted for newer "z" values.
_version="6.13"
# Kernel Version
# Accepts
# - "x.y-latest" to pick latest kernel from the x.y series (e.g. "6.13-latest")
# - Tags, e.g. "6.0-rc4" or "5.10.51"
# - Note: Patches may fail as they may only apply to newer trees.
# If left empty, the script will prompt
_version="6.14-latest"
#### MISC OPTIONS ####
@@ -20,7 +22,10 @@ _EXT_CONFIG_PATH=~/.config/frogminer/linux-tkg.cfg
# Default is "true".
_NUKR="true"
# Git mirror to use to get the kernel sources, possible values are "kernel.org", "googlesource.com", "github.com" and "torvalds"
# Link to the git mirror to use to get the kernel sources
# e.g. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
# possible aliases: "kernel.org", "googlesource.com", "gregkh" and "torvalds"
# leave empty for kernel.org
_git_mirror=""
# Root folder where to checkout the kernel sources (linux-src-git subdir) and build
@@ -78,9 +83,6 @@ _diffconfig="false"
# Set to the file name where the generated config fragment should be written to. Only used if _diffconfig is active.
_diffconfig_name=""
# [Generic and Gentoo specific] Dracut options when generating initramfs
_dracut_options="--lz4"
#### KERNEL OPTIONS ####
# Name of the default config file to use for the kernel
@@ -101,12 +103,12 @@ _config_updating="olddefconfig"
# Disable some non-module debugging - See PKGBUILD for the list
_debugdisable="false"
# Strip the vmlinux file after build is done. Set to anything other than "true" if you require debug headers. Default is "true"
# Strip the kernel and its modules from debug symbols
_STRIP="true"
# LEAVE AN EMPTY VALUE TO BE PROMPTED ABOUT FOLLOWING OPTIONS AT BUILD TIME
# CPU scheduler - Options are "pds", "bmq", "cacule", "tt", "bore", "bore-eevdf", "echo", "cfs" (linux 6.5-) or "eevdf" (kernel's default, 6.6+)
# CPU scheduler - Options are "pds", "bmq", "bore", "bore-eevdf", "cfs" (linux 6.5-) or "eevdf" (kernel's default, 6.6+)
# "upds" (TkG's Undead PDS) and "muqss" are also available on legacy kernel revisions
# If unsure, select "eevdf" (default)
_cpusched="bore"
@@ -187,10 +189,6 @@ _acs_override="false"
# - linux <= 6.0 : this option conflicts with MGLRU
_bcachefs="false"
# Set to "true" to enable builtin support for ntsync, an experimental replacement for esync - requires patched wine - https://repo.or.cz/linux/zf.git/shortlog/refs/heads/ntsync5
# ! Can't be used on multiple kernels installed side-by-side, which will require https://aur.archlinux.org/packages/ntsync-dkms instead of this option !
_ntsync="false"
# Various patches and tweaks from Zen/Liquorix, Xanmod and the community - Default is "true"
_glitched_base="true"
@@ -201,45 +199,12 @@ _zenify="true"
# compiler optimization level - 1. Optimize for performance (-O2); 2. Optimize harder (-O3); 3. Optimize for size (-Os) - Kernel default is "1"
_compileroptlevel="1"
# CPU compiler optimizations - Defaults to prompt at kernel config if left empty
# AMD CPUs
# "k8" "k8sse3" "k10" "barcelona" "bobcat" "jaguar" "bulldozer" "piledriver" "steamroller" "excavator"
# "zen" "zen2" "zen3" (>=GCC-11) "zen4" (GCC-13+) "zen5" (GCC-14+ or CLANG-19.1+)
# Intel CPUs :
# "mpsc"(P4 & older Netburst based Xeon) "atom" "core2" "nehalem" "westmere" "silvermont" "sandybridge" "ivybridge" "haswell"
# "broadwell" "skylake" "skylakex" "cannonlake" "icelake"/"icelake_client" (same) "icelake_server" (kernel >= 6.1 only) "goldmont" "goldmontplus" "cascadelake" "cooperlake"
# "tigerlake" "sapphirerapids" "rocketlake" "alderlake" "raptorlake" (GCC13+) "meteorlake" (GCC13+)
# Other options :
# - "native_amd" (use compiler autodetection - Selecting your arch manually in the list above is recommended instead of this option)
# - "native_intel" (use compiler autodetection - Selecting your arch manually in the list above is recommended instead of this option)
# - "generic" (kernel's default - to share the package between machines with different CPU µarch as long as they are x86-64)
#
# https://en.wikipedia.org/wiki/X86-64#Microarchitecture_Levels)
# **LEGACY options - deprecated on current trees**
# - "generic_v2" (depends on GCC11 - to share the package between machines with different CPU µarch supporting at least x86-64-v2
# - "generic_v3" (depends on GCC11 - to share the package between machines with different CPU µarch supporting at least x86-64-v3
# - "generic_v4" (depends on GCC11 - to share the package between machines with different CPU µarch supporting at least x86-64-v4
_processor_opt="zen4"
# Desired x86_64 compiler ISA level for generic (depends on GCC11+ / CLANG12+) and _processor_opt="generic".
# "1" for x86-64-v1
# "2" for x86-64-v2
# "3" for x86-64-v3
# To share the package between machines with different CPU µarch supporting at least x86-64-v*.
# You can find the best version for your CPU by running one of the following:
# /lib/ld-linux-x86-64.so.2 --help | grep supported
# /lib64/ld-linux-x86-64.so.2 --help | grep supported
_x86_64_isalvl="x86-64-v4"
# CacULE only - Enable Response Driven Balancer, an experimental load balancer for CacULE
_cacule_rdb="false"
# CacULE only - Load balance time period - Default is 19
# https://github.com/hamadmarri/cacule-cpu-scheduler/blob/master/patches/CacULE/RDB/rdb.patch#L56
_cacule_rdb_interval="19"
# TT only - Enable High HZ patch (available for 5.15 only) - Default is "false"
_tt_high_hz="false"
# CPU compiler optimizations - Prompt using a list of common CPUs if empty
# Note: any string accepted by the compiler for '-march=' flag will work
# To list all the supported µarchs supported by your chosen compiler
# - Clang: clang -mcpu=help
# - GCC: gcc --target-help | grep -A 2 -m1 'Known valid' | sed -n '2p'
_processor_opt="znver4"
# MuQSS and PDS only - SMT (Hyperthreading) aware nice priority and policy support (SMT_NICE) - Kernel default is "true" - You can disable this on non-SMT/HT CPUs for lower overhead
_smt_nice=""
@@ -255,7 +220,7 @@ _bore_min_base_slice_ns="2000000"
# Trust the CPU manufacturer to initialize Linux's CRNG (RANDOM_TRUST_CPU) - Kernel default is "false"
_random_trust_cpu="true"
# Timer frequency - "100" "250" "300" "500" "750" "1000" ("2000" is available for cacule cpusched only, "625" is available for echo cpusched only) - More options available in kernel config prompt when left empty depending on selected cpusched with the default option pointed with a ">" (2000 for cacule, 100 for muqss, 625 for echo and 1000 for other cpu schedulers)
# Timer frequency - "100" "250" "300" "500" "750" "1000" - More options available in kernel config prompt when left empty depending on selected cpusched with the default option pointed with a ">" (100 for muqss and 1000 for other cpu schedulers)
_timer_freq="1000"
# Default CPU governor - "performance", "ondemand", "schedutil" or leave empty for default (schedutil)
@@ -305,6 +270,18 @@ _install_after_building="prompt"
# [non-Arch only] Use 'script' command for logging
_logging_use_script="yes"
# [Advanced] Extra flags to pass to the compiler, for C files
# Important:
# - If you encounter issues, _ONLY_ report a bug if you have tried a kernel with this variable left blank
# - Do _NOT_ activate SIMD instructions (i.e do not add e.g. "-mavx") or it will break your system
KCFLAGS=""
# [Advanced] Extra flags to pass to the compiler, for C++ files
# Important:
# - If you encounter issues, _ONLY_ report a bug if you have tried a kernel with this variable left blank
# - Do _NOT_ activate SIMD instructions (i.e do not add e.g. "-mavx") or it will break your system
KCPPFLAGS=""
#### LEGACY OPTIONS ####
# Upstreamed version of Fsync from Linux 5.16 for previous kernel versions - https://github.com/andrealmeid/futex_waitv_patches
@@ -338,6 +315,11 @@ _irq_threading="false"
# - Older kernel versions might have a patch available in the community-patches repo
_mglru="true"
# Set to "true" to enable builtin support for ntsync, an experimental replacement for esync - requires patched wine - https://repo.or.cz/linux/zf.git/shortlog/refs/heads/ntsync5
# ! Can't be used on multiple kernels installed side-by-side, which will require https://aur.archlinux.org/packages/ntsync-dkms instead of this option !
# ! No effect on 6.14+ !
_ntsync="false"
#### USER PATCHES ####
# community patches - add patches (separated by a space) of your choice by name from the community-patches dir