wrc1944 Advocate

Joined: 15 Aug 2002 Posts: 3464 Location: Gainesville, Florida
|
Posted: Wed Oct 23, 2019 9:54 pm Post subject: gentoo-sources 5012_enable-cpu-opts patch works in 5.4-rc4 |
|
|
FWIW, the latest gentoo-sources gcc-opts patch applies OK in 5.4-rc4, and kernel compiles/boots/runs fine.
Just copy the patch enable_additional_cpu_optimizations_for_gcc_v9.1+_kernel_v4.13+.patch into linux-5.4-rc4, and then:
Code: | gentoo-main ~ # cd /usr/src/linux-5.4-rc4
gentoo-main /usr/src/linux-5.4-rc4 # patch -p1 < enable_additional_cpu_optimizations_for_gcc_v9.1+_kernel_v4.13+.patch
patching file arch/x86/include/asm/module.h
patching file arch/x86/Kconfig.cpu
patching file arch/x86/Makefile
Hunk #1 succeeded at 119 (offset 1 line).
patching file arch/x86/Makefile_32.cpu
gentoo-main /usr/src/linux-5.4-rc4 # | Then configure as usual ( I use my hardware specific refined and lean config file, and do a make xconfig if needed for new features).
It's the 5012_enable-cpu-optimizations-for-gcc91.patch at bottom of genpatches page.
https://dev.gentoo.org/~mpagano/genpatches/patches-5.3-6.html
https://github.com/graysky2/kernel_gcc_patch _________________ Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
OpenRC Gentoo ~amd64 plasma, glibc-2.41-r2, gcc-15.1.0
kernel-6.14.6 USE=experimental python3.13.3 |
|