From 0890a825f3870f135447055c40b342bc6e3b0da7 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Wed, 14 May 2014 14:48:31 +0200 Subject: [PATCH] xcompile: ABIs are really architecture specific no need to test for i386-eabi or armv7a-elf Change-Id: Icbef5a64f5b793092ca0f94ee8f54bc896bf39ad Signed-off-by: Patrick Georgi Reviewed-on: http://review.coreboot.org/5746 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer Reviewed-by: Edward O'Callaghan --- util/xcompile/xcompile | 9 +++++---- 1 file 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"