If I wanted to use the 5.x kernel on CentOS, I probably would just use Fedora.
But if you really want to compile your own kernel, I would probably at least go with CentOS 8.
Another good resource for this is http://www.linuxfromscratch.org/lfs/
But if you really want to compile your own kernel, I would probably at least go with CentOS 8.
Another good resource for this is http://www.linuxfromscratch.org/lfs/