Apply a patch while building kernel

Hi!

I have found this useful post which teaches how to build your customed kernel.

Say I have a patch I would want to apply. Exactly how and when during the process should I do it?

Thank you for helping.

You’ll have to apply it before the make command (step 5 in your linked how to) with patch -p1 < ../patch-x.y.z - see Applying Patches To The Linux Kernel — The Linux Kernel documentation

Thank you Termy!