Skip to content

Commit

Permalink
script: Use different way to enable CPU3/4 and Zen4
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Jung <[email protected]>
  • Loading branch information
ptr1337 committed Aug 12, 2024
1 parent 8983699 commit 1965e57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions script-v3-v4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ find . -name "PKGBUILD" | xargs -I {} sed -i "s/_use_auto_optimization-y/_use_au
## Enable ZFS
find . -name "PKGBUILD" | xargs -I {} sed -i "s/_build_zfs-/_build_zfs-y/" {}
## Enable Generic v3
find . -name "config" | xargs -I {} sed -i 's/GENERIC_CPU=y/GENERIC_CPU3=y/' {}
find . -name "PKGBUILD" | xargs -I {} sed -i "s/_processor_opt-/_processor_opt-GENERIC_CPU3/" {}
## Enable NVIDIA module
find . -name "PKGBUILD" | xargs -I {} sed -i "s/_build_nvidia-/_build_nvidia-y/" {}
## Enable Open NVIDIA module
Expand Down Expand Up @@ -44,7 +44,7 @@ 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 "config" | xargs -I {} sed -i 's/GENERIC_CPU3=y/GENERIC_CPU4=y/' {}
find . -name "PKGBUILD" | xargs -I {} sed -i "s/_processor_opt-GENERIC_CPU3/_processor_opt-GENERIC_CPU4/" {}

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

Expand Down
4 changes: 2 additions & 2 deletions script-znver4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
find . -name "PKGBUILD" | xargs -I {} sed -i "s/_use_auto_optimization-y/_use_auto_optimization-/" {}
## Enable ZFS
find . -name "PKGBUILD" | xargs -I {} sed -i "s/_build_zfs-/_build_zfs-y/" {}
## Enable Generic v3
find . -name "config" | xargs -I {} sed -i 's/GENERIC_CPU=y/GENERIC_MZEN4=y/' {}
## Enable Zen 4
find . -name "PKGBUILD" | xargs -I {} sed -i "s/_processor_opt-/_processor_opt-zen4/" {}
## Enable NVIDIA module
find . -name "PKGBUILD" | xargs -I {} sed -i "s/_build_nvidia-/_build_nvidia-y/" {}
## Enable Open NVIDIA module
Expand Down

0 comments on commit 1965e57

Please sign in to comment.