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)
This commit is contained in:
Stefan Reinauer 2012-12-08 00:38:40 +01:00
parent 16bd789a73
commit 10099070ca
1 changed files with 8 additions and 1 deletions

View File

@ -356,7 +356,14 @@ function build_target
fi fi
done done
fi 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 # TBD: look for suitable cross compiler suite
# cross-$TARCH-gcc and cross-$TARCH-ld # cross-$TARCH-gcc and cross-$TARCH-ld