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:
parent
16bd789a73
commit
10099070ca
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue