build mips develop system without hardware on PC

1. build the toolchain and gdb mips simulator TARGET=mips-tx39-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 GDB=gdb-6.0 export PATH="$GNUTOOLS/bin:$PATH" GNUCONFIG="--target=$TARGET --prefix=$GNUTOOLS" GCCFLAGS="--with-newlib --with-gnu-as --with-gnu-ld" mkdir -p $SRC $BUILD/binutils $BUILD/gcc $BUILD/newlib $GNUTOOLS build mips tx39 toolchain as below: cd $SRC tar jxvf $BINUTILS.tar.bz2 tar jxvf $GCC.tar.bz2 tar xvfz $NEWLIB.tar.gz tar zxvf $GDB.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 cd $BUILD/gdb && rm -rf * $SRC/$GDB/configure --target=mipstx39-rtems --prefix=$GNUTOOLS make all install 2.edit test.c and build mips-tx39-elf-gcc -o testmips test.c -T./jmr3904app.ld 3./home/acer/newlib/gnutools_mips_rtems/bin/mipstx39-rtems-gdb testmips target sim --board=jmr3904 load run
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值