Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitar Dimitrov <dimitar@dinux.eu>2018-03-11 23:23:26 +0300
committerJeff Johnston <jjohnstn@redhat.com>2019-10-31 21:47:19 +0300
commit0c7734673a981e81a88235851be219ce23fd242b (patch)
treefaa1780561efd74c106f9838d20164a5008b3b08 /newlib/configure.host
parent0574317971f53d4471ef92aca4c57315bf777358 (diff)
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 eee630b34..517dc8255 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
;;