# --------------------------------------------------------------- # 1. Binutils bauen und installieren # --------------------------------------------------------------- > tar -xzf binutils-2.18.tar.gz > mkdir binutils-2.18_build > cd binutils-2.18_build > ../binutils-2.18/configure --target=mipsel-elf --prefix=/usr/local > make > make install # --------------------------------------------------------------- # 2. GCC bauen und installieren # --------------------------------------------------------------- > tar -xzf gcc-4.3.0.tar.gz > tar -xzf gcc-core-4.3.0.tar.gz > mkdir gcc-4.3.0_build > cd gcc-4.3.0_build > ../gcc-4.3.0/configure --target=mipsel-elf --prefix=/usr/local --enable-languages=c,c++ --disable-shared --with-newlib --with-float=soft --disable-multilib --with-abi=eabi > CFLAGS_FOR_TARGET="-G 0 -g -O2" make LANGUAGES="c c++" > make install LANGUAGES="c c++" # --------------------------------------------------------------- # 3. Newlib bauen und installieren # --------------------------------------------------------------- > tar -xzf newlib-1.16.0.tar.gz ! Bug in newlib-1.16.0/newlib/libc/machine/mips/strlen.c. Newlib von Hand patchen (32-bit MIPS targets): "lbu $3,0($4)\n" "nop\n" <= nop einfügen "bnez $3,1b\n" > mkdir newlib-1.16.0_build > cd newlib-1.16.0_build > ../newlib-1.16.0/configure --target=mipsel-elf --prefix=/usr/local --disable-multilib --with-float=soft --with-abi=eabi > TARGET_CFLAGS="-G 0 -g -O2" make > make install