Message ID | CAFvk=0v9O7srRKTPTEzov6XXcW3_pvc47jHMyk83N=CMKnBhGA@mail.gmail.com |
---|---|
State | New, archived |
Headers |
Received: (qmail 123465 invoked by alias); 9 May 2016 08:47:14 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: <gdb-patches.sourceware.org> List-Unsubscribe: <mailto:gdb-patches-unsubscribe-##L=##H@sourceware.org> List-Subscribe: <mailto:gdb-patches-subscribe@sourceware.org> List-Archive: <http://sourceware.org/ml/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-help@sourceware.org>, <http://sourceware.org/ml/#faqs> Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 123411 invoked by uid 89); 9 May 2016 08:47:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.6 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=rtems, theory, profits, RTEMS X-HELO: mail-lf0-f52.google.com Received: from mail-lf0-f52.google.com (HELO mail-lf0-f52.google.com) (209.85.215.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 09 May 2016 08:46:59 +0000 Received: by mail-lf0-f52.google.com with SMTP id y84so192786173lfc.0 for <gdb-patches@sourceware.org>; Mon, 09 May 2016 01:46:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=LGx1RSQzFZVwlNjVEPRfEidrl1BO6RCksLvkwuOPwYs=; b=CEewdShD9Z/MR3bjSsPGokByfJyPKNqh2I/h8jrvqXBss6TnTMhyLi6c/r/EJ1Qp7z Fo9npoNU0PZrFngPxg5YqLYrV0G/Ull5zQL7Xw9Mbo1UBn0J1dB9xMrPEfKw3fg9XYvh 6Dow3xUBEnR/pH95mTrV/GuAFYkwcGFiY5eG6a45BZB/Sqqw/JSaN0xXKGSq88R6W/wN 9ZTWAtnvlwzMpvnrFE2UIAwxmtF3OeXsOzkguLshnbP1BHgFhPnMUvQUQjXU/RVrhliF NukKjDDnoKTT1qVRAtSt0Av7L4XlViEyAHqQx+5O1tINX8DdMY32vdobxQ9VHTLJJeQ1 G8Jw== X-Gm-Message-State: AOPr4FUov0scaDsA6yNr3R4BL/7SKjrSm+avvowgQNvTLQZUZVGKApGA5zSzxFFu/T7s3vIp78824FpY7I8RCQ== MIME-Version: 1.0 X-Received: by 10.112.136.194 with SMTP id qc2mr14719791lbb.60.1462783615556; Mon, 09 May 2016 01:46:55 -0700 (PDT) Received: by 10.112.158.39 with HTTP; Mon, 9 May 2016 01:46:55 -0700 (PDT) In-Reply-To: <716075590.11881620.1462569935686.JavaMail.zimbra@redhat.com> References: <1462436036-13578-1-git-send-email-jakub.sejdak@phoesys.com> <716075590.11881620.1462569935686.JavaMail.zimbra@redhat.com> Date: Mon, 9 May 2016 10:46:55 +0200 Message-ID: <CAFvk=0v9O7srRKTPTEzov6XXcW3_pvc47jHMyk83N=CMKnBhGA@mail.gmail.com> Subject: Re: [PATCH 1/2] Add port for Phoenix-RTOS in common configure files. From: Jakub Sejdak <jakub.sejdak@phoesys.com> To: Jeff Johnston <jjohnstn@redhat.com> Cc: newlib@sourceware.org, binutils@sourceware.org, gdb-patches@sourceware.org Content-Type: multipart/mixed; boundary=089e01160246ca21fd053264d94a |
Commit Message
Jakub Sejdak
May 9, 2016, 8:46 a.m. UTC
Hi Jeff, It seems, that git-send-email replaced tabs with spaces in mail body and that caused errors, because after regeneration there was no other changes. I attached patch once again (created from fresh newlib, just in case) and added notification to proper mailing lists. Thanks, Jakub 2016-05-06 23:25 GMT+02:00 Jeff Johnston <jjohnstn@redhat.com>: > Jakub, > > Please read the top-level MAINTAINERS file for files that need to > be submitted to other mailing lists. For example, configure, config.sub, configure.ac > > Please also update your current newlib and generate a patch that > you can attach (I get all kinds of rejections trying to copy the > data out of the mail). I have already committed your 2nd patch > which applied fine. > > Thanks, > > -- Jeff J. > > ----- Original Message ----- >> From: Kuba Sejdak <jakub.sejdak@phoesys.com> >> >> --- >> COPYING.NEWLIB | 26 ++++++++++++++++++++++++++ >> config.sub | 3 +++ >> configure | 6 ++++++ >> newlib/configure.host | 10 ++++++++++ >> newlib/libc/sys/configure | 3 +++ >> newlib/libc/sys/configure.in | 1 + >> 6 files changed, 49 insertions(+) >> >> diff --git a/COPYING.NEWLIB b/COPYING.NEWLIB >> index 24e7c73..e7e1f8a 100644 >> --- a/COPYING.NEWLIB >> +++ b/COPYING.NEWLIB >> @@ -1023,3 +1023,29 @@ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING >> NEGLIGENCE OR OTHERWISE) >> ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE >> POSSIBILITY OF SUCH DAMAGE. >> >> +(45) Phoenix Systems - Phoenix-RTOS targets >> + >> +Copyright (c) 2016 Phoenix Systems >> +All rights reserved. >> + >> +Redistribution and use in source and binary forms, with or without >> +modification, are permitted provided that the following conditions >> +are met: >> +1. Redistributions of source code must retain the above copyright >> + notice, this list of conditions and the following disclaimer. >> +2. Redistributions in binary form must reproduce the above copyright >> + notice, this list of conditions and the following disclaimer in the >> + documentation and/or other materials provided with the distribution. >> + >> +THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND >> +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE >> +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE >> +ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE >> +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL >> +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS >> +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) >> +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT >> +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY >> +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF >> +SUCH DAMAGE. >> + >> 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.7.4 >> >>
Comments
I don't get it why was the attachement stripped from previous mail. Here is link to FTP with this patch: http://files.phoesys.com/newlib/0001-Add-port-for-Phoenix-RTOS-in-common-configure-files.patch Thanks, Jakub 2016-05-09 10:46 GMT+02:00 Jakub Sejdak <jakub.sejdak@phoesys.com>: > Hi Jeff, > > It seems, that git-send-email replaced tabs with spaces in mail body > and that caused errors, because after regeneration there was no other > changes. > I attached patch once again (created from fresh newlib, just in case) > and added notification to proper mailing lists. > > Thanks, > Jakub > > 2016-05-06 23:25 GMT+02:00 Jeff Johnston <jjohnstn@redhat.com>: >> Jakub, >> >> Please read the top-level MAINTAINERS file for files that need to >> be submitted to other mailing lists. For example, configure, config.sub, configure.ac >> >> Please also update your current newlib and generate a patch that >> you can attach (I get all kinds of rejections trying to copy the >> data out of the mail). I have already committed your 2nd patch >> which applied fine. >> >> Thanks, >> >> -- Jeff J. >> >> ----- Original Message ----- >>> From: Kuba Sejdak <jakub.sejdak@phoesys.com> >>> >>> --- >>> COPYING.NEWLIB | 26 ++++++++++++++++++++++++++ >>> config.sub | 3 +++ >>> configure | 6 ++++++ >>> newlib/configure.host | 10 ++++++++++ >>> newlib/libc/sys/configure | 3 +++ >>> newlib/libc/sys/configure.in | 1 + >>> 6 files changed, 49 insertions(+) >>> >>> diff --git a/COPYING.NEWLIB b/COPYING.NEWLIB >>> index 24e7c73..e7e1f8a 100644 >>> --- a/COPYING.NEWLIB >>> +++ b/COPYING.NEWLIB >>> @@ -1023,3 +1023,29 @@ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING >>> NEGLIGENCE OR OTHERWISE) >>> ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE >>> POSSIBILITY OF SUCH DAMAGE. >>> >>> +(45) Phoenix Systems - Phoenix-RTOS targets >>> + >>> +Copyright (c) 2016 Phoenix Systems >>> +All rights reserved. >>> + >>> +Redistribution and use in source and binary forms, with or without >>> +modification, are permitted provided that the following conditions >>> +are met: >>> +1. Redistributions of source code must retain the above copyright >>> + notice, this list of conditions and the following disclaimer. >>> +2. Redistributions in binary form must reproduce the above copyright >>> + notice, this list of conditions and the following disclaimer in the >>> + documentation and/or other materials provided with the distribution. >>> + >>> +THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND >>> +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE >>> +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE >>> +ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE >>> +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL >>> +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS >>> +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) >>> +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT >>> +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY >>> +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF >>> +SUCH DAMAGE. >>> + >>> 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.7.4 >>> >>>
Hi Jakub, One minor comment. I think you might want to follow rtems and cygwin and use * after phoenix everywhere to allow you to add a version specifier like rtems does. (e.g. configure --target=sparc-rtems4.8) If you are ok with that, I'll just add it to configure.host for you and check the changes in. -- Jeff J. ----- Original Message ----- > I don't get it why was the attachement stripped from previous mail. > Here is link to FTP with this patch: > > http://files.phoesys.com/newlib/0001-Add-port-for-Phoenix-RTOS-in-common-configure-files.patch > > Thanks, > Jakub > > 2016-05-09 10:46 GMT+02:00 Jakub Sejdak <jakub.sejdak@phoesys.com>: > > Hi Jeff, > > > > It seems, that git-send-email replaced tabs with spaces in mail body > > and that caused errors, because after regeneration there was no other > > changes. > > I attached patch once again (created from fresh newlib, just in case) > > and added notification to proper mailing lists. > > > > Thanks, > > Jakub > > > > 2016-05-06 23:25 GMT+02:00 Jeff Johnston <jjohnstn@redhat.com>: > >> Jakub, > >> > >> Please read the top-level MAINTAINERS file for files that need to > >> be submitted to other mailing lists. For example, configure, config.sub, > >> configure.ac > >> > >> Please also update your current newlib and generate a patch that > >> you can attach (I get all kinds of rejections trying to copy the > >> data out of the mail). I have already committed your 2nd patch > >> which applied fine. > >> > >> Thanks, > >> > >> -- Jeff J. > >> > >> ----- Original Message ----- > >>> From: Kuba Sejdak <jakub.sejdak@phoesys.com> > >>> > >>> --- > >>> COPYING.NEWLIB | 26 ++++++++++++++++++++++++++ > >>> config.sub | 3 +++ > >>> configure | 6 ++++++ > >>> newlib/configure.host | 10 ++++++++++ > >>> newlib/libc/sys/configure | 3 +++ > >>> newlib/libc/sys/configure.in | 1 + > >>> 6 files changed, 49 insertions(+) > >>> > >>> diff --git a/COPYING.NEWLIB b/COPYING.NEWLIB > >>> index 24e7c73..e7e1f8a 100644 > >>> --- a/COPYING.NEWLIB > >>> +++ b/COPYING.NEWLIB > >>> @@ -1023,3 +1023,29 @@ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING > >>> NEGLIGENCE OR OTHERWISE) > >>> ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF > >>> THE > >>> POSSIBILITY OF SUCH DAMAGE. > >>> > >>> +(45) Phoenix Systems - Phoenix-RTOS targets > >>> + > >>> +Copyright (c) 2016 Phoenix Systems > >>> +All rights reserved. > >>> + > >>> +Redistribution and use in source and binary forms, with or without > >>> +modification, are permitted provided that the following conditions > >>> +are met: > >>> +1. Redistributions of source code must retain the above copyright > >>> + notice, this list of conditions and the following disclaimer. > >>> +2. Redistributions in binary form must reproduce the above copyright > >>> + notice, this list of conditions and the following disclaimer in the > >>> + documentation and/or other materials provided with the distribution. > >>> + > >>> +THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND > >>> +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE > >>> +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR > >>> PURPOSE > >>> +ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE > >>> +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR > >>> CONSEQUENTIAL > >>> +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS > >>> +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) > >>> +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, > >>> STRICT > >>> +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY > >>> WAY > >>> +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF > >>> +SUCH DAMAGE. > >>> + > >>> 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.7.4 > >>> > >>> >
Hi Jeff, Actually noone ever thought about it on our side. If this won't break building without specifiing any version (until we decide how will it work for us and how to manage it) then I'm ok with it. Thank you for your big help. Regards, Jakub 2016-05-09 20:20 GMT+02:00 Jeff Johnston <jjohnstn@redhat.com>: > Hi Jakub, > > One minor comment. I think you might want to follow rtems and cygwin and > use * after phoenix everywhere to allow you to add a version specifier like > rtems does. > > (e.g. configure --target=sparc-rtems4.8) > > If you are ok with that, I'll just add it to configure.host for you and check the > changes in. > > -- Jeff J. > > ----- Original Message ----- >> I don't get it why was the attachement stripped from previous mail. >> Here is link to FTP with this patch: >> >> http://files.phoesys.com/newlib/0001-Add-port-for-Phoenix-RTOS-in-common-configure-files.patch >> >> Thanks, >> Jakub >> >> 2016-05-09 10:46 GMT+02:00 Jakub Sejdak <jakub.sejdak@phoesys.com>: >> > Hi Jeff, >> > >> > It seems, that git-send-email replaced tabs with spaces in mail body >> > and that caused errors, because after regeneration there was no other >> > changes. >> > I attached patch once again (created from fresh newlib, just in case) >> > and added notification to proper mailing lists. >> > >> > Thanks, >> > Jakub >> > >> > 2016-05-06 23:25 GMT+02:00 Jeff Johnston <jjohnstn@redhat.com>: >> >> Jakub, >> >> >> >> Please read the top-level MAINTAINERS file for files that need to >> >> be submitted to other mailing lists. For example, configure, config.sub, >> >> configure.ac >> >> >> >> Please also update your current newlib and generate a patch that >> >> you can attach (I get all kinds of rejections trying to copy the >> >> data out of the mail). I have already committed your 2nd patch >> >> which applied fine. >> >> >> >> Thanks, >> >> >> >> -- Jeff J. >> >> >> >> ----- Original Message ----- >> >>> From: Kuba Sejdak <jakub.sejdak@phoesys.com> >> >>> >> >>> --- >> >>> COPYING.NEWLIB | 26 ++++++++++++++++++++++++++ >> >>> config.sub | 3 +++ >> >>> configure | 6 ++++++ >> >>> newlib/configure.host | 10 ++++++++++ >> >>> newlib/libc/sys/configure | 3 +++ >> >>> newlib/libc/sys/configure.in | 1 + >> >>> 6 files changed, 49 insertions(+) >> >>> >> >>> diff --git a/COPYING.NEWLIB b/COPYING.NEWLIB >> >>> index 24e7c73..e7e1f8a 100644 >> >>> --- a/COPYING.NEWLIB >> >>> +++ b/COPYING.NEWLIB >> >>> @@ -1023,3 +1023,29 @@ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING >> >>> NEGLIGENCE OR OTHERWISE) >> >>> ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF >> >>> THE >> >>> POSSIBILITY OF SUCH DAMAGE. >> >>> >> >>> +(45) Phoenix Systems - Phoenix-RTOS targets >> >>> + >> >>> +Copyright (c) 2016 Phoenix Systems >> >>> +All rights reserved. >> >>> + >> >>> +Redistribution and use in source and binary forms, with or without >> >>> +modification, are permitted provided that the following conditions >> >>> +are met: >> >>> +1. Redistributions of source code must retain the above copyright >> >>> + notice, this list of conditions and the following disclaimer. >> >>> +2. Redistributions in binary form must reproduce the above copyright >> >>> + notice, this list of conditions and the following disclaimer in the >> >>> + documentation and/or other materials provided with the distribution. >> >>> + >> >>> +THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND >> >>> +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE >> >>> +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR >> >>> PURPOSE >> >>> +ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE >> >>> +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR >> >>> CONSEQUENTIAL >> >>> +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS >> >>> +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) >> >>> +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, >> >>> STRICT >> >>> +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY >> >>> WAY >> >>> +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF >> >>> +SUCH DAMAGE. >> >>> + >> >>> 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.7.4 >> >>> >> >>> >>
Also how about making a snapshot release after this commit? I think there is no urgent on-going work in newlib, that could hold that and also it will help our clients get the right version of library. Thanks, Jakub 2016-05-09 21:19 GMT+02:00 Jakub Sejdak <jakub.sejdak@phoesys.com>: > Hi Jeff, > > Actually noone ever thought about it on our side. If this won't break > building without specifiing any version (until we decide how will it > work for us and how to manage it) then I'm ok with it. > Thank you for your big help. > > Regards, > Jakub > > 2016-05-09 20:20 GMT+02:00 Jeff Johnston <jjohnstn@redhat.com>: >> Hi Jakub, >> >> One minor comment. I think you might want to follow rtems and cygwin and >> use * after phoenix everywhere to allow you to add a version specifier like >> rtems does. >> >> (e.g. configure --target=sparc-rtems4.8) >> >> If you are ok with that, I'll just add it to configure.host for you and check the >> changes in. >> >> -- Jeff J. >> >> ----- Original Message ----- >>> I don't get it why was the attachement stripped from previous mail. >>> Here is link to FTP with this patch: >>> >>> http://files.phoesys.com/newlib/0001-Add-port-for-Phoenix-RTOS-in-common-configure-files.patch >>> >>> Thanks, >>> Jakub >>> >>> 2016-05-09 10:46 GMT+02:00 Jakub Sejdak <jakub.sejdak@phoesys.com>: >>> > Hi Jeff, >>> > >>> > It seems, that git-send-email replaced tabs with spaces in mail body >>> > and that caused errors, because after regeneration there was no other >>> > changes. >>> > I attached patch once again (created from fresh newlib, just in case) >>> > and added notification to proper mailing lists. >>> > >>> > Thanks, >>> > Jakub >>> > >>> > 2016-05-06 23:25 GMT+02:00 Jeff Johnston <jjohnstn@redhat.com>: >>> >> Jakub, >>> >> >>> >> Please read the top-level MAINTAINERS file for files that need to >>> >> be submitted to other mailing lists. For example, configure, config.sub, >>> >> configure.ac >>> >> >>> >> Please also update your current newlib and generate a patch that >>> >> you can attach (I get all kinds of rejections trying to copy the >>> >> data out of the mail). I have already committed your 2nd patch >>> >> which applied fine. >>> >> >>> >> Thanks, >>> >> >>> >> -- Jeff J. >>> >> >>> >> ----- Original Message ----- >>> >>> From: Kuba Sejdak <jakub.sejdak@phoesys.com> >>> >>> >>> >>> --- >>> >>> COPYING.NEWLIB | 26 ++++++++++++++++++++++++++ >>> >>> config.sub | 3 +++ >>> >>> configure | 6 ++++++ >>> >>> newlib/configure.host | 10 ++++++++++ >>> >>> newlib/libc/sys/configure | 3 +++ >>> >>> newlib/libc/sys/configure.in | 1 + >>> >>> 6 files changed, 49 insertions(+) >>> >>> >>> >>> diff --git a/COPYING.NEWLIB b/COPYING.NEWLIB >>> >>> index 24e7c73..e7e1f8a 100644 >>> >>> --- a/COPYING.NEWLIB >>> >>> +++ b/COPYING.NEWLIB >>> >>> @@ -1023,3 +1023,29 @@ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING >>> >>> NEGLIGENCE OR OTHERWISE) >>> >>> ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF >>> >>> THE >>> >>> POSSIBILITY OF SUCH DAMAGE. >>> >>> >>> >>> +(45) Phoenix Systems - Phoenix-RTOS targets >>> >>> + >>> >>> +Copyright (c) 2016 Phoenix Systems >>> >>> +All rights reserved. >>> >>> + >>> >>> +Redistribution and use in source and binary forms, with or without >>> >>> +modification, are permitted provided that the following conditions >>> >>> +are met: >>> >>> +1. Redistributions of source code must retain the above copyright >>> >>> + notice, this list of conditions and the following disclaimer. >>> >>> +2. Redistributions in binary form must reproduce the above copyright >>> >>> + notice, this list of conditions and the following disclaimer in the >>> >>> + documentation and/or other materials provided with the distribution. >>> >>> + >>> >>> +THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND >>> >>> +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE >>> >>> +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR >>> >>> PURPOSE >>> >>> +ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE >>> >>> +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR >>> >>> CONSEQUENTIAL >>> >>> +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS >>> >>> +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) >>> >>> +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, >>> >>> STRICT >>> >>> +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY >>> >>> WAY >>> >>> +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF >>> >>> +SUCH DAMAGE. >>> >>> + >>> >>> 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.7.4 >>> >>> >>> >>> >>>
Ok, done. Newlib bits checked in. You will have to post changes for top-level configure.ac (instead of configure directly) and config.sub to the appropriate mailing lists. -- Jeff J. ----- Original Message ----- > Hi Jeff, > > Actually noone ever thought about it on our side. If this won't break > building without specifiing any version (until we decide how will it > work for us and how to manage it) then I'm ok with it. > Thank you for your big help. > > Regards, > Jakub > > 2016-05-09 20:20 GMT+02:00 Jeff Johnston <jjohnstn@redhat.com>: > > Hi Jakub, > > > > One minor comment. I think you might want to follow rtems and cygwin and > > use * after phoenix everywhere to allow you to add a version specifier like > > rtems does. > > > > (e.g. configure --target=sparc-rtems4.8) > > > > If you are ok with that, I'll just add it to configure.host for you and > > check the > > changes in. > > > > -- Jeff J. > > > > ----- Original Message ----- > >> I don't get it why was the attachement stripped from previous mail. > >> Here is link to FTP with this patch: > >> > >> http://files.phoesys.com/newlib/0001-Add-port-for-Phoenix-RTOS-in-common-configure-files.patch > >> > >> Thanks, > >> Jakub > >> > >> 2016-05-09 10:46 GMT+02:00 Jakub Sejdak <jakub.sejdak@phoesys.com>: > >> > Hi Jeff, > >> > > >> > It seems, that git-send-email replaced tabs with spaces in mail body > >> > and that caused errors, because after regeneration there was no other > >> > changes. > >> > I attached patch once again (created from fresh newlib, just in case) > >> > and added notification to proper mailing lists. > >> > > >> > Thanks, > >> > Jakub > >> > > >> > 2016-05-06 23:25 GMT+02:00 Jeff Johnston <jjohnstn@redhat.com>: > >> >> Jakub, > >> >> > >> >> Please read the top-level MAINTAINERS file for files that need to > >> >> be submitted to other mailing lists. For example, configure, > >> >> config.sub, > >> >> configure.ac > >> >> > >> >> Please also update your current newlib and generate a patch that > >> >> you can attach (I get all kinds of rejections trying to copy the > >> >> data out of the mail). I have already committed your 2nd patch > >> >> which applied fine. > >> >> > >> >> Thanks, > >> >> > >> >> -- Jeff J. > >> >> > >> >> ----- Original Message ----- > >> >>> From: Kuba Sejdak <jakub.sejdak@phoesys.com> > >> >>> > >> >>> --- > >> >>> COPYING.NEWLIB | 26 ++++++++++++++++++++++++++ > >> >>> config.sub | 3 +++ > >> >>> configure | 6 ++++++ > >> >>> newlib/configure.host | 10 ++++++++++ > >> >>> newlib/libc/sys/configure | 3 +++ > >> >>> newlib/libc/sys/configure.in | 1 + > >> >>> 6 files changed, 49 insertions(+) > >> >>> > >> >>> diff --git a/COPYING.NEWLIB b/COPYING.NEWLIB > >> >>> index 24e7c73..e7e1f8a 100644 > >> >>> --- a/COPYING.NEWLIB > >> >>> +++ b/COPYING.NEWLIB > >> >>> @@ -1023,3 +1023,29 @@ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING > >> >>> NEGLIGENCE OR OTHERWISE) > >> >>> ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED > >> >>> OF > >> >>> THE > >> >>> POSSIBILITY OF SUCH DAMAGE. > >> >>> > >> >>> +(45) Phoenix Systems - Phoenix-RTOS targets > >> >>> + > >> >>> +Copyright (c) 2016 Phoenix Systems > >> >>> +All rights reserved. > >> >>> + > >> >>> +Redistribution and use in source and binary forms, with or without > >> >>> +modification, are permitted provided that the following conditions > >> >>> +are met: > >> >>> +1. Redistributions of source code must retain the above copyright > >> >>> + notice, this list of conditions and the following disclaimer. > >> >>> +2. Redistributions in binary form must reproduce the above copyright > >> >>> + notice, this list of conditions and the following disclaimer in > >> >>> the > >> >>> + documentation and/or other materials provided with the > >> >>> distribution. > >> >>> + > >> >>> +THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' > >> >>> AND > >> >>> +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE > >> >>> +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR > >> >>> PURPOSE > >> >>> +ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE > >> >>> LIABLE > >> >>> +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR > >> >>> CONSEQUENTIAL > >> >>> +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE > >> >>> GOODS > >> >>> +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) > >> >>> +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, > >> >>> STRICT > >> >>> +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY > >> >>> WAY > >> >>> +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY > >> >>> OF > >> >>> +SUCH DAMAGE. > >> >>> + > >> >>> 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.7.4 > >> >>> > >> >>> > >> >
I've just applied both patches as you mentioned above. config.sub is already applied in GNU config repo, so it can be synced in newlib. 2016-05-09 21:34 GMT+02:00 Jeff Johnston <jjohnstn@redhat.com>: > Ok, done. Newlib bits checked in. You will have to post changes for top-level configure.ac (instead of configure > directly) and config.sub to the appropriate mailing lists. > > -- Jeff J. > > ----- Original Message ----- >> Hi Jeff, >> >> Actually noone ever thought about it on our side. If this won't break >> building without specifiing any version (until we decide how will it >> work for us and how to manage it) then I'm ok with it. >> Thank you for your big help. >> >> Regards, >> Jakub >> >> 2016-05-09 20:20 GMT+02:00 Jeff Johnston <jjohnstn@redhat.com>: >> > Hi Jakub, >> > >> > One minor comment. I think you might want to follow rtems and cygwin and >> > use * after phoenix everywhere to allow you to add a version specifier like >> > rtems does. >> > >> > (e.g. configure --target=sparc-rtems4.8) >> > >> > If you are ok with that, I'll just add it to configure.host for you and >> > check the >> > changes in. >> > >> > -- Jeff J. >> > >> > ----- Original Message ----- >> >> I don't get it why was the attachement stripped from previous mail. >> >> Here is link to FTP with this patch: >> >> >> >> http://files.phoesys.com/newlib/0001-Add-port-for-Phoenix-RTOS-in-common-configure-files.patch >> >> >> >> Thanks, >> >> Jakub >> >> >> >> 2016-05-09 10:46 GMT+02:00 Jakub Sejdak <jakub.sejdak@phoesys.com>: >> >> > Hi Jeff, >> >> > >> >> > It seems, that git-send-email replaced tabs with spaces in mail body >> >> > and that caused errors, because after regeneration there was no other >> >> > changes. >> >> > I attached patch once again (created from fresh newlib, just in case) >> >> > and added notification to proper mailing lists. >> >> > >> >> > Thanks, >> >> > Jakub >> >> > >> >> > 2016-05-06 23:25 GMT+02:00 Jeff Johnston <jjohnstn@redhat.com>: >> >> >> Jakub, >> >> >> >> >> >> Please read the top-level MAINTAINERS file for files that need to >> >> >> be submitted to other mailing lists. For example, configure, >> >> >> config.sub, >> >> >> configure.ac >> >> >> >> >> >> Please also update your current newlib and generate a patch that >> >> >> you can attach (I get all kinds of rejections trying to copy the >> >> >> data out of the mail). I have already committed your 2nd patch >> >> >> which applied fine. >> >> >> >> >> >> Thanks, >> >> >> >> >> >> -- Jeff J. >> >> >> >> >> >> ----- Original Message ----- >> >> >>> From: Kuba Sejdak <jakub.sejdak@phoesys.com> >> >> >>> >> >> >>> --- >> >> >>> COPYING.NEWLIB | 26 ++++++++++++++++++++++++++ >> >> >>> config.sub | 3 +++ >> >> >>> configure | 6 ++++++ >> >> >>> newlib/configure.host | 10 ++++++++++ >> >> >>> newlib/libc/sys/configure | 3 +++ >> >> >>> newlib/libc/sys/configure.in | 1 + >> >> >>> 6 files changed, 49 insertions(+) >> >> >>> >> >> >>> diff --git a/COPYING.NEWLIB b/COPYING.NEWLIB >> >> >>> index 24e7c73..e7e1f8a 100644 >> >> >>> --- a/COPYING.NEWLIB >> >> >>> +++ b/COPYING.NEWLIB >> >> >>> @@ -1023,3 +1023,29 @@ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING >> >> >>> NEGLIGENCE OR OTHERWISE) >> >> >>> ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED >> >> >>> OF >> >> >>> THE >> >> >>> POSSIBILITY OF SUCH DAMAGE. >> >> >>> >> >> >>> +(45) Phoenix Systems - Phoenix-RTOS targets >> >> >>> + >> >> >>> +Copyright (c) 2016 Phoenix Systems >> >> >>> +All rights reserved. >> >> >>> + >> >> >>> +Redistribution and use in source and binary forms, with or without >> >> >>> +modification, are permitted provided that the following conditions >> >> >>> +are met: >> >> >>> +1. Redistributions of source code must retain the above copyright >> >> >>> + notice, this list of conditions and the following disclaimer. >> >> >>> +2. Redistributions in binary form must reproduce the above copyright >> >> >>> + notice, this list of conditions and the following disclaimer in >> >> >>> the >> >> >>> + documentation and/or other materials provided with the >> >> >>> distribution. >> >> >>> + >> >> >>> +THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' >> >> >>> AND >> >> >>> +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE >> >> >>> +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR >> >> >>> PURPOSE >> >> >>> +ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE >> >> >>> LIABLE >> >> >>> +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR >> >> >>> CONSEQUENTIAL >> >> >>> +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE >> >> >>> GOODS >> >> >>> +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) >> >> >>> +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, >> >> >>> STRICT >> >> >>> +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY >> >> >>> WAY >> >> >>> +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY >> >> >>> OF >> >> >>> +SUCH DAMAGE. >> >> >>> + >> >> >>> 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.7.4 >> >> >>> >> >> >>> >> >> >>
From 06837ab3c1fb14c55a1c1837cf883410d9cc516c Mon Sep 17 00:00:00 2001 From: Kuba Sejdak <jakub.sejdak@phoesys.com> Date: Mon, 9 May 2016 10:37:26 +0200 Subject: [PATCH] Add port for Phoenix-RTOS in common configure files. --- COPYING.NEWLIB | 26 ++++++++++++++++++++++++++ config.sub | 3 +++ configure | 6 ++++++ newlib/configure.host | 10 ++++++++++ newlib/libc/sys/configure | 3 +++ newlib/libc/sys/configure.in | 1 + 6 files changed, 49 insertions(+) diff --git a/COPYING.NEWLIB b/COPYING.NEWLIB index 24e7c73..e7e1f8a 100644 --- a/COPYING.NEWLIB +++ b/COPYING.NEWLIB @@ -1023,3 +1023,29 @@ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +(45) Phoenix Systems - Phoenix-RTOS targets + +Copyright (c) 2016 Phoenix Systems +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE. + 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.7.4