Accepting request 585470 from home:a_faerber:branches:devel:gcc

Update to 2.5.0 and prepare for new targets

OBS-URL: https://build.opensuse.org/request/show/585470
OBS-URL: https://build.opensuse.org/package/show/devel:gcc/newlib?expand=0&rev=5
This commit is contained in:
Andreas Färber 2018-03-11 17:34:01 +00:00 committed by Git OBS Bridge
parent 73cbca6514
commit 152a55f973
9 changed files with 40 additions and 28 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sun Mar 11 16:50:55 UTC 2018 - afaerber@suse.de
- Prepare for %cross_arch with dashes by consistently quoting
- Leave the choice of cross-*-binutils to cross-*-gcc*
- Update to v2.5.0
-------------------------------------------------------------------
Wed Jan 24 09:29:00 UTC 2018 - rguenther@suse.com

View File

@ -19,7 +19,7 @@
%define cross_arch epiphany
Name: cross-%{cross_arch}-newlib-devel
Version: 2.4.0
Version: 2.5.0
Release: 0
Summary: C library intended for use on %{cross_arch} embedded systems
License: BSD-3-Clause and MIT and LGPL-2.0+ and ISC
@ -29,7 +29,6 @@ Source0: ftp://sourceware.org/pub/newlib/newlib-%{version}.tar.gz
Patch1: epiphany-fixes.diff
BuildRequires: cross-%{cross_arch}-binutils
BuildRequires: cross-%{cross_arch}-gcc%{gcc_version}-bootstrap
%if %{suse_version} > 1220
BuildRequires: makeinfo
@ -43,10 +42,10 @@ conglomeration of several library parts, all under free software licenses
that make them easily usable on embedded products.
%define target %{cross_arch}
%if %{cross_arch} == "epiphany" || %{cross_arch} == "rl78" || %{cross_arch} == "rx"
%if "%{cross_arch}" == "epiphany" || "%{cross_arch}" == "rl78" || "%{cross_arch}" == "rx"
%define target %{cross_arch}-elf
%endif
%if %{cross_arch} == "spu"
%if "%{cross_arch}" == "spu"
%define sysroot /usr/spu
%else
%define sysroot %{_prefix}/%{target}/sys-root
@ -61,10 +60,8 @@ mkdir build-dir
cd build-dir
../configure \
--prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} --infodir=%{_infodir} \
--target=%{target} --with-build-sysroot=%{sysroot} \
CC_FOR_TARGET=%{target}-gcc-%{gcc_version} \
CXX_FOR_TARGET=%{target}-g++-%{gcc_version} \
GCC_FOR_TARGET=%{target}-gcc-%{gcc_version}
--target=%{target} \
--with-build-sysroot=%{sysroot}
make %{?_smp_mflags}
%install

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sun Mar 11 16:50:55 UTC 2018 - afaerber@suse.de
- Prepare for %cross_arch with dashes by consistently quoting
- Leave the choice of cross-*-binutils to cross-*-gcc*
- Update to v2.5.0
-------------------------------------------------------------------
Wed Jan 24 09:29:00 UTC 2018 - rguenther@suse.com

View File

@ -19,7 +19,7 @@
%define cross_arch rx
Name: cross-%{cross_arch}-newlib-devel
Version: 2.4.0
Version: 2.5.0
Release: 0
Summary: C library intended for use on %{cross_arch} embedded systems
License: BSD-3-Clause and MIT and LGPL-2.0+ and ISC
@ -29,7 +29,6 @@ Source0: ftp://sourceware.org/pub/newlib/newlib-%{version}.tar.gz
Patch1: epiphany-fixes.diff
BuildRequires: cross-%{cross_arch}-binutils
BuildRequires: cross-%{cross_arch}-gcc%{gcc_version}-bootstrap
%if %{suse_version} > 1220
BuildRequires: makeinfo
@ -43,10 +42,10 @@ conglomeration of several library parts, all under free software licenses
that make them easily usable on embedded products.
%define target %{cross_arch}
%if %{cross_arch} == "epiphany" || %{cross_arch} == "rl78" || %{cross_arch} == "rx"
%if "%{cross_arch}" == "epiphany" || "%{cross_arch}" == "rl78" || "%{cross_arch}" == "rx"
%define target %{cross_arch}-elf
%endif
%if %{cross_arch} == "spu"
%if "%{cross_arch}" == "spu"
%define sysroot /usr/spu
%else
%define sysroot %{_prefix}/%{target}/sys-root
@ -61,10 +60,8 @@ mkdir build-dir
cd build-dir
../configure \
--prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} --infodir=%{_infodir} \
--target=%{target} --with-build-sysroot=%{sysroot} \
CC_FOR_TARGET=%{target}-gcc-%{gcc_version} \
CXX_FOR_TARGET=%{target}-g++-%{gcc_version} \
GCC_FOR_TARGET=%{target}-gcc-%{gcc_version}
--target=%{target} \
--with-build-sysroot=%{sysroot}
make %{?_smp_mflags}
%install

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:545b3d235e350d2c61491df8b9f775b1b972f191380db8f52ec0b1c829c52706
size 17574364

3
newlib-2.5.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5b76a9b97c9464209772ed25ce55181a7bb144a66e5669aaec945aa64da3189b
size 17912392

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sun Mar 11 16:50:55 UTC 2018 - afaerber@suse.de
- Prepare for %cross_arch with dashes by consistently quoting
- Leave the choice of cross-*-binutils to cross-*-gcc*
- Update to v2.5.0
-------------------------------------------------------------------
Wed Jan 24 09:29:00 UTC 2018 - rguenther@suse.com

View File

@ -17,7 +17,7 @@
Name: newlib
Version: 2.4.0
Version: 2.5.0
Release: 0
Summary: C library intended for use on embedded systems
License: BSD-3-Clause and MIT and LGPL-2.0+ and ISC

View File

@ -1,6 +1,6 @@
Name: cross-%{cross_arch}-newlib-devel
Version: 2.4.0
Version: 2.5.0
Release: 0
Summary: C library intended for use on %{cross_arch} embedded systems
Group: Development/Tools
@ -10,7 +10,6 @@ Source0: ftp://sourceware.org/pub/newlib/newlib-%{version}.tar.gz
Patch1: epiphany-fixes.diff
BuildRequires: cross-%{cross_arch}-binutils
BuildRequires: cross-%{cross_arch}-gcc%{gcc_version}-bootstrap
%if %{suse_version} > 1220
BuildRequires: makeinfo
@ -24,10 +23,10 @@ conglomeration of several library parts, all under free software licenses
that make them easily usable on embedded products.
%define target %{cross_arch}
%if %{cross_arch} == "epiphany" || %{cross_arch} == "rl78" || %{cross_arch} == "rx"
%if "%{cross_arch}" == "epiphany" || "%{cross_arch}" == "rl78" || "%{cross_arch}" == "rx"
%define target %{cross_arch}-elf
%endif
%if %{cross_arch} == "spu"
%if "%{cross_arch}" == "spu"
%define sysroot /usr/spu
%else
%define sysroot %{_prefix}/%{target}/sys-root
@ -42,10 +41,8 @@ mkdir build-dir
cd build-dir
../configure \
--prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} --infodir=%{_infodir} \
--target=%{target} --with-build-sysroot=%{sysroot} \
CC_FOR_TARGET=%{target}-gcc-%{gcc_version} \
CXX_FOR_TARGET=%{target}-g++-%{gcc_version} \
GCC_FOR_TARGET=%{target}-gcc-%{gcc_version}
--target=%{target} \
--with-build-sysroot=%{sysroot}
make %{?_smp_mflags}
%install