documented change in target command w/removed options
[openocd.git] / testing / toolchain / cygwin.sh
1 # Work in progress....
2 #
3 # CygWin hosted arm toolchain
4
5 set -e
6 rm -rf cygwin
7
8 rm -rf gcc
9 rm -rf gdb
10 rm -rf binutils
11
12
13 # here we need Linux hosted toolchain in the path
14 export PATH=`pwd`/install/bin:`pwd`/cygwin/bin:$PATH
15
16 mkdir cygwin
17
18 mkdir gcc
19 cd gcc
20 ../src/binutils/configure --host=i686-pc-cygwin --target=arm-elf --build=i686-pc-linux-gnu --prefix=`pwd`/../cygwin
21 make
22 make install
23 cd ..
24
25 mkdir gcc
26 cd gcc
27 ../src/configure --target=arm-elf --enable-languages=c,c++ --with-gnu-as --with-gnu-ld --with-newlib --disable-shared --enable-newlib -v --enable-multilib --disable-threads --enable-sjlj-exceptions --enable-libstdcxx-allocator=malloc --host=i686-pc-cygwin --build=i686-pc-linux-gnu --prefix=`pwd`/../cygwin --disable-libssp
28 make
29 make install
30 cd ..
31
32 mkdir gdb
33 cd gdb/
34 ../src/gdb/configure --host=i686-pc-cygwin --target=arm-elf --build=i686-pc-linux-gnu --prefix=`pwd`/../cygwin
35 make
36 make install
37 cd ..