aboutsummaryrefslogtreecommitdiff
path: root/testing/toolchain/cygwin.sh
blob: bc4835b84c2e614cf68bfa16012c9466ed8c2332 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Work in progress....
#
# CygWin hosted arm toolchain

set -e
rm -rf cygwin

rm -rf gcc
rm -rf gdb
rm -rf binutils


# here we need Linux hosted toolchain in the path
export PATH=`pwd`/install/bin:`pwd`/cygwin/bin:$PATH

mkdir cygwin

mkdir gcc
cd gcc
../src/binutils/configure --host=i686-pc-cygwin --target=arm-elf --build=i686-pc-linux-gnu --prefix=`pwd`/../cygwin
make
make install
cd ..

mkdir gcc
cd gcc
../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
make 
make install
cd ..

mkdir gdb
cd gdb/
../src/gdb/configure --host=i686-pc-cygwin --target=arm-elf --build=i686-pc-linux-gnu --prefix=`pwd`/../cygwin
make
make install
cd ..