Three words: In a VM.
But we really need more details, like the platform, what your going to do with said kernel, have you ever cross compiled something before...
If this is for a router/embedded device - look at Openwrt for a buildroot so you can get your kernel image.
Not to discourage you, but either this can go really well, or become a PITA. Feel free to post more info.