make ARCH=mips CROSS_COMPILE=${TARGET}- menuconfig
make ARCH=mips CROSS_COMPILE=${TARGET}- INSTALL_HDR_PATH=${TARGET_PREFIX} headers_install
~/mips/package/tools/linux-3.0.82-openloongson# make include/linux/version.h
cd binutils-2.19.1/
./configure --target=${TARGET} --prefix=${RESULT_DIR} --disable-nls --disable-werror --disable-multilib --enable-shared
make configure-host
make
make install
../gcc-4.4.0/configure --build=${HOST} --host=${HOST} --target=${TARGET} --prefix=${RESULT_DIR} --without-headers --with-newlib --with-float=soft --with-gnu-ld --with-gnu-as --disable-nls --disable-decimal-float --disable-multilib --disable-libmudflap --disable-libssp --disable-shared --disable-threads --disable-libffi --disable-libstdcxx-pch --enable-languages=c
make all-gcc
make all-target-libgcc
make install-gcc
make install-target-libgcc
tar jxvf glibc-2.9.tar.bz2
cp glibc-linuxthreads-2.5.tar.bz2 glibc-2.9
cd glibc-2.9/
tar jxvf glibc-linuxthreads-2.5.tar.bz2
cd ..
tar zxvf glibc-ports-2.9.tar.gz
mv glibc-ports-2.9 glibc-2.9/ports
mkdir build-glibc
cd build-glibc/