summaryrefslogtreecommitdiffstats
path: root/fixup_ptxconfigs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'fixup_ptxconfigs.sh')
-rwxr-xr-xfixup_ptxconfigs.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/fixup_ptxconfigs.sh b/fixup_ptxconfigs.sh
index 363ca7f..760970a 100755
--- a/fixup_ptxconfigs.sh
+++ b/fixup_ptxconfigs.sh
@@ -97,6 +97,9 @@ fixup()
mips*)
PTXCONF_GLIBC_HEADERS_FAKE_CROSS="-DBOOTSTRAP_GCC -D_MIPS_SIM=_ABIO32"
;;
+ riscv64*)
+ PTXCONF_GLIBC_HEADERS_FAKE_CROSS="-D__riscv_atomic -D__riscv_xlen=64 -D__riscv_flen=64 -D__riscv_float_abi_double"
+ ;;
*)
;;
esac
@@ -123,6 +126,9 @@ fixup()
x86_64*)
PTXCONF_ARCH_X86_64=y
;;
+ riscv64*)
+ PTXCONF_ARCH_RISCV64=y
+ ;;
*)
echo "unsupported GNU_TARGET: ${PTXCONF_GNU_TARGET}"
exit 1
@@ -220,6 +226,9 @@ fixup()
arm-elf)
#FIXME
;;
+ riscv64-linux-gnu)
+ #FIXME
+ ;;
*)
echo "unknown GNU_TARGET: ${PTXCONF_GNU_TARGET}"