]> rtime.felk.cvut.cz Git - arc.git/blob - scripts/set_env_win_arm_cs.sh
EcuM: more fixes
[arc.git] / scripts / set_env_win_arm_cs.sh
1 #!/bin/sh
2   
3 UNAME=`uname`
4 echo $UNAME
5
6 #if expr match "$UNAME" 'MINGW32_NT-.*' > 6 ]; then
7 #  compiler=/c/devtools/Codesourcery/arm-2009q1/bin/arm-none-eabi-
8 #elif if expr match "$UNAME" 'CYGWIN_NT_NT-.*'; then
9 #  compiler=/cygdrive/c/devtools/Codesourcery/arm-2009q1/bin/arm-none-eabi- 
10 #else
11 #  echo No default path for $UNAME set. Quitting.
12 #fi 
13
14
15 if test x${UNAME:0:7} = xMINGW32; then
16   compiler=/c/devtools/Codesourcery/arm-2009q1/bin/arm-none-eabi-
17 elif test x${UNAME:0:9} = xCYGWIN_NT; then
18   compiler=/cygdrive/c/devtools/Codesourcery/arm-2009q1/bin/arm-none-eabi- 
19 else
20   echo No default path for $UNAME set. Quitting.
21 fi 
22
23 #if test x$UNAME = xMINGW32_NT-5.1; then
24 #  compiler=/c/devtools/Codesourcery/arm-2009q1/bin/arm-none-eabi-
25 #elif test x$UNAME = xCYGWIN_NT-5.1; then
26 #  compiler=/cygdrive/c/devtools/Codesourcery/arm-2009q1/bin/arm-none-eabi- 
27 #else
28 #  echo No default path for $UNAME set. Quitting.
29 #fi 
30   
31 if [ "$compiler" != "" ]; then   
32   export CROSS_COMPILE=$compiler
33   export BOARDDIR=et_stm32_stamp
34   export BDIR=examples/tiny
35   echo $CROSS_COMPILE
36   echo $BOARDDIR
37   echo $BDIR
38 fi
39