summaryrefslogtreecommitdiff
path: root/util/xcompile
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2014-05-14 14:48:31 +0200
committerPatrick Georgi <patrick@georgi-clan.de>2014-05-15 10:27:49 +0200
commit0890a825f3870f135447055c40b342bc6e3b0da7 (patch)
treef7aa6fa797ebdc577ff7be64ee5fc2dfc23edec9 /util/xcompile
parent1ec065bffae5233202ec1e64f3a2fb541da3784e (diff)
downloadcoreboot-0890a825f3870f135447055c40b342bc6e3b0da7.tar.xz
xcompile: ABIs are really architecture specific
no need to test for i386-eabi or armv7a-elf Change-Id: Icbef5a64f5b793092ca0f94ee8f54bc896bf39ad Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/5746 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Diffstat (limited to 'util/xcompile')
-rw-r--r--util/xcompile/xcompile9
1 files changed, 5 insertions, 4 deletions
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index 239c23375c..0ac2bec942 100644
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -169,6 +169,7 @@ arch_config_armv7() {
TBFDARCH="littlearm"
TCLIST="armv7a armv7-a"
TWIDTH="32"
+ TABI="eabi"
}
arch_config_aarch64() {
@@ -176,6 +177,7 @@ arch_config_aarch64() {
TBFDARCH="littleaarch64"
TCLIST="aarch64"
TWIDTH="64"
+ TABI="eabi"
}
arch_config_x86() {
@@ -183,6 +185,7 @@ arch_config_x86() {
TBFDARCH="i386"
TCLIST="i386 x86_64"
TWIDTH="32"
+ TABI="elf"
}
test_architecture() {
@@ -203,11 +206,9 @@ test_architecture() {
search="$(eval echo \$CROSS_COMPILE_$architecture 2>/dev/null)"
search="$search $CROSS_COMPILE"
for toolchain in $TCLIST; do
- search="$search $XGCCPATH$toolchain-elf-"
- search="$search $toolchain-elf-"
+ search="$search $XGCCPATH$toolchain-$TABI-"
+ search="$search $toolchain-$TABI-"
search="$search $toolchain-linux-gnu-"
- search="$search $XGCCPATH$toolchain-eabi-"
- search="$search $toolchain-eabi-"
done
echo "# $architecture TARCH_SEARCH=$search"