build embedded system develop toolchains for arm

王朝system·作者佚名  2006-01-09
窄屏简体版  字體: |||超大  

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

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航