diff options
author | Kito Cheng <kito@andestech.com> | 2017-07-27 11:44:22 +0300 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2017-08-17 01:00:58 +0300 |
commit | 363dbb9e44d0101f29ec34cadd001893daab3fc6 (patch) | |
tree | 8c39ab14c5b090653f88bd4624b593ef4819e059 /newlib/configure.host | |
parent | 7e69f983a46dfb9ae9c09e30fc20ad6a91f0ddc4 (diff) |
Add RISC-V port for newlib
Contributor list:
- Andrew Waterman <andrew@sifive.com>
- Palmer Dabbelt <palmer@dabbelt.com>
- Kito Cheng <kito.cheng@gmail.com>
- Scott Beamer <sbeamer@eecs.berkeley.edu>
Diffstat (limited to 'newlib/configure.host')
-rw-r--r-- | newlib/configure.host | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/newlib/configure.host b/newlib/configure.host index d47120089..3d967a11b 100644 --- a/newlib/configure.host +++ b/newlib/configure.host @@ -255,6 +255,12 @@ case "${host_cpu}" in powerpc*) machine_dir=powerpc ;; + riscv*) + libm_machine_dir=riscv + machine_dir=riscv + newlib_cflags="${newlib_cflags}" + default_newlib_atexit_dynamic_alloc="no" + ;; rl78) machine_dir=rl78 newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED -DSMALL_MEMORY" @@ -806,6 +812,9 @@ case "${host}" in newlib_cflags="${newlib_cflags} -DHAVE_OPENDIR -DHAVE_RENAME -DHAVE_FCNTL -D_NO_POSIX_SPAWN" syscall_dir=syscalls ;; + riscv*-*-*) + syscall_dir=syscalls + ;; sh*-*-*) default_newlib_io_long_long="yes" syscall_dir=syscalls |