Disable CONFIG_CPU_SRSO for thin and full LTO

Signed-off-by: Piotr Gorski <lucjan.lucjanov@gmail.com>
This commit is contained in:
Piotr Gorski 2023-08-10 11:08:39 +02:00
parent c82a6f99cd
commit d922033076
No known key found for this signature in database
GPG key ID: 79AFA05ABDB26C5A

View file

@ -286,6 +286,13 @@ prepare() {
"${srcdir}"/auto-cpu-optimization.sh
fi
### Disabling CONFIG_CPU_SRSO
# More infos here: https://github.com/CachyOS/linux-cachyos/issues/150
if [ "$_use_llvm_lto" != "none" ]; then
echo "Disabling CONFIG_CPU_SRSO..."
scripts/config -d CPU_SRSO
fi
### Selecting CachyOS config
if [ -n "$_cachy_config" ]; then
echo "Enabling CachyOS config..."