]> rtime.felk.cvut.cz Git - arc.git/blob - scripts/build_arm.sh
926c6481c68a116096de0a5ba25e53d35f668523
[arc.git] / scripts / build_arm.sh
1 #/bin/bash
2
3 function quit {
4     echo
5     echo "### BUILD FAILED"
6     echo 
7     exit $1
8 }
9
10
11 oo="aa $CROSS_COMPILE aa";
12 echo "oo = $oo";
13 if [ "aa $CROSS_COMPILE aa" == "aa  aa" ]; then
14   os=`uname`
15   echo $os
16   if [ "$os" == "Darwin" ]; then
17     export CROSS_COMPILE=/opt/arm-elf/bin/arm-elf-
18   else
19     export CROSS_COMPILE=/cygdrive/c/devtools/CodeSourcery/Lite/bin/arm-none-eabi-
20   fi
21 fi;
22
23 export BDIR=system/kernel/testsystem
24 make BOARDDIR=et_stm32_stamp clean
25 make BOARDDIR=et_stm32_stamp all
26 if [ $? -ne 0 ]; then quit 1
27 fi