From b9a0809faeeef67e46cda17cf8f7a839c6fe614c Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Tue, 7 Oct 2014 05:18:51 +0000 Subject: 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 Reviewed-on: http://review.coreboot.org/7023 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- util/xcompile/xcompile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile index e9f6d32689..e498cc0829 100755 --- a/util/xcompile/xcompile +++ b/util/xcompile/xcompile @@ -167,7 +167,7 @@ EOF } # Architecture definition -SUPPORTED_ARCHITECTURE="x86 arm aarch64" +SUPPORTED_ARCHITECTURE="x86 arm aarch64 riscv" arch_config_arm() { TARCH="arm" @@ -185,6 +185,14 @@ arch_config_aarch64() { TABI="eabi" } +arch_config_riscv() { + TARCH="riscv" + TBFDARCH="littleriscv" + TCLIST="riscv" + TWIDTH="64" + TABI="elf" +} + arch_config_x86() { TARCH="x86_32" TBFDARCH="i386" @@ -213,6 +221,7 @@ test_architecture() { search="$search $XGCCPATH$toolchain-$TABI-" search="$search $toolchain-$TABI-" search="$search $toolchain-linux-gnu-" + search="$search $toolchain-" done echo "# $architecture TARCH_SEARCH=$search" -- cgit v1.2.3