How to do it on a high level? Given that I know what to modify in the code.

Also, I won't want to rebuild the parts of the kernel that aren't necessary. The Wifi driver should be rebuild in isolation, that is.