build embedded system develop toolchains for arm

类别:软件工程 点击:0 评论:0 推荐:
download binutils-2.15.tar.bz2 gcc-3.4.1.tar.bz2 newlib-1.12.0.tar.gz TARGET=arm-elf # Target processor GNUTOOLS=$HOME/newlib/gnutools # Directory for final tools SRC=$HOME/newlib # Directory for source BUILD=$HOME/newlib/build # Directory for intermediate build files BINUTILS=binutils-2.15 GCC=gcc-3.4.1 NEWLIB=newlib-1.12.0 export PATH="$GNUTOOLS/bin:$PATH" GNUCONFIG="--target=$TARGET --prefix=$GNUTOOLS" GCCFLAGS="--with-newlib --with-gnu-as --with-gnu-ld --with-float=soft" mkdir -p $SRC $BUILD/binutils $BUILD/gcc $BUILD/newlib $GNUTOOLS cd $SRC tar jxvf $BINUTILS.tar.bz2 tar jxvf $GCC.tar.bz2 tar xvfz $NEWLIB.tar.gz cd $BUILD/binutils && rm -rf * $SRC/$BINUTILS/configure $GNUCONFIG make all install cd $BUILD/gcc && rm -rf * $SRC/$GCC/configure $GNUCONFIG $GCCFLAGS --without-headers --enable-languages=c make all install cd $BUILD/newlib && rm -rf * $SRC/$NEWLIB/configure $GNUCONFIG make all install cd $BUILD/gcc && rm -rf * $SRC/$GCC/configure $GNUCONFIG $GCCFLAGS --with-headers=$GNUTOOLS/$TARGET/include --enable-languages=c,c++ make all install

本文地址:http://com.8s8s.com/it/it31987.htm