Building Pi3 kernel module

I have Ubuntu Mate running on a Pi3.

Having built run a kernel module on a Ubuntu desktop machine. I need to Cross compile the same for a Pi3.

I have the same github kernel commit on both the pi3 and Ubuntu desktop 951799bbcd795ddf27769d14acf4813fdcbe53dc

Where should I look for instruction on cross compiling for the Pi? and is it really necessary to build the entire pi Kernel in order to compile pi modules, as I have read?