Skip to content

Commit befa8cc

Browse files
committed
Try to cross compile everything
1 parent ab73f84 commit befa8cc

File tree

4 files changed

+23
-7
lines changed

4 files changed

+23
-7
lines changed

binutils.build.bash

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ then
2323
exit 1
2424
fi
2525

26-
if [[ $CROSS_COMPILE == "mingw" ]] ; then
27-
EXTRA_CONFARGS="--host=i686-w64-mingw32"
26+
if [[ x$CROSS_COMPILE != x ]] ; then
27+
EXTRA_CONFARGS="--host=$OUTPUT_TAG"
2828
fi
2929

3030
cd toolsdir/bin

gcc.build.bash

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ cd objdir
8181
PREFIX=`pwd`
8282
cd -
8383

84-
if [[ $CROSS_COMPILE == "mingw" ]] ; then
85-
EXTRA_CONFARGS="--host=i686-w64-mingw32"
84+
if [[ x$CROSS_COMPILE != x ]] ; then
85+
EXTRA_CONFARGS="--host=$OUTPUT_TAG"
8686
fi
8787

8888
mkdir -p gcc-build

gdb.build.bash

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ cd toolsdir/bin
2727
TOOLS_BIN_PATH=`pwd`
2828
cd -
2929

30-
if [[ $CROSS_COMPILE == "mingw" ]] ; then
31-
EXTRA_CONFARGS="--host=i686-w64-mingw32"
30+
if [[ x$CROSS_COMPILE != x ]] ; then
31+
EXTRA_CONFARGS="--host=$OUTPUT_TAG"
3232
fi
3333

3434
export PATH="$TOOLS_BIN_PATH:$PATH"

package-avr-gcc.bash

+17-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,23 @@ if [[ $CROSS_COMPILE == "mingw" ]] ; then
2828
export CXX="i686-w64-mingw32-g++"
2929
export CROSS_COMPILE_HOST="i686-w64-mingw32"
3030
export TARGET_OS="Windows"
31-
OUTPUT_TAG=i686-w64-mingw32
31+
export OUTPUT_TAG=i686-w64-mingw32
32+
33+
elif [[ $CROSS_COMPILE == "osxcross" ]] ; then
34+
35+
export CC="o32-clang"
36+
export CXX="o32-clang++"
37+
export CROSS_COMPILE_HOST="i386-apple-darwin13"
38+
export TARGET_OS="OSX"
39+
export OUTPUT_TAG=i386-apple-darwin13
40+
41+
elif [[ $CROSS_COMPILE == "armcross" ]] ; then
42+
43+
export CC="arm-linux-gnueabihf-gcc"
44+
export CXX="arm-linux-gnueabihf-g++"
45+
export CROSS_COMPILE_HOST="arm-linux-gnueabihf"
46+
export TARGET_OS="LinuxARM"
47+
export OUTPUT_TAG=arm-linux-gnueabihf
3248

3349
elif [[ $OS == "GNU/Linux" ]] ; then
3450

0 commit comments

Comments
 (0)