Default [Q] Custom kernel from samsung galaxy for nexus kitkat rom

hi
i have a samsung galaxy fame (gt-s6810) and i want to install android kitkat 4.4 on my device.

i pretend to create a kernel from the sources code of my device.
Then, my idea, is to replace the kernel from the nexus 5 factory image, for the kernel i will create.

from this way, when I install the android factory rom, will be compatible with the hardware of my device.

is this possible or it won't work?

If possible, could anyone please post a tutorial to integrate the created kernel to the factory image?