Put CONFIG_EXPERT behind a .cfg toggle and disable by default. This should stay optional.

Fixes https://github.com/Frogging-Family/linux-tkg/issues/156
This commit is contained in:
Tk-Glitch
2021-01-15 19:56:26 +01:00
parent 1398ec3eaa
commit 6b67e77d5b
2 changed files with 6 additions and 1 deletions

View File

@@ -495,7 +495,9 @@ _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
sed -i -e 's/# CONFIG_EXPERT is not set/CONFIG_EXPERT=y/' ./.config
if [ "$_config_expert" = "true" ]; then
sed -i -e 's/# CONFIG_EXPERT is not set/CONFIG_EXPERT=y/' ./.config
fi
echo "CONFIG_CMDLINE=\"${_custom_commandline}\"" >> ./.config
echo "# CONFIG_CMDLINE_OVERRIDE is not set" >> ./.config
echo "# CONFIG_X86_P6_NOP is not set" >> ./.config