What is the problem with this? At least a mips(el)-elf should have no problem compiling the kernelThe options -D__linux__ -D_MIPS_SZLONG=32 and the error messages make it look like you're forcing a non-Linux toolchain into building a kernel.
(at least apart from the check you have somewhere which gives an error if you try).
/Brian