summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorStefan Reinauer <stefan.reinauer@coreboot.org>2012-12-08 00:38:40 +0100
committerStefan Reinauer <stefan.reinauer@coreboot.org>2012-12-08 01:22:17 +0100
commit10099070caaae79348673adf23ce441a566e70fd (patch)
tree11406e0917244c38303b47951a60b0de8d45f2c6 /util
parent16bd789a735015470b431a1f3c9b5cce0ac23e87 (diff)
downloadcoreboot-10099070caaae79348673adf23ce441a566e70fd.tar.xz
abuild: Select correct cross compiler for ARMV7 architecture
Change-Id: Ia0dce25a4271299757654ba46baafe6a6673c6d2 Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/2000 Reviewed-by: David Hendricks <dhendrix@chromium.org> Tested-by: build bot (Jenkins)
Diffstat (limited to 'util')
-rwxr-xr-xutil/abuild/abuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/util/abuild/abuild b/util/abuild/abuild
index aefb1ead1d..1c69eec581 100755
--- a/util/abuild/abuild
+++ b/util/abuild/abuild
@@ -356,7 +356,14 @@ function build_target
fi
done
fi
-
+ if [ "$found_crosscompiler" == "false" -a "$TARCH" == ARMV7 ];then
+ for prefix in armv7a-eabi- armv7a-cros-linux-gnueabi-; do
+ if ${prefix}gcc --version > /dev/null 2> /dev/null ; then
+ found_crosscompiler=true
+ CROSS_COMPILE=$prefix
+ fi
+ done
+ fi
# TBD: look for suitable cross compiler suite
# cross-$TARCH-gcc and cross-$TARCH-ld