I have a Gentoo server running kernel version 5.10.198, and I want to use its .config file to build a custom kernel on a Rocky Linux 9.5 system.
I copied the .config file from the Gentoo system into the kernel source directory on Rocky and ran make olddefconfig, but it throws errors.
I also noticed that the kernel config file from Rocky has around 5,789 options, while the Gentoo config has only about 1,789 options.
My goal is to reuse the Gentoo configuration — which has performance optimizations — to build the same kernel version (5.10.198) on Rocky Linux. How can I properly do this without getting errors?