From 1965e57fb59fff0309f37ca81a4c749b1896d5a6 Mon Sep 17 00:00:00 2001 From: Peter Jung Date: Mon, 12 Aug 2024 22:16:03 +0200 Subject: [PATCH] script: Use different way to enable CPU3/4 and Zen4 Signed-off-by: Peter Jung --- script-v3-v4.sh | 4 ++-- script-znver4.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/script-v3-v4.sh b/script-v3-v4.sh index 4ac38460..fc99eba4 100755 --- a/script-v3-v4.sh +++ b/script-v3-v4.sh @@ -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 @@ -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") diff --git a/script-znver4.sh b/script-znver4.sh index 40d4a054..b5d0b6f8 100755 --- a/script-znver4.sh +++ b/script-znver4.sh @@ -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