最终编译的arm-none-eabi-gcc 的参数和脚本

build_gnu_tools.bat
@echo off

::set TARGET=arm-none-eabi
::set PREFIX=/opt/arm-gnu-tools
::set BIN_PATH=/opt/arm-gnu-tools/bin

set LANG=C.UTF-8
set CYGWIN_DIR=d:\cygwin
set PATH=%CYGWIN_DIR%\bin;%PATH%
set HOME=e:\build-arm-tools\

bash --login -i

1. build binutils-2.22
cd build-binutils
../binutils-2.22/configure --target=arm-none-eabi --prefix=/opt/arm-gnu-tools --enable-interwork --enable-multilib
make all
make install

2. build gcc-4.7.1  first
ln -s /opt/arm-gnu-tools/bin/* /usr/local/bin
cd ../build-gcc
../gcc-4.7.1/configure --target=arm-none-eabi --prefix=/opt/arm-gnu-tools --enable-interwork --enable-multilib --disable-nls --disable-threads --with-gnu-as --with-gnu-ld --with-dwarf2 --disable-shared --enable-languages="c,c++" --with-newlib --with-headers=../newlib-1.20.0/newlib/libc/include/ --disable-libssp --disable-libstdcxx-pch --disable-libmudflap --disable-libgomp --with-pkgversion='semilog ARM release 1'
make all-gcc
make install-gcc
ln -s /opt/arm-gnu-tools/bin/* /usr/local/bin

3. build newlib-1.2.0
cd ../build-newlib
../newlib-1.20.0/configure --target=arm-none-eabi --prefix=/opt/arm-gnu-tools --enable-interwork --enable-multilib
make all
make install

4. build gcc-4.7.1 again
cd ../build-gcc
make all
make install

5. build gdb-7.4.1
cd ../build-gdb
../gdb-7.4.1/configure --target=arm-none-eabi --prefix=/opt/arm-gnu-tools --enable-interwork --enable-multilib
make all
make install
ln -s /opt/arm-gnu-tools/bin/* /usr/local/bin

6. build insight-6.8-1
cd ../build-insight
../insight-6.8-1/configure --target=arm-none-eabi --prefix=/opt/arm-gnu-tools --enable-interwork --enable-multilib
make all
make install

阅读更多
文章标签: build path bash 脚本 c
个人分类: ARM GNU编译器 cygwin
上一篇Windows下编译make (原发于:2012-07-29 18:27:16)
下一篇在windows下用 cgywin编译MIPS的gnu交叉编译器
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭
关闭