From LinuxMIPS
Jump to: navigation, search

Notes on GCC 4_2 SVN build

Currently broken I'm just using this for notes at the mo...

Building a Kernel only GCC

export PREFIX=/home/alex/src/mips/toolchain
export TARGET=mips-unknown-linux-gnu
export HOST=x86_64-unknown-linux-gnu
../gcc.4_2/configure --host=$HOST --target=$TARGET --prefix=$PREFIX --enable-languages=c --with-gnu-ld --with-gnu-as  --without-headers --disable-shared --disable-threads --disable-libmudflap --disable-libssp


make all-gcc

and install only gcc

make install-gcc

Build Kernel

You can build a kernel

You'll need headers for the newlib or glibc build

cd linux-2.6
make ARCH=mips INSTALL_HDR_PATH=~/src/mips/toolchain headers_install

Notes on Building


Build with cross compile

Hmmm, how did menuconfig know to start with MIPS?

make CROSS_COMPILE=mips-unknown-linux-gnu-