You must copy and paste the bash function in terminal and after type
check_march
Git Clone URL: | https://aur.archlinux.org/linux-amd.git (read-only, click to copy) |
---|---|
Submitter: | eggz |
Maintainer: | eggz (NhaMeh) |
Last Packager: | eggz |
Votes: | 29 |
Popularity: | 0.026289 |
First Submitted: | 2019-11-10 15:20 (UTC) |
Last Updated: | 2024-04-17 10:53 (UTC) |
« First ‹ Previous 1 .. 6 7 8 9 10 11 12 13 14 15 16 .. 36 Next › Last »
You must copy and paste the bash function in terminal and after type
check_march
@blackhole What did you type in terminal to get this output?
check_march() {
CPU=$(gcc -Q -march=native --help=target|grep march=|awk '{print $2}'|head -1)
MARCH=$(echo $CPU|tr '[:lower:]' '[:upper:]'&&echo)
if [[ ${MARCH} == "ZNVER1" ]]; then
MARCH="ZEN"
elif [[ ${MARCH} == "ZNVER2" ]]; then
MARCH="ZEN2"
elif [[ ${MARCH} == "ZNVER3" ]]; then
MARCH="ZEN3"
elif [[ ${MARCH} == "BDVER1" ]]; then
MARCH="BULLDOZER"
elif [[ ${MARCH} == "BDVER2" ]]; then
MARCH="PILEDRIVER"
elif [[ ${MARCH} == "BDVER3" ]]; then
MARCH="STEAMROLLER"
elif [[ ${MARCH} == "BDVER4" ]]; then
MARCH="EXCAVATOR"
elif [[ ${MARCH} == "BTVER1" ]]; then
MARCH="BOBCAT"
elif [[ ${MARCH} == "BTVER2" ]]; then
MARCH="JAGUAR"
elif [[ ${MARCH} == "AMDFAM10" ]]; then
MARCH="MK10"
elif [[ ${MARCH} == "K8-SSE3" ]]; then
MARCH="K8SSE3"
elif [[ ${MARCH} == "BONNELL" ]]; then
MARCH="ATOM"
elif [[ ${MARCH} == "GOLDMONT-PLUS" ]]; then
MARCH="GOLDMONTPLUS"
elif [[ ${MARCH} == "SKYLAKE-AVX512" ]]; then
MARCH="SKYLAKE2"
elif [[ ${MARCH} == "ICELAKE-CLIENT" ]]; then
MARCH="ICELAKE"
fi
echo $MARCH
}
Hi, I have a question for you. How do I know if my cpu is znver3 or mzen3 or znver2 to pick the correct kernel?
PS: I don't have AMD cpu, it's good to know.
awesome! makes my machine happy.
ok I removed mkinitcpio from the deps, atleast it will get rid of the conflict warning then for the dracut users.
Indeed mkinitcpio is still the most used but optional for the kernel packages: initramfs (mkinitcpio, dracut, booster, booster) It is only that p.e. dracut is conflicting with mkinitcpio. And i can build your linux-amd without mkinitcpio installed when i remove what i badly name "runnings" in install file and inside the PKGBUILD (the parts calling mkinitcpio)
AH well it's a good thing arch linux uses mkinitcpio then by default, wouldn't know what dracut needs lol.
Currently, you have mkinitcpio as a hard requirement. This is problematic if you are using dracut instead of mkinitcpio.
Try what exactly? What do you mean with "runnings in PKGBUILD" ? I'm not following your question.
Pinned Comments
eggz commented on 2023-05-04 16:38 (UTC)
GCC13.1 is mainlined in arch, so this means znver4 support can kick off on this kernel. The graysky compile patches have been updated too.
This kernel now natively supports the znver4 arch, but this kernel will most likely keep working on all AMD ryzen hardware. It's better to be able to address certain small perks or issues per architecture now and in the future.
eggz commented on 2019-11-10 15:23 (UTC) (edited on 2020-02-18 12:08 (UTC) by eggz)
Tired of compiling? Use this binary repo instead! Add this at the end of /etc/pacman.conf :