Ian Lance Taylor wrote:
(You may want to use the mips-elf target to build the Linux kernel itself; I'm not sure. But when building applications to run on top of the kernel, mips-linux-gnu is the correct target to use.)
I successfully build both user space and kernel code with the same mipsel-linux-gnu targeted cross compiler.
Different toolchains for user and kernel code are not necessary. David Daney.