prepare: Prevent config prompt w/ modprobed-db. (#251)

This commit is contained in:
Koopa
2021-05-31 07:26:38 -04:00
committed by GitHub
parent 50672b9f51
commit 6f71f4635e
2 changed files with 4 additions and 1 deletions

View File

@@ -42,7 +42,6 @@ _force_all_threads="true"
_noccache="false"
# Set to true to use modprobed db to clean config from unneeded modules. Speeds up compilation considerably. Requires root - https://wiki.archlinux.org/index.php/Modprobed-db
# Using this option can trigger user prompts if the config doesn't go smoothly.
# !!!! Make sure to have a well populated db !!!! - Leave empty to be asked about it at build time
_modprobeddb="false"

View File

@@ -1351,6 +1351,10 @@ CONFIG_DEBUG_INFO_BTF_MODULES=y\n
msg2 "modprobed-db database not found"
exit 1
fi
# Workaround for: https://github.com/Tk-Glitch/PKGBUILDS/issues/404.
echo "# CONFIG_GPIO_BT8XX is not set" >> ./.config
echo "# CONFIG_SND_SE6X is not set" >> ./.config
make LSMOD=$_modprobeddb_db_path localmodconfig ${llvm_opt}
fi