From ca58ae73534a706025791ed50938ad21129d7eeb Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Sat, 2 Sep 2023 04:49:33 +0200 Subject: [PATCH] Allow disabling glitched-base patchset --- customization.cfg | 4 ++++ linux-tkg-config/prepare | 10 ++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/customization.cfg b/customization.cfg index 54aac0b..663f44e 100644 --- a/customization.cfg +++ b/customization.cfg @@ -171,7 +171,11 @@ _winesync="false" # Set to "true" to enable Binder modules to use Waydroid Android containers _waydroid="" +# Various patches and tweaks from Zen/Liquorix, Xanmod and the community - Default is "true" +_glitched_base="true" + # A selection of patches from Zen/Liquorix kernel and additional tweaks for a better gaming experience (ZENIFY) - Default is "true" +# ! depends on _glitched_base="true" ! _zenify="true" # compiler optimization level - 1. Optimize for performance (-O2); 2. Optimize harder (-O3); 3. Optimize for size (-Os) - Kernel default is "1" diff --git a/linux-tkg-config/prepare b/linux-tkg-config/prepare index bae3410..23f9023 100644 --- a/linux-tkg-config/prepare +++ b/linux-tkg-config/prepare @@ -691,8 +691,10 @@ _tkg_srcprep() { _msg="Applying clear linux patches" && _tkg_patcher fi - tkgpatch="$srcdir/0003-glitched-base.patch" - _msg="Applying glitched base patch" && _tkg_patcher + if [ "$_glitched_base" = "true" ]; then + tkgpatch="$srcdir/0003-glitched-base.patch" + _msg="Applying glitched base patch" && _tkg_patcher + fi if [ "${_preempt_rt}" != "1" ]; then tkgpatch="$srcdir/0003-glitched-base-nonrt.patch" @@ -1201,9 +1203,9 @@ _tkg_srcprep() { fi # zenify - if [ "$_zenify" = "false" ]; then + if [ "$_zenify" = "false" ] || [ "$_glitched_base" = "false" ]; then _disable "ZENIFY" - else + elif [ "$_zenify" = "true" ] && [ "$_glitched_base" = "true" ]; then _enable "ZENIFY" fi