This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH 001/114] Add initial port for Phoenix-RTOS.
- From: Jakub Sejdak <jakub dot sejdak at phoesys dot com>
- To: newlib at sourceware dot org
- Cc: Kuba Sejdak <jakub dot sejdak at phoesys dot com>
- Date: Mon, 11 Apr 2016 12:20:19 +0200
- Subject: [PATCH 001/114] Add initial port for Phoenix-RTOS.
- Authentication-results: sourceware.org; auth=none
From: Kuba Sejdak <jakub.sejdak@phoesys.com>
---
config.sub | 3 +++
configure | 6 ++++++
newlib/configure.host | 10 ++++++++++
newlib/libc/sys/configure | 3 +++
newlib/libc/sys/configure.in | 1 +
5 files changed, 23 insertions(+)
diff --git a/config.sub b/config.sub
index da6d1b6..f7adbde 100755
--- a/config.sub
+++ b/config.sub
@@ -1531,6 +1531,9 @@ case $os in
;;
-nacl*)
;;
+ -phoenix)
+ os=-phoenix
+ ;;
-none)
;;
*)
diff --git a/configure b/configure
index 35f231e..90e3e68 100755
--- a/configure
+++ b/configure
@@ -3673,6 +3673,9 @@ case "${target}" in
*-*-netware*)
noconfigdirs="$noconfigdirs target-newlib target-libgloss"
;;
+ *-*-phoenix)
+ noconfigdirs="$noconfigdirs target-libgloss"
+ ;;
*-*-tpf*)
noconfigdirs="$noconfigdirs target-newlib target-libgloss"
;;
@@ -3764,6 +3767,9 @@ case "${target}" in
arm-*-pe*)
noconfigdirs="$noconfigdirs target-libgloss"
;;
+ arm-*-phoenix*)
+ noconfigdirs="$noconfigdirs target-libgloss"
+ ;;
arm-*-riscix*)
noconfigdirs="$noconfigdirs ld target-libgloss"
;;
diff --git a/newlib/configure.host b/newlib/configure.host
index bb163ec..9bc40de 100644
--- a/newlib/configure.host
+++ b/newlib/configure.host
@@ -385,6 +385,11 @@ case "${host}" in
signal_dir=
sys_dir=netware
;;
+ *-*-phoenix)
+ sys_dir=phoenix
+ posix_dir=posix
+ unix_dir=unix
+ ;;
*-*-rtems*) # generic RTEMS support
sys_dir=rtems
posix_dir=posix
@@ -578,6 +583,11 @@ case "${host}" in
newlib_cflags="${newlib_cflags} -DHAVE_OPENDIR -DHAVE_RENAME -DSIGNAL_PROVIDED -D_COMPILING_NEWLIB -DHAVE_BLKSIZE -DHAVE_FCNTL -DMALLOC_PROVIDED"
syscall_dir=syscalls
;;
+ *-*-phoenix)
+ newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES -D_COMPILING_NEWLIB -DHAVE_BLKSIZE -DHAVE_NANOSLEEP"
+ default_newlib_io_long_long="yes"
+ syscall_dir=
+ ;;
# RTEMS supplies its own versions of some routines:
# malloc() (reentrant version)
# exit() RTEMS has a "global" reent to flush
diff --git a/newlib/libc/sys/configure b/newlib/libc/sys/configure
index d64b0dd..55c6e13 100755
--- a/newlib/libc/sys/configure
+++ b/newlib/libc/sys/configure
@@ -797,6 +797,7 @@ m88kbug
mmixware
netware
or1k
+phoenix
rdos
rtems
sh
@@ -11828,6 +11829,8 @@ subdirs="$subdirs a29khif"
;;
or1k) subdirs="$subdirs or1k"
;;
+ phoenix) subdirs="$subdirs phoenix"
+ ;;
rdos) subdirs="$subdirs rdos"
;;
rtems) subdirs="$subdirs rtems"
diff --git a/newlib/libc/sys/configure.in b/newlib/libc/sys/configure.in
index b50a6d3..bc6cb88 100644
--- a/newlib/libc/sys/configure.in
+++ b/newlib/libc/sys/configure.in
@@ -34,6 +34,7 @@ if test -n "${sys_dir}"; then
mmixware) AC_CONFIG_SUBDIRS(mmixware) ;;
netware) AC_CONFIG_SUBDIRS(netware) ;;
or1k) AC_CONFIG_SUBDIRS(or1k) ;;
+ phoenix) AC_CONFIG_SUBDIRS(phoenix) ;;
rdos) AC_CONFIG_SUBDIRS(rdos) ;;
rtems) AC_CONFIG_SUBDIRS(rtems) ;;
sh) AC_CONFIG_SUBDIRS(sh) ;;
--
2.5.0