diff options
author | Ronald G. Minnich <rminnich@gmail.com> | 2014-10-07 05:18:51 +0000 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2014-10-08 15:44:17 +0200 |
commit | b9a0809faeeef67e46cda17cf8f7a839c6fe614c (patch) | |
tree | ca71b74ef2f057c05cfb2fc80ed453227f0239bc /util/xcompile | |
parent | 34fc4ab80b507739e2580d490dff67fcfdde11ea (diff) | |
download | coreboot-b9a0809faeeef67e46cda17cf8f7a839c6fe614c.tar.gz coreboot-b9a0809faeeef67e46cda17cf8f7a839c6fe614c.tar.bz2 coreboot-b9a0809faeeef67e46cda17cf8f7a839c6fe614c.zip |
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>
Diffstat (limited to 'util/xcompile')
-rwxr-xr-x | util/xcompile/xcompile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile index e9f6d32689cd..e498cc08293a 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" |