3 # Tries to get a compiler depending on SHELL/OS. On Windows it defaults
4 # to CodeSourcery installed at c:\devtools\Codesourcery\<arch>
11 if [ "$ARCH" == "PPC" ]; then
12 if test x${UNAME:0:7} = xMINGW32; then
13 COMPILER=/c/devtools/Codesourcery/freescale-4.3/bin/powerpc-eabi-
14 elif test x${UNAME:0:9} = xCYGWIN_NT; then
15 COMPILER=/cygdrive/c/devtools/Codesourcery/freescale-4.3/bin/powerpc-eabi-
16 elif test x${UNAME:0:5} = xDarwin; then
17 COMPILER=/opt/powerpc-eabi/bin/powerpc-eabi-
19 echo No default path for $UNAME set. Quitting.
21 elif [ "$ARCH" == "ARM" ]; then
22 if test x${UNAME:0:7} = xMINGW32; then
23 COMPILER=/c/devtools/Codesourcery/arm-2009q1/bin/arm-none-eabi-
24 elif test x${UNAME:0:9} = xCYGWIN_NT; then
25 COMPILER=/cygdrive/c/devtools/Codesourcery/arm-2009q1/bin/arm-none-eabi-
26 elif test x${UNAME:0:5} = xDarwin; then
27 COMPILER=/opt/arm-elf/bin/arm-none-eabi-
29 echo No default path for $UNAME set. Quitting.
31 elif [ "$ARCH" == "HCS12" ]; then
32 COMPILER=/opt/m6812-elf/bin/m6812-elf-
37 if [ -f ${COMPILER}gcc ]; then
38 echo Using compiler: ${COMPILER}
40 echo ${COMPILER} does not exist...
44 export CROSS_COMPILE=$COMPILER