xcompile: detect and use RISCV binaries

RISCV is a new architecture. This change simply setups up xcompile
to detect and use RISCV compilers if they are found.

Change-Id: Iad1a88ef2e3c8dd1e601549aeca26fb29b2bc7ae
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Reviewed-on: http://review.coreboot.org/7023
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
This commit is contained in:
Ronald G. Minnich 2014-10-07 05:18:51 +00:00
parent 34fc4ab80b
commit b9a0809fae
1 changed files with 10 additions and 1 deletions

View File

@ -167,7 +167,7 @@ EOF
} }
# Architecture definition # Architecture definition
SUPPORTED_ARCHITECTURE="x86 arm aarch64" SUPPORTED_ARCHITECTURE="x86 arm aarch64 riscv"
arch_config_arm() { arch_config_arm() {
TARCH="arm" TARCH="arm"
@ -185,6 +185,14 @@ arch_config_aarch64() {
TABI="eabi" TABI="eabi"
} }
arch_config_riscv() {
TARCH="riscv"
TBFDARCH="littleriscv"
TCLIST="riscv"
TWIDTH="64"
TABI="elf"
}
arch_config_x86() { arch_config_x86() {
TARCH="x86_32" TARCH="x86_32"
TBFDARCH="i386" TBFDARCH="i386"
@ -213,6 +221,7 @@ test_architecture() {
search="$search $XGCCPATH$toolchain-$TABI-" search="$search $XGCCPATH$toolchain-$TABI-"
search="$search $toolchain-$TABI-" search="$search $toolchain-$TABI-"
search="$search $toolchain-linux-gnu-" search="$search $toolchain-linux-gnu-"
search="$search $toolchain-"
done done
echo "# $architecture TARCH_SEARCH=$search" echo "# $architecture TARCH_SEARCH=$search"