Ronald G. Minnich (rminnich@gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/7023
-gerrit
commit e3cb4165ebb8fd0aec8e1fe83f96879fa6bebd65 Author: Ronald G. Minnich rminnich@gmail.com Date: Tue Oct 7 05:18:51 2014 +0000
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 --- util/xcompile/xcompile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile index e9f6d32..e498cc0 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"