riscv64 redox support

parent b52f9297
......@@ -14,6 +14,7 @@ case $machine in
i?86-*-cygwin* | \
aarch64-*-redox* | \
i?86-*-redox* | \
riscv64*-*-redox* | \
x86_64-*-redox* | \
i?86-*-mingw32* | \
x86_64-*-mingw32* | \
......
......@@ -89,5 +89,8 @@ case $build in
aarch64-*-redox*)
build_xm_file=aarch64/xm-redox.h
;;
riscv64*-*-redox*)
build_xm_file=riscv/xm-redox.h
;;
esac
......@@ -823,6 +823,9 @@ case ${target} in
aarch64-*-redox*)
xm_file=aarch64/xm-redox.h
;;
riscv64*-*-redox*)
xm_file=riscv/xm-redox.h
;;
esac
;;
*-*-netbsd*)
......@@ -1665,6 +1668,10 @@ aarch64-*-redox*)
i[34567]86-*-redox*)
tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h redox.h newlib-stdint.h"
;;
riscv64*-*-redox*)
tm_file="${tm_file} dbxelf.h elfos.h riscv/elf.h redox.h newlib-stdint.h"
tmake_file="${tmake_file} ${cpu_type}/t-riscv"
;;
x86_64-*-redox*)
tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h i386/x86-64.h redox.h newlib-stdint.h"
;;
......
......@@ -299,4 +299,7 @@ case ${host} in
aarch64-*-redox*)
host_xm_file=aarch64/xm-redox.h
;;
riscv64*-*-redox*)
host_xm_file=riscv/xm-redox.h
;;
esac
......@@ -679,6 +679,12 @@ aarch64-*-redox*)
tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
md_unwind_header=aarch64/aarch64-unwind.h
;;
riscv64*-*-redox*)
extra_parts="$extra_parts crtbegin.o crtbeginS.o crtend.o crtendS.o crti.o crtn.o"
tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic"
tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
md_unwind_header=riscv64/riscv64-unwind.h
;;
i[34567]86-pc-msdosdjgpp*)
;;
i[34567]86-*-lynxos*)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment