Recompiling kernel

Hi! I’m currently using CoreElec in my S905x4 Generic TV Box for server purposes, and I was wondering on how to recompile the kernel correctly. I have tried many options, like compiling mainline kernel and replacing images, recompiling coreelec (I couldn’t), and others.

Is there some kind of wiki entry for making the kernel compilation more straightforward and easier to understand? If that isn’t the case, how could I rebuild the kernel without needing to rebuild all of coreelec.

And, last question: It is possible to compile mainline kernel and use it on CoreElec?

No. When you don’t have need of media support in hardware use LE with mainline.