aboutsummaryrefslogtreecommitdiff
path: root/newlib/configure.host
diff options
context:
space:
mode:
authorDimitar Dimitrov <dimitar@dinux.eu>2018-03-11 22:23:26 +0200
committerJeff Johnston <jjohnstn@redhat.com>2019-10-31 14:47:19 -0400
commit0c7734673a981e81a88235851be219ce23fd242b (patch)
treefaa1780561efd74c106f9838d20164a5008b3b08 /newlib/configure.host
parent0574317971f53d4471ef92aca4c57315bf777358 (diff)
downloadnewlib-0c7734673a981e81a88235851be219ce23fd242b.zip
newlib-0c7734673a981e81a88235851be219ce23fd242b.tar.gz
newlib-0c7734673a981e81a88235851be219ce23fd242b.tar.bz2
Initial PRU port for libgloss and newlib
Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
Diffstat (limited to 'newlib/configure.host')
-rw-r--r--newlib/configure.host14
1 files changed, 13 insertions, 1 deletions
diff --git a/newlib/configure.host b/newlib/configure.host
index eee630b..517dc82 100644
--- a/newlib/configure.host
+++ b/newlib/configure.host
@@ -87,7 +87,7 @@ case "${target_optspace}:${host}" in
yes:*)
newlib_cflags="${newlib_cflags} -Os"
;;
- :m32r-* | :d10v-* | :d30v-* | :avr-* | :m32c-* | :msp430*-* | :nds32* | :rl78-* )
+ :m32r-* | :d10v-* | :d30v-* | :avr-* | :m32c-* | :msp430*-* | :nds32* | :pru-* | :rl78-* )
newlib_cflags="${newlib_cflags} -Os"
;;
no:* | :*)
@@ -291,6 +291,14 @@ case "${host_cpu}" in
powerpc*)
machine_dir=powerpc
;;
+ pru*)
+ newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED"
+ newlib_cflags="${newlib_cflags} -DNO_EXEC"
+ newlib_cflags="${newlib_cflags} -DSMALL_MEMORY"
+ default_newlib_nano_malloc="yes"
+ default_newlib_atexit_dynamic_alloc="no"
+ machine_dir=pru
+ ;;
riscv*)
libm_machine_dir=riscv
machine_dir=riscv
@@ -857,6 +865,10 @@ newlib_cflags="${newlib_cflags} -DCLOCK_PROVIDED -DMALLOC_PROVIDED -DEXIT_PROVID
newlib_cflags="${newlib_cflags} -DHAVE_OPENDIR -DHAVE_RENAME -DHAVE_FCNTL -D_NO_POSIX_SPAWN"
syscall_dir=syscalls
;;
+ pru*)
+ syscall_dir=syscalls
+ newlib_cflags="${newlib_cflags} -DSMALL_MEMORY -D_REENT_SMALL"
+ ;;
riscv*-*-*)
syscall_dir=syscalls
;;