Get rid of profiles. We might add some form of unattended profile down the line, which will be common for AMD/Intel CPUs.
This commit is contained in:
@@ -28,13 +28,6 @@ CUSTOM_GCC_PATH=""
|
|||||||
# Example: CUSTOM_LLVM_PATH="/home/frog/PKGBUILDS/mostlyportable-llvm/llvm-mostlyportable-11.0.0"
|
# Example: CUSTOM_LLVM_PATH="/home/frog/PKGBUILDS/mostlyportable-llvm/llvm-mostlyportable-11.0.0"
|
||||||
CUSTOM_LLVM_PATH=""
|
CUSTOM_LLVM_PATH=""
|
||||||
|
|
||||||
# Set to the number corresponding to a predefined profile to use it. The options selected by the profile will override customization.cfg and external config files.
|
|
||||||
# Current list of available profiles :
|
|
||||||
# 1 - Custom (meaning nothing will be enforced and you get to configure everything)
|
|
||||||
# 2 - Ryzen desktop (performance)
|
|
||||||
# 3 - Generic Desktop (Performance)
|
|
||||||
_OPTIPROFILE=""
|
|
||||||
|
|
||||||
# Set to true to bypass makepkg.conf and use all available threads for compilation. False will respect your makepkg.conf options.
|
# Set to true to bypass makepkg.conf and use all available threads for compilation. False will respect your makepkg.conf options.
|
||||||
_force_all_threads="true"
|
_force_all_threads="true"
|
||||||
|
|
||||||
|
@@ -1,35 +0,0 @@
|
|||||||
# linux-TkG config file
|
|
||||||
# Generic Desktop
|
|
||||||
|
|
||||||
|
|
||||||
#### KERNEL OPTIONS ####
|
|
||||||
|
|
||||||
# Disable some non-module debugging - See PKGBUILD for the list
|
|
||||||
_debugdisable="false"
|
|
||||||
|
|
||||||
# LEAVE AN EMPTY VALUE TO BE PROMPTED ABOUT FOLLOWING OPTIONS AT BUILD TIME
|
|
||||||
|
|
||||||
# Set to "true" to disable FUNCTION_TRACER/GRAPH_TRACER, lowering overhead but limiting debugging and analyzing of kernel functions - Kernel default is "false"
|
|
||||||
_ftracedisable="false"
|
|
||||||
|
|
||||||
# Set to "true" to disable NUMA, lowering overhead, but breaking CUDA/NvEnc on Nvidia equipped systems - Kernel default is "false"
|
|
||||||
_numadisable="false"
|
|
||||||
|
|
||||||
# Set to "true" to use explicit preemption points to lower latency at the cost of a small throughput loss - Can give a nice perf boost in VMs - Kernel default is "false"
|
|
||||||
_voluntary_preempt="false"
|
|
||||||
|
|
||||||
# A selection of patches from Zen/Liquorix kernel and additional tweaks for a better gaming experience (ZENIFY) - Default is "true"
|
|
||||||
_zenify="true"
|
|
||||||
|
|
||||||
# compiler optimization level - 1. Optimize for performance (-O2); 2. Optimize harder (-O3); 3. Optimize for size (-Os) - Kernel default is "2"
|
|
||||||
_compileroptlevel="1"
|
|
||||||
|
|
||||||
# Trust the CPU manufacturer to initialize Linux's CRNG (RANDOM_TRUST_CPU) - Kernel default is "false"
|
|
||||||
_random_trust_cpu="false"
|
|
||||||
|
|
||||||
# CPU scheduler runqueue sharing - No sharing (RQ_NONE), SMT (hyperthread) siblings (RQ_SMT), Multicore siblings (RQ_MC), Symmetric Multi-Processing (RQ_SMP), NUMA (RQ_ALL)
|
|
||||||
# Valid values are "none", "smt", "mc", "mc-llc"(for zen), "smp", "all" - Kernel default is "mc"
|
|
||||||
_runqueue_sharing="mc"
|
|
||||||
|
|
||||||
# Timer frequency - "500", "750" or "1000" - More options available in kernel config prompt when left empty depending on selected cpusched - Kernel default is "750"
|
|
||||||
_timer_freq="500"
|
|
@@ -250,19 +250,6 @@ _tkg_initscript() {
|
|||||||
cp "$_where"/linux-tkg-config/${_basekernel}/* "$_path"
|
cp "$_where"/linux-tkg-config/${_basekernel}/* "$_path"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z "$_OPTIPROFILE" || ! "$_OPTIPROFILE" =~ ^(1|2|3)$ ]]; then
|
|
||||||
# Prompt about optimized configurations. Available variable values will overwrite customization.cfg/external config ones.
|
|
||||||
plain "Do you want to use a predefined optimized profile?"
|
|
||||||
_default_index="0"
|
|
||||||
_prompt_from_array "Custom" "Ryzen Desktop (Performance)" "Other Desktop (Performance)"
|
|
||||||
_OPTIPROFILE=$((${_selected_index}+1))
|
|
||||||
fi
|
|
||||||
if [ "$_OPTIPROFILE" = "2" ]; then
|
|
||||||
source "$_where"/linux-tkg-config/ryzen-desktop-profile.cfg && msg2 "Ryzen Desktop (Performance) profile will be used." && msg2 ""
|
|
||||||
elif [ "$_OPTIPROFILE" = "3" ]; then
|
|
||||||
source "$_where"/linux-tkg-config/generic-desktop-profile.cfg && msg2 "Generic Desktop (Performance) profile will be used." && msg2 ""
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Set compiler
|
# Set compiler
|
||||||
_set_compiler
|
_set_compiler
|
||||||
|
|
||||||
|
@@ -1,38 +0,0 @@
|
|||||||
# linux-TkG config file
|
|
||||||
# Ryzen Desktop
|
|
||||||
|
|
||||||
|
|
||||||
#### KERNEL OPTIONS ####
|
|
||||||
|
|
||||||
# Disable some non-module debugging - See PKGBUILD for the list
|
|
||||||
_debugdisable="false"
|
|
||||||
|
|
||||||
# LEAVE AN EMPTY VALUE TO BE PROMPTED ABOUT FOLLOWING OPTIONS AT BUILD TIME
|
|
||||||
|
|
||||||
# Set to "true" to disable FUNCTION_TRACER/GRAPH_TRACER, lowering overhead but limiting debugging and analyzing of kernel functions - Kernel default is "false"
|
|
||||||
_ftracedisable="false"
|
|
||||||
|
|
||||||
# Set to "true" to disable NUMA, lowering overhead, but breaking CUDA/NvEnc on Nvidia equipped systems - Kernel default is "false"
|
|
||||||
_numadisable="false"
|
|
||||||
|
|
||||||
# Set to "true" to use explicit preemption points to lower latency at the cost of a small throughput loss - Can give a nice perf boost in VMs - Kernel default is "false"
|
|
||||||
_voluntary_preempt="false"
|
|
||||||
|
|
||||||
# A selection of patches from Zen/Liquorix kernel and additional tweaks for a better gaming experience (ZENIFY) - Default is "true"
|
|
||||||
_zenify="true"
|
|
||||||
|
|
||||||
# compiler optimization level - 1. Optimize for performance (-O2); 2. Optimize harder (-O3); 3. Optimize for size (-Os) - Kernel default is "2"
|
|
||||||
_compileroptlevel="1"
|
|
||||||
|
|
||||||
# Trust the CPU manufacturer to initialize Linux's CRNG (RANDOM_TRUST_CPU) - Kernel default is "false"
|
|
||||||
_random_trust_cpu="false"
|
|
||||||
|
|
||||||
# CPU scheduler runqueue sharing - No sharing (RQ_NONE), SMT (hyperthread) siblings (RQ_SMT), Multicore siblings (RQ_MC), Symmetric Multi-Processing (RQ_SMP), NUMA (RQ_ALL)
|
|
||||||
# Valid values are "none", "smt", "mc", "mc-llc"(for zen), "smp", "all" - Kernel default is "mc"
|
|
||||||
_runqueue_sharing="mc-llc"
|
|
||||||
|
|
||||||
# Timer frequency - "500", "750" or "1000" - More options available in kernel config prompt when left empty depending on selected cpusched - Kernel default is "500"
|
|
||||||
_timer_freq="500"
|
|
||||||
|
|
||||||
# Default CPU governor - "performance", "ondemand" (tweaked), "schedutil" or leave empty for default (schedutil on AMD and legacy Intel, intel_pstate on modern Intel) - Enforcing an option will disable intel_pstate altogether!
|
|
||||||
_default_cpu_gov="performance"
|
|
Reference in New Issue
Block a user