From f3ef2edd61ca570a86e93dc18b9af1e90bd16e9e Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Fri, 26 Feb 2021 19:51:00 +0100 Subject: [PATCH] Skip the futex2 config edits when using a kernel version that doesn't have futex2 support --- linux-tkg-config/prepare | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-tkg-config/prepare b/linux-tkg-config/prepare index e3a86d6..90ad2eb 100644 --- a/linux-tkg-config/prepare +++ b/linux-tkg-config/prepare @@ -487,7 +487,7 @@ _tkg_srcprep() { sed -i -e 's/# CONFIG_ZSWAP_COMPRESSOR_DEFAULT_LZ4 is not set/CONFIG_ZSWAP_COMPRESSOR_DEFAULT_LZ4=y/' ./.config sed -i -e 's/CONFIG_ZSWAP_COMPRESSOR_DEFAULT="lzo"/CONFIG_ZSWAP_COMPRESSOR_DEFAULT="lz4"/' ./.config sed -i -e 's/# CONFIG_CMDLINE_BOOL is not set/CONFIG_CMDLINE_BOOL=y/' ./.config - if [ "$_futex2" = "true" ]; then + if [ "$_futex2" = "true" ] && [ "$_basever" != "54" ] && [ "$_basever" != "57" ] && [ "$_basever" != "58" ] && [ "$_basever" != "59" ]; then sed -i -e 's/# CONFIG_EXPERT is not set/CONFIG_EXPERT=y/' ./.config echo -e "# CONFIG_DEBUG_RSEQ is not set\n # CONFIG_PC104 is not set\n