(1) update kernel.eclass's set_arch_to_kernel to handle mips (2) in src_compile(), instead of screwing around with $ARCh, first call set_arch_to_kernel at the beginning and then call set_arch_to_portage at the end (3) make defconfig's should be run like this: make defconfig HOSTCFLAGS="-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I${S}/include/" otherwise some files fail to be generated if /usr/include/{linux,asm} is empty (user cleaned all kernel headers or something) (4) after running the defconfig target, `make prepare` should be run (passing the same $HOSTCFLAGS as above) ... this is a new target for 2.6 and generates a bunch of required files/symlinks ... depends on the $ARCH as to what exactly gets 'prepared'
and here's one list thing to be imported from the linux26-headers package: from src_compile(): # autoconf.h isnt generated unless it already exists. plus, we have # no gurentee that any headers are installed on the system... [ -f ${ROOT}/usr/include/linux/autoconf.h ] || \ touch ${S}/include/linux/autoconf.h
All fixed up (for now)