Skip to content

Commit

Permalink
script: Switch from ThinLTO to FullLTO due dkms issue
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Jung <[email protected]>
  • Loading branch information
ptr1337 committed Mar 1, 2024
1 parent 959f587 commit 4446177
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions script-v3-v4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ mv */*-x86_64_v3.pkg.tar.zst* /home/ptr1337/.docker/build/nginx/www/repo/x86_64_
repoctl update -P cachyos-v3

## LLVM ThinLTO v3 Kernel
find . -name "PKGBUILD" | xargs -I {} sed -i "s/_use_llvm_lto-none/_use_llvm_lto-thin/" {}
find . -name "PKGBUILD" | xargs -I {} sed -i "s/_use_llvm_lto-none/_use_llvm_lto-fulll/" {}

files=$(find . -name "PKGBUILD")

Expand All @@ -43,7 +43,7 @@ mv */*-x86_64_v3.pkg.tar.zst* /home/ptr1337/.docker/build/nginx/www/repo/x86_64_
repoctl update -P cachyos-v3

## GCC v4 Kernel
find . -name "PKGBUILD" | xargs -I {} sed -i "s/_use_llvm_lto-thin/_use_llvm_lto-none/" {}
find . -name "PKGBUILD" | xargs -I {} sed -i "s/_use_llvm_lto-full/_use_llvm_lto-none/" {}
find . -name "config" | xargs -I {} sed -i 's/GENERIC_CPU=y/GENERIC_CPU4=y/' {}

files=$(find . -name "PKGBUILD")
Expand All @@ -62,7 +62,7 @@ mv */*-x86_64_v4.pkg.tar.zst* /home/ptr1337/.docker/build/nginx/www/repo/x86_64_
repoctl update -P cachyos-v4

## LLVM ThinLTO v4 Kernel
find . -name "PKGBUILD" | xargs -I {} sed -i "s/_use_llvm_lto-none/_use_llvm_lto-thin/" {}
find . -name "PKGBUILD" | xargs -I {} sed -i "s/_use_llvm_lto-none/_use_llvm_lto-full/" {}

files=$(find . -name "PKGBUILD")

Expand Down

0 comments on commit 4446177

Please sign in to comment.