From 327751a40e908d2145090fb1ae90305fff235e2f Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Thu, 25 Nov 2021 17:17:18 +0100 Subject: [PATCH] Get rid of profiles. We might add some form of unattended profile down the line, which will be common for AMD/Intel CPUs. --- customization.cfg | 7 ---- linux-tkg-config/generic-desktop-profile.cfg | 35 ------------------ linux-tkg-config/prepare | 13 ------- linux-tkg-config/ryzen-desktop-profile.cfg | 38 -------------------- 4 files changed, 93 deletions(-) delete mode 100644 linux-tkg-config/generic-desktop-profile.cfg delete mode 100644 linux-tkg-config/ryzen-desktop-profile.cfg diff --git a/customization.cfg b/customization.cfg index 0bbe26d..906d64a 100644 --- a/customization.cfg +++ b/customization.cfg @@ -28,13 +28,6 @@ CUSTOM_GCC_PATH="" # Example: CUSTOM_LLVM_PATH="/home/frog/PKGBUILDS/mostlyportable-llvm/llvm-mostlyportable-11.0.0" 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. _force_all_threads="true" diff --git a/linux-tkg-config/generic-desktop-profile.cfg b/linux-tkg-config/generic-desktop-profile.cfg deleted file mode 100644 index ac64d8a..0000000 --- a/linux-tkg-config/generic-desktop-profile.cfg +++ /dev/null @@ -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" diff --git a/linux-tkg-config/prepare b/linux-tkg-config/prepare index 535d23b..aba93bc 100644 --- a/linux-tkg-config/prepare +++ b/linux-tkg-config/prepare @@ -250,19 +250,6 @@ _tkg_initscript() { cp "$_where"/linux-tkg-config/${_basekernel}/* "$_path" 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 diff --git a/linux-tkg-config/ryzen-desktop-profile.cfg b/linux-tkg-config/ryzen-desktop-profile.cfg deleted file mode 100644 index fb5bd8d..0000000 --- a/linux-tkg-config/ryzen-desktop-profile.cfg +++ /dev/null @@ -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"