diff options
-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 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" |