From f315cc36829f152f39969e314d1fdc028520abb1 Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Wed, 16 Mar 2022 12:21:41 +0100 Subject: [PATCH] Put Clearlinux patches behind a toggle in .cfg, allowing them to be disabled --- customization.cfg | 3 +++ linux-tkg-config/prepare | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/customization.cfg b/customization.cfg index c064706..f2b40e9 100644 --- a/customization.cfg +++ b/customization.cfg @@ -229,6 +229,9 @@ _tcp_cong_alg="" # You can pass a default set of kernel command line options here - example: "intel_pstate=passive nowatchdog amdgpu.ppfeaturemask=0xfffd7fff mitigations=off" _custom_commandline="intel_pstate=passive" +# Selection of Clearlinux patches +_clear_patches="true" + #### SPESHUL OPTION #### diff --git a/linux-tkg-config/prepare b/linux-tkg-config/prepare index efc6178..4379e9a 100644 --- a/linux-tkg-config/prepare +++ b/linux-tkg-config/prepare @@ -482,8 +482,10 @@ _tkg_srcprep() { fi # TkG - tkgpatch="$srcdir/0002-clear-patches.patch" - _msg="Applying clear linux patches" && _tkg_patcher + if [ "$_clear_patches" = "true" ]; then + tkgpatch="$srcdir/0002-clear-patches.patch" + _msg="Applying clear linux patches" && _tkg_patcher + fi tkgpatch="$srcdir/0003-glitched-base.patch" _msg="Applying glitched base patch" && _tkg_patcher