how to build lineageos from source (including the kernel) for e.g. Samsung Galaxy S 2 (gt-i9100): https://wiki.lineageos.org/devices/i9100/build . Take out any relevant information you need from this tutorial (learn it)
compile the kernel from the first link with a suitable patch (check Makefile).
Most of people in Egypt and Other countries use this phone please Make Kernel for this mobile or learn us how to make kernel.