SHA256
3
0
forked from pool/binutils
OBS User unknown 2009-01-22 15:48:12 +00:00 committed by Git OBS Bridge
parent 9350499628
commit 2ef459be03
35 changed files with 616 additions and 2055 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jan 22 14:20:16 CET 2009 - schwab@suse.de
- Adjust list of extra targets.
-------------------------------------------------------------------
Mon Jan 19 18:19:30 CET 2009 - schwab@suse.de

View File

@ -20,7 +20,7 @@
Name: binutils
BuildRequires: bison dejagnu flex gcc-c++ zlib-devel
Version: 2.19.51
Release: 1
Release: 2
#
# RUN_TESTS
%define run_tests %(test ! -f %_sourcedir/RUN_TESTS ; echo $?)
@ -303,29 +303,33 @@ RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wno-error"
# Building native binutils
echo "Building native binutils."
%if %build_multitarget
ADDITIONAL_TARGETS="%(echo %target_list | sed -e 's/[^ ]\+/&-suse-linux/g')"
ADDITIONAL_TARGETS="$ADDITIONAL_TARGETS powerpc-macos powerpc-macos10 spu-elf"
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
%if !%{test_vanilla}
ADDITIONAL_TARGETS="$ADDITIONAL_TARGETS i386-macos10"
EXTRA_TARGETS="$EXTRA_TARGETS,i386-macos10"
%endif
%else
ADDITIONAL_TARGETS=
EXTRA_TARGETS=
%endif
ADDITIONAL_LD_TARGETS=
EXTRA_LD_TARGETS=
%ifarch sparc
ADDITIONAL_LD_TARGETS="sparc64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,sparc64-suse-linux"
%endif
%ifarch ppc
ADDITIONAL_LD_TARGETS="powerpc64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,powerpc64-suse-linux"
%endif
%ifarch s390
ADDITIONAL_LD_TARGETS="s390x-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390x-suse-linux"
%endif
%ifarch s390x
ADDITIONAL_LD_TARGETS="s390-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390-suse-linux"
%endif
%ifarch %ix86
ADDITIONAL_LD_TARGETS="x86_64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,x86_64-suse-linux"
%endif
EXTRA_GOLD_TARGETS=$EXTRA_LD_TARGETS
%ifarch ppc ppc64
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
%endif
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
--prefix=%{_prefix} \\\
@ -336,11 +340,14 @@ ADDITIONAL_LD_TARGETS="x86_64-suse-linux"
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
--with-pic --build=%{HOST} \\\
--disable-ld-targets \\\
${ADDITIONAL_LD_TARGETS:+--enable-ld-targets="${ADDITIONAL_LD_TARGETS// /,}"} \\\
${ADDITIONAL_TARGETS:+--enable-targets="${ADDITIONAL_TARGETS// /,}"}
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
%define extra_ld_targets \\\
${EXTRA_LD_TARGETS:+--enable-ld-targets="${EXTRA_LD_TARGETS#,}"}
%define extra_gold_targets \\\
${EXTRA_GOLD_TARGETS:+--enable-ld-targets="${EXTRA_GOLD_TARGETS#,}"}
mkdir build-dir
cd build-dir
../configure %common_flags --enable-shared
../configure %common_flags %extra_ld_targets --enable-shared
make %{?jobs:-j%jobs} all-bfd TARGET-bfd=headers
# force reconfiguring
rm bfd/Makefile
@ -348,7 +355,8 @@ make %{?jobs:-j%jobs}
%ifarch %gold_archs
mkdir ../build-dir2
cd ../build-dir2
../configure %common_flags --enable-shared --enable-gold --program-prefix=go
../configure %common_flags %extra_gold_targets \
--enable-shared --enable-gold --program-prefix=go
make %{?jobs:-j%jobs}
%endif
mkdir ../build-dir3
@ -373,24 +381,24 @@ make -k check-gold CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" |
echo "Building cross binutils."
mkdir build-dir
cd build-dir
ADDITIONAL_TARGETS=
EXTRA_TARGETS=
%if "%{TARGET}" == "sparc"
ADDITIONAL_TARGETS="sparc64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,sparc64-suse-linux"
%endif
%if "%{TARGET}" == "powerpc"
ADDITIONAL_TARGETS="powerpc64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc64-suse-linux"
%endif
%if "%{TARGET}" == "s390"
ADDITIONAL_TARGETS="s390x-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,s390x-suse-linux"
%endif
%if "%{TARGET}" == "s390x"
ADDITIONAL_TARGETS="s390-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,s390-suse-linux"
%endif
%if "%{TARGET}" == "i586"
ADDITIONAL_TARGETS="x86_64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,x86_64-suse-linux"
%endif
%if "%{TARGET}" == "hppa"
ADDITIONAL_TARGETS="hppa64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,hppa64-suse-linux"
%endif
%if "%{TARGET}" == "avr" || "%{TARGET}" == "spu"
TARGET_OS=%{TARGET}
@ -408,7 +416,7 @@ TARGET_OS=%{TARGET}-linux
%else
--with-sysroot=%{_prefix}/%{TARGET_OS}/sys-root \
%endif
${ADDITIONAL_TARGETS:+--enable-targets="${ADDITIONAL_TARGETS// /,}"}
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
make %{?jobs:-j%jobs} all-bfd TARGET-bfd=headers
# force reconfiguring
rm bfd/Makefile
@ -536,6 +544,8 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/lib*.*a
%changelog
* Thu Jan 22 2009 schwab@suse.de
- Adjust list of extra targets.
* Mon Jan 19 2009 schwab@suse.de
- Update to head of trunk.
- Add gold.

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jan 22 14:20:16 CET 2009 - schwab@suse.de
- Adjust list of extra targets.
-------------------------------------------------------------------
Mon Jan 19 18:19:30 CET 2009 - schwab@suse.de

View File

@ -20,7 +20,7 @@
Name: cross-alpha-binutils
BuildRequires: bison dejagnu flex gcc-c++ zlib-devel
Version: 2.19.51
Release: 1
Release: 2
#
# RUN_TESTS
%define run_tests %(test ! -f %_sourcedir/RUN_TESTS ; echo $?)
@ -99,83 +99,6 @@ embedded tools.
Authors:
--------
Alan Modra <amodra@bigpond.net.au>
Andreas Jaeger <aj@suse.de>
Andreas Schwab <schwab@suse.de>
Bill Cox <bill@cygnus.com>
Brendan Kehoe <brendan@cygnus.com>
D. V. Henkel-Wallace <gumby@cygnus.com>
DJ Delorie <dj@redhat.com>
David D "Zoo" Zuhn <zoo@cygnus.com>
David J. Mackenzie <djm@cygnus.com>
Denis Chertykov <denisc@overta.ru>
Diego Novillo <dnovillo@redhat.com>
Doug Evans <dje@cygnus.com>
Eric Christopher <echristo@redhat.com>
Eric Youngdale <eric@aib.com>
Fred Fish <fnf@cygnus.com>
Geoff Keating <geoffk@redhat.com>
H.J.Lu <hjl@gnu.org>
Hans-Peter Nilsson <hp@axis.com>
Ian Dall <dall@hfrd.dsto.gov.au>
Ian Taylor <ian@zembu.com>
J.T. Conklin <jtc@cygnus.com>
Jakub Jelinek <jakub@redhat.com>
Jan Hubicka <jh@suse.cz>
Jason Eckhardt <jle@redhat.com>
Jason Merrill <jason@redhat.com>
Jeff Law <law@redhat.com>
Jeffrey Osier <jeffrey@cygnus.com>
Jeffrey Wheat <cassidy@cygnus.com>
Jim Kingdon <kingdon@cygnus.com>
Jim Wilson <wilson@redhat.com>
John Gilmore <gnu@cygnus.com>
Jörn Rennecke <amylaar@redhat.com>
K. Richard Pixley <rich@cygnus.com>
Ken Raeburn <raeburn@cygnus.com>
Kung Hsu <kung@cygnus.com>
Mark Eichin <eichin@cygnus.com>
Michael Meissner <meissner@redhat.com>
Michael Tiemann <tiemann@cygnus.com>
Mike Werner <mtw@cygnus.com>
Nick Clifton <nickc@redhat.com>
Per Bothner <bothner@cygnus.com>
Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
Richard Earnshaw <rwe@pegasus.esprit.ec.org>
Richard Henderson <rth@redhat.com>
Richard Stallman <rms@gnu.org>
Rob Savoye <rob@cygnus.com>
Roland H. Pesch <pesch@wrs.com>
Sean Eric Fagan <sef@cygnus.com>
Stan Shebs <shebs@apple.com>
Stephane Carrez <Stephane.Carrez@worldnet.fr>
Steve Chamberlain <sac@cygnus.com>
Stu Grossman <grossman@cygnus.com>
Torbjorn Granlund <tege@cygnus.com>
Ulf Carlsson <ulfc@calypso.engr.sgi.com>
%package gold
License: GPL v2 or later; LGPL v2.1 or later; X11/MIT
Summary: GNU binutils for Cross-Development to ALPHA Processors
AutoReqProv: on
Requires: binutils = %{version}-%{release}
Group: Development/Tools/Building
%define gold_archs %ix86 x86_64 ppc ppc64 sparc sparc64
%description gold
Cross-development utilities: ar, as, gasp, gprof, ld, nm, objcopy,
objdump, ranlib, size, strings, strip. These utilities are needed
whenever you want to compile a program or a kernel. This package
differs from the normal SUSE binutils package in that it is designed to
cross-compile from whatever platform SUSE Linux is running on to ALPHA
targets. This can be handy even if you are running on an ALPHA
development platform, because it decouples the host tools from your
embedded tools.
Authors:
--------
Alan Modra <amodra@bigpond.net.au>
@ -273,29 +196,33 @@ RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wno-error"
# Building native binutils
echo "Building native binutils."
%if %build_multitarget
ADDITIONAL_TARGETS="%(echo %target_list | sed -e 's/[^ ]\+/&-suse-linux/g')"
ADDITIONAL_TARGETS="$ADDITIONAL_TARGETS powerpc-macos powerpc-macos10 spu-elf"
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
%if !%{test_vanilla}
ADDITIONAL_TARGETS="$ADDITIONAL_TARGETS i386-macos10"
EXTRA_TARGETS="$EXTRA_TARGETS,i386-macos10"
%endif
%else
ADDITIONAL_TARGETS=
EXTRA_TARGETS=
%endif
ADDITIONAL_LD_TARGETS=
EXTRA_LD_TARGETS=
%ifarch sparc
ADDITIONAL_LD_TARGETS="sparc64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,sparc64-suse-linux"
%endif
%ifarch ppc
ADDITIONAL_LD_TARGETS="powerpc64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,powerpc64-suse-linux"
%endif
%ifarch s390
ADDITIONAL_LD_TARGETS="s390x-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390x-suse-linux"
%endif
%ifarch s390x
ADDITIONAL_LD_TARGETS="s390-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390-suse-linux"
%endif
%ifarch %ix86
ADDITIONAL_LD_TARGETS="x86_64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,x86_64-suse-linux"
%endif
EXTRA_GOLD_TARGETS=$EXTRA_LD_TARGETS
%ifarch ppc ppc64
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
%endif
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
--prefix=%{_prefix} \\\
@ -306,21 +233,18 @@ ADDITIONAL_LD_TARGETS="x86_64-suse-linux"
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
--with-pic --build=%{HOST} \\\
--disable-ld-targets \\\
${ADDITIONAL_LD_TARGETS:+--enable-ld-targets="${ADDITIONAL_LD_TARGETS// /,}"} \\\
${ADDITIONAL_TARGETS:+--enable-targets="${ADDITIONAL_TARGETS// /,}"}
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
%define extra_ld_targets \\\
${EXTRA_LD_TARGETS:+--enable-ld-targets="${EXTRA_LD_TARGETS#,}"}
%define extra_gold_targets \\\
${EXTRA_GOLD_TARGETS:+--enable-ld-targets="${EXTRA_GOLD_TARGETS#,}"}
mkdir build-dir
cd build-dir
../configure %common_flags --enable-shared
../configure %common_flags %extra_ld_targets --enable-shared
make %{?jobs:-j%jobs} all-bfd TARGET-bfd=headers
# force reconfiguring
rm bfd/Makefile
make %{?jobs:-j%jobs}
%ifarch %gold_archs
mkdir ../build-dir2
cd ../build-dir2
../configure %common_flags --enable-shared --enable-gold --program-prefix=go
make %{?jobs:-j%jobs}
%endif
mkdir ../build-dir3
cd ../build-dir3
../configure %common_flags --disable-shared
@ -330,10 +254,6 @@ make %{?jobs:-j%jobs} all-bfd all-opcodes
cd build-dir
%ifnarch %arm
make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || %{make_check_handling}
%ifarch %gold_archs
cd ../build-dir2
make -k check-gold CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || :
%endif
%endif
#
#
@ -343,24 +263,24 @@ make -k check-gold CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" |
echo "Building cross binutils."
mkdir build-dir
cd build-dir
ADDITIONAL_TARGETS=
EXTRA_TARGETS=
%if "%{TARGET}" == "sparc"
ADDITIONAL_TARGETS="sparc64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,sparc64-suse-linux"
%endif
%if "%{TARGET}" == "powerpc"
ADDITIONAL_TARGETS="powerpc64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc64-suse-linux"
%endif
%if "%{TARGET}" == "s390"
ADDITIONAL_TARGETS="s390x-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,s390x-suse-linux"
%endif
%if "%{TARGET}" == "s390x"
ADDITIONAL_TARGETS="s390-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,s390-suse-linux"
%endif
%if "%{TARGET}" == "i586"
ADDITIONAL_TARGETS="x86_64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,x86_64-suse-linux"
%endif
%if "%{TARGET}" == "hppa"
ADDITIONAL_TARGETS="hppa64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,hppa64-suse-linux"
%endif
%if "%{TARGET}" == "avr" || "%{TARGET}" == "spu"
TARGET_OS=%{TARGET}
@ -378,7 +298,7 @@ TARGET_OS=%{TARGET}-linux
%else
--with-sysroot=%{_prefix}/%{TARGET_OS}/sys-root \
%endif
${ADDITIONAL_TARGETS:+--enable-targets="${ADDITIONAL_TARGETS// /,}"}
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
make %{?jobs:-j%jobs} all-bfd TARGET-bfd=headers
# force reconfiguring
rm bfd/Makefile
@ -400,11 +320,6 @@ make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || :
cd build-dir
%if "%name" == "binutils"
# installing native binutils
%ifarch %gold_archs
cd ../build-dir2
make DESTDIR=$RPM_BUILD_ROOT install-gold
cd ../build-dir
%endif
make DESTDIR=$RPM_BUILD_ROOT install-info install
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
cd ../build-dir3
@ -434,9 +349,6 @@ cd ..
%find_lang ld binutils.lang
%find_lang opcodes binutils.lang
%find_lang gprof binutils.lang
#%ifarch %gold_archs
#%find_lang gold binutils.lang
#%endif
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
install -m 644 binutils/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-binutils
install -m 644 gas/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-gas
@ -483,24 +395,16 @@ rm -rf $RPM_BUILD_ROOT
%{_prefix}/%{HOST}/lib/ldscripts
%{_libdir}/ldscripts
%{_bindir}/*
%ifarch %gold_archs
%exclude %{_bindir}/gold
%endif
%doc %{_infodir}/*.gz
%{_libdir}/lib*-%{version}*.so
%doc %{_mandir}/man1/*.1.gz
%else
%{_prefix}
%endif
%ifarch %gold_archs
%files gold
%defattr(-,root,root)
%doc gold/NEWS gold/README
%{_bindir}/gold
%endif
%changelog
* Thu Jan 22 2009 schwab@suse.de
- Adjust list of extra targets.
* Mon Jan 19 2009 schwab@suse.de
- Update to head of trunk.
- Add gold.

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jan 22 14:20:16 CET 2009 - schwab@suse.de
- Adjust list of extra targets.
-------------------------------------------------------------------
Mon Jan 19 18:19:30 CET 2009 - schwab@suse.de

View File

@ -20,7 +20,7 @@
Name: cross-arm-binutils
BuildRequires: bison dejagnu flex gcc-c++ zlib-devel
Version: 2.19.51
Release: 1
Release: 2
#
# RUN_TESTS
%define run_tests %(test ! -f %_sourcedir/RUN_TESTS ; echo $?)
@ -99,83 +99,6 @@ embedded tools.
Authors:
--------
Alan Modra <amodra@bigpond.net.au>
Andreas Jaeger <aj@suse.de>
Andreas Schwab <schwab@suse.de>
Bill Cox <bill@cygnus.com>
Brendan Kehoe <brendan@cygnus.com>
D. V. Henkel-Wallace <gumby@cygnus.com>
DJ Delorie <dj@redhat.com>
David D "Zoo" Zuhn <zoo@cygnus.com>
David J. Mackenzie <djm@cygnus.com>
Denis Chertykov <denisc@overta.ru>
Diego Novillo <dnovillo@redhat.com>
Doug Evans <dje@cygnus.com>
Eric Christopher <echristo@redhat.com>
Eric Youngdale <eric@aib.com>
Fred Fish <fnf@cygnus.com>
Geoff Keating <geoffk@redhat.com>
H.J.Lu <hjl@gnu.org>
Hans-Peter Nilsson <hp@axis.com>
Ian Dall <dall@hfrd.dsto.gov.au>
Ian Taylor <ian@zembu.com>
J.T. Conklin <jtc@cygnus.com>
Jakub Jelinek <jakub@redhat.com>
Jan Hubicka <jh@suse.cz>
Jason Eckhardt <jle@redhat.com>
Jason Merrill <jason@redhat.com>
Jeff Law <law@redhat.com>
Jeffrey Osier <jeffrey@cygnus.com>
Jeffrey Wheat <cassidy@cygnus.com>
Jim Kingdon <kingdon@cygnus.com>
Jim Wilson <wilson@redhat.com>
John Gilmore <gnu@cygnus.com>
Jörn Rennecke <amylaar@redhat.com>
K. Richard Pixley <rich@cygnus.com>
Ken Raeburn <raeburn@cygnus.com>
Kung Hsu <kung@cygnus.com>
Mark Eichin <eichin@cygnus.com>
Michael Meissner <meissner@redhat.com>
Michael Tiemann <tiemann@cygnus.com>
Mike Werner <mtw@cygnus.com>
Nick Clifton <nickc@redhat.com>
Per Bothner <bothner@cygnus.com>
Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
Richard Earnshaw <rwe@pegasus.esprit.ec.org>
Richard Henderson <rth@redhat.com>
Richard Stallman <rms@gnu.org>
Rob Savoye <rob@cygnus.com>
Roland H. Pesch <pesch@wrs.com>
Sean Eric Fagan <sef@cygnus.com>
Stan Shebs <shebs@apple.com>
Stephane Carrez <Stephane.Carrez@worldnet.fr>
Steve Chamberlain <sac@cygnus.com>
Stu Grossman <grossman@cygnus.com>
Torbjorn Granlund <tege@cygnus.com>
Ulf Carlsson <ulfc@calypso.engr.sgi.com>
%package gold
License: GPL v2 or later; LGPL v2.1 or later; X11/MIT
Summary: GNU binutils for Cross-Development to ARM Processors
AutoReqProv: on
Requires: binutils = %{version}-%{release}
Group: Development/Tools/Building
%define gold_archs %ix86 x86_64 ppc ppc64 sparc sparc64
%description gold
Cross-development utilities: ar, as, gasp, gprof, ld, nm, objcopy,
objdump, ranlib, size, strings, strip. These utilities are needed
whenever you want to compile a program or a kernel. This package
differs from the normal SUSE binutils package in that it is designed to
cross-compile from whatever platform SUSE Linux is running on to ARM
targets. This can be handy even if you are running on an ARM
development platform, because it decouples the host tools from your
embedded tools.
Authors:
--------
Alan Modra <amodra@bigpond.net.au>
@ -273,29 +196,33 @@ RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wno-error"
# Building native binutils
echo "Building native binutils."
%if %build_multitarget
ADDITIONAL_TARGETS="%(echo %target_list | sed -e 's/[^ ]\+/&-suse-linux/g')"
ADDITIONAL_TARGETS="$ADDITIONAL_TARGETS powerpc-macos powerpc-macos10 spu-elf"
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
%if !%{test_vanilla}
ADDITIONAL_TARGETS="$ADDITIONAL_TARGETS i386-macos10"
EXTRA_TARGETS="$EXTRA_TARGETS,i386-macos10"
%endif
%else
ADDITIONAL_TARGETS=
EXTRA_TARGETS=
%endif
ADDITIONAL_LD_TARGETS=
EXTRA_LD_TARGETS=
%ifarch sparc
ADDITIONAL_LD_TARGETS="sparc64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,sparc64-suse-linux"
%endif
%ifarch ppc
ADDITIONAL_LD_TARGETS="powerpc64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,powerpc64-suse-linux"
%endif
%ifarch s390
ADDITIONAL_LD_TARGETS="s390x-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390x-suse-linux"
%endif
%ifarch s390x
ADDITIONAL_LD_TARGETS="s390-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390-suse-linux"
%endif
%ifarch %ix86
ADDITIONAL_LD_TARGETS="x86_64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,x86_64-suse-linux"
%endif
EXTRA_GOLD_TARGETS=$EXTRA_LD_TARGETS
%ifarch ppc ppc64
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
%endif
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
--prefix=%{_prefix} \\\
@ -306,21 +233,18 @@ ADDITIONAL_LD_TARGETS="x86_64-suse-linux"
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
--with-pic --build=%{HOST} \\\
--disable-ld-targets \\\
${ADDITIONAL_LD_TARGETS:+--enable-ld-targets="${ADDITIONAL_LD_TARGETS// /,}"} \\\
${ADDITIONAL_TARGETS:+--enable-targets="${ADDITIONAL_TARGETS// /,}"}
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
%define extra_ld_targets \\\
${EXTRA_LD_TARGETS:+--enable-ld-targets="${EXTRA_LD_TARGETS#,}"}
%define extra_gold_targets \\\
${EXTRA_GOLD_TARGETS:+--enable-ld-targets="${EXTRA_GOLD_TARGETS#,}"}
mkdir build-dir
cd build-dir
../configure %common_flags --enable-shared
../configure %common_flags %extra_ld_targets --enable-shared
make %{?jobs:-j%jobs} all-bfd TARGET-bfd=headers
# force reconfiguring
rm bfd/Makefile
make %{?jobs:-j%jobs}
%ifarch %gold_archs
mkdir ../build-dir2
cd ../build-dir2
../configure %common_flags --enable-shared --enable-gold --program-prefix=go
make %{?jobs:-j%jobs}
%endif
mkdir ../build-dir3
cd ../build-dir3
../configure %common_flags --disable-shared
@ -330,10 +254,6 @@ make %{?jobs:-j%jobs} all-bfd all-opcodes
cd build-dir
%ifnarch %arm
make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || %{make_check_handling}
%ifarch %gold_archs
cd ../build-dir2
make -k check-gold CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || :
%endif
%endif
#
#
@ -343,24 +263,24 @@ make -k check-gold CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" |
echo "Building cross binutils."
mkdir build-dir
cd build-dir
ADDITIONAL_TARGETS=
EXTRA_TARGETS=
%if "%{TARGET}" == "sparc"
ADDITIONAL_TARGETS="sparc64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,sparc64-suse-linux"
%endif
%if "%{TARGET}" == "powerpc"
ADDITIONAL_TARGETS="powerpc64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc64-suse-linux"
%endif
%if "%{TARGET}" == "s390"
ADDITIONAL_TARGETS="s390x-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,s390x-suse-linux"
%endif
%if "%{TARGET}" == "s390x"
ADDITIONAL_TARGETS="s390-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,s390-suse-linux"
%endif
%if "%{TARGET}" == "i586"
ADDITIONAL_TARGETS="x86_64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,x86_64-suse-linux"
%endif
%if "%{TARGET}" == "hppa"
ADDITIONAL_TARGETS="hppa64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,hppa64-suse-linux"
%endif
%if "%{TARGET}" == "avr" || "%{TARGET}" == "spu"
TARGET_OS=%{TARGET}
@ -378,7 +298,7 @@ TARGET_OS=%{TARGET}-linux
%else
--with-sysroot=%{_prefix}/%{TARGET_OS}/sys-root \
%endif
${ADDITIONAL_TARGETS:+--enable-targets="${ADDITIONAL_TARGETS// /,}"}
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
make %{?jobs:-j%jobs} all-bfd TARGET-bfd=headers
# force reconfiguring
rm bfd/Makefile
@ -400,11 +320,6 @@ make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || :
cd build-dir
%if "%name" == "binutils"
# installing native binutils
%ifarch %gold_archs
cd ../build-dir2
make DESTDIR=$RPM_BUILD_ROOT install-gold
cd ../build-dir
%endif
make DESTDIR=$RPM_BUILD_ROOT install-info install
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
cd ../build-dir3
@ -434,9 +349,6 @@ cd ..
%find_lang ld binutils.lang
%find_lang opcodes binutils.lang
%find_lang gprof binutils.lang
#%ifarch %gold_archs
#%find_lang gold binutils.lang
#%endif
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
install -m 644 binutils/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-binutils
install -m 644 gas/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-gas
@ -483,24 +395,16 @@ rm -rf $RPM_BUILD_ROOT
%{_prefix}/%{HOST}/lib/ldscripts
%{_libdir}/ldscripts
%{_bindir}/*
%ifarch %gold_archs
%exclude %{_bindir}/gold
%endif
%doc %{_infodir}/*.gz
%{_libdir}/lib*-%{version}*.so
%doc %{_mandir}/man1/*.1.gz
%else
%{_prefix}
%endif
%ifarch %gold_archs
%files gold
%defattr(-,root,root)
%doc gold/NEWS gold/README
%{_bindir}/gold
%endif
%changelog
* Thu Jan 22 2009 schwab@suse.de
- Adjust list of extra targets.
* Mon Jan 19 2009 schwab@suse.de
- Update to head of trunk.
- Add gold.

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jan 22 14:20:16 CET 2009 - schwab@suse.de
- Adjust list of extra targets.
-------------------------------------------------------------------
Mon Jan 19 18:19:30 CET 2009 - schwab@suse.de

View File

@ -20,7 +20,7 @@
Name: cross-avr-binutils
BuildRequires: bison dejagnu flex gcc-c++ zlib-devel
Version: 2.19.51
Release: 1
Release: 2
#
# RUN_TESTS
%define run_tests %(test ! -f %_sourcedir/RUN_TESTS ; echo $?)
@ -99,83 +99,6 @@ embedded tools.
Authors:
--------
Alan Modra <amodra@bigpond.net.au>
Andreas Jaeger <aj@suse.de>
Andreas Schwab <schwab@suse.de>
Bill Cox <bill@cygnus.com>
Brendan Kehoe <brendan@cygnus.com>
D. V. Henkel-Wallace <gumby@cygnus.com>
DJ Delorie <dj@redhat.com>
David D "Zoo" Zuhn <zoo@cygnus.com>
David J. Mackenzie <djm@cygnus.com>
Denis Chertykov <denisc@overta.ru>
Diego Novillo <dnovillo@redhat.com>
Doug Evans <dje@cygnus.com>
Eric Christopher <echristo@redhat.com>
Eric Youngdale <eric@aib.com>
Fred Fish <fnf@cygnus.com>
Geoff Keating <geoffk@redhat.com>
H.J.Lu <hjl@gnu.org>
Hans-Peter Nilsson <hp@axis.com>
Ian Dall <dall@hfrd.dsto.gov.au>
Ian Taylor <ian@zembu.com>
J.T. Conklin <jtc@cygnus.com>
Jakub Jelinek <jakub@redhat.com>
Jan Hubicka <jh@suse.cz>
Jason Eckhardt <jle@redhat.com>
Jason Merrill <jason@redhat.com>
Jeff Law <law@redhat.com>
Jeffrey Osier <jeffrey@cygnus.com>
Jeffrey Wheat <cassidy@cygnus.com>
Jim Kingdon <kingdon@cygnus.com>
Jim Wilson <wilson@redhat.com>
John Gilmore <gnu@cygnus.com>
Jörn Rennecke <amylaar@redhat.com>
K. Richard Pixley <rich@cygnus.com>
Ken Raeburn <raeburn@cygnus.com>
Kung Hsu <kung@cygnus.com>
Mark Eichin <eichin@cygnus.com>
Michael Meissner <meissner@redhat.com>
Michael Tiemann <tiemann@cygnus.com>
Mike Werner <mtw@cygnus.com>
Nick Clifton <nickc@redhat.com>
Per Bothner <bothner@cygnus.com>
Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
Richard Earnshaw <rwe@pegasus.esprit.ec.org>
Richard Henderson <rth@redhat.com>
Richard Stallman <rms@gnu.org>
Rob Savoye <rob@cygnus.com>
Roland H. Pesch <pesch@wrs.com>
Sean Eric Fagan <sef@cygnus.com>
Stan Shebs <shebs@apple.com>
Stephane Carrez <Stephane.Carrez@worldnet.fr>
Steve Chamberlain <sac@cygnus.com>
Stu Grossman <grossman@cygnus.com>
Torbjorn Granlund <tege@cygnus.com>
Ulf Carlsson <ulfc@calypso.engr.sgi.com>
%package gold
License: GPL v2 or later; LGPL v2.1 or later
Summary: GNU Binutils for Cross-Development to AVR Processors
AutoReqProv: on
Requires: binutils = %{version}-%{release}
Group: Development/Tools/Building
%define gold_archs %ix86 x86_64 ppc ppc64 sparc sparc64
%description gold
Cross-development utilities: ar, as, gasp, gprof, ld, nm, objcopy,
objdump, ranlib, size, strings, strip. These utilities are needed
whenever you want to compile a program or a kernel. This package
differs from the normal SUSE binutils package in that it is designed to
cross-compile from whatever platform SUSE Linux is running on to AVR
targets. This can be handy even if you are running on an AVR
development platform, because it decouples the host tools from your
embedded tools.
Authors:
--------
Alan Modra <amodra@bigpond.net.au>
@ -273,29 +196,33 @@ RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wno-error"
# Building native binutils
echo "Building native binutils."
%if %build_multitarget
ADDITIONAL_TARGETS="%(echo %target_list | sed -e 's/[^ ]\+/&-suse-linux/g')"
ADDITIONAL_TARGETS="$ADDITIONAL_TARGETS powerpc-macos powerpc-macos10 spu-elf"
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
%if !%{test_vanilla}
ADDITIONAL_TARGETS="$ADDITIONAL_TARGETS i386-macos10"
EXTRA_TARGETS="$EXTRA_TARGETS,i386-macos10"
%endif
%else
ADDITIONAL_TARGETS=
EXTRA_TARGETS=
%endif
ADDITIONAL_LD_TARGETS=
EXTRA_LD_TARGETS=
%ifarch sparc
ADDITIONAL_LD_TARGETS="sparc64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,sparc64-suse-linux"
%endif
%ifarch ppc
ADDITIONAL_LD_TARGETS="powerpc64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,powerpc64-suse-linux"
%endif
%ifarch s390
ADDITIONAL_LD_TARGETS="s390x-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390x-suse-linux"
%endif
%ifarch s390x
ADDITIONAL_LD_TARGETS="s390-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390-suse-linux"
%endif
%ifarch %ix86
ADDITIONAL_LD_TARGETS="x86_64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,x86_64-suse-linux"
%endif
EXTRA_GOLD_TARGETS=$EXTRA_LD_TARGETS
%ifarch ppc ppc64
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
%endif
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
--prefix=%{_prefix} \\\
@ -306,21 +233,18 @@ ADDITIONAL_LD_TARGETS="x86_64-suse-linux"
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
--with-pic --build=%{HOST} \\\
--disable-ld-targets \\\
${ADDITIONAL_LD_TARGETS:+--enable-ld-targets="${ADDITIONAL_LD_TARGETS// /,}"} \\\
${ADDITIONAL_TARGETS:+--enable-targets="${ADDITIONAL_TARGETS// /,}"}
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
%define extra_ld_targets \\\
${EXTRA_LD_TARGETS:+--enable-ld-targets="${EXTRA_LD_TARGETS#,}"}
%define extra_gold_targets \\\
${EXTRA_GOLD_TARGETS:+--enable-ld-targets="${EXTRA_GOLD_TARGETS#,}"}
mkdir build-dir
cd build-dir
../configure %common_flags --enable-shared
../configure %common_flags %extra_ld_targets --enable-shared
make %{?jobs:-j%jobs} all-bfd TARGET-bfd=headers
# force reconfiguring
rm bfd/Makefile
make %{?jobs:-j%jobs}
%ifarch %gold_archs
mkdir ../build-dir2
cd ../build-dir2
../configure %common_flags --enable-shared --enable-gold --program-prefix=go
make %{?jobs:-j%jobs}
%endif
mkdir ../build-dir3
cd ../build-dir3
../configure %common_flags --disable-shared
@ -330,10 +254,6 @@ make %{?jobs:-j%jobs} all-bfd all-opcodes
cd build-dir
%ifnarch %arm
make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || %{make_check_handling}
%ifarch %gold_archs
cd ../build-dir2
make -k check-gold CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || :
%endif
%endif
#
#
@ -343,24 +263,24 @@ make -k check-gold CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" |
echo "Building cross binutils."
mkdir build-dir
cd build-dir
ADDITIONAL_TARGETS=
EXTRA_TARGETS=
%if "%{TARGET}" == "sparc"
ADDITIONAL_TARGETS="sparc64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,sparc64-suse-linux"
%endif
%if "%{TARGET}" == "powerpc"
ADDITIONAL_TARGETS="powerpc64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc64-suse-linux"
%endif
%if "%{TARGET}" == "s390"
ADDITIONAL_TARGETS="s390x-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,s390x-suse-linux"
%endif
%if "%{TARGET}" == "s390x"
ADDITIONAL_TARGETS="s390-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,s390-suse-linux"
%endif
%if "%{TARGET}" == "i586"
ADDITIONAL_TARGETS="x86_64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,x86_64-suse-linux"
%endif
%if "%{TARGET}" == "hppa"
ADDITIONAL_TARGETS="hppa64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,hppa64-suse-linux"
%endif
%if "%{TARGET}" == "avr" || "%{TARGET}" == "spu"
TARGET_OS=%{TARGET}
@ -378,7 +298,7 @@ TARGET_OS=%{TARGET}-linux
%else
--with-sysroot=%{_prefix}/%{TARGET_OS}/sys-root \
%endif
${ADDITIONAL_TARGETS:+--enable-targets="${ADDITIONAL_TARGETS// /,}"}
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
make %{?jobs:-j%jobs} all-bfd TARGET-bfd=headers
# force reconfiguring
rm bfd/Makefile
@ -400,11 +320,6 @@ make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || :
cd build-dir
%if "%name" == "binutils"
# installing native binutils
%ifarch %gold_archs
cd ../build-dir2
make DESTDIR=$RPM_BUILD_ROOT install-gold
cd ../build-dir
%endif
make DESTDIR=$RPM_BUILD_ROOT install-info install
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
cd ../build-dir3
@ -434,9 +349,6 @@ cd ..
%find_lang ld binutils.lang
%find_lang opcodes binutils.lang
%find_lang gprof binutils.lang
#%ifarch %gold_archs
#%find_lang gold binutils.lang
#%endif
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
install -m 644 binutils/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-binutils
install -m 644 gas/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-gas
@ -483,24 +395,16 @@ rm -rf $RPM_BUILD_ROOT
%{_prefix}/%{HOST}/lib/ldscripts
%{_libdir}/ldscripts
%{_bindir}/*
%ifarch %gold_archs
%exclude %{_bindir}/gold
%endif
%doc %{_infodir}/*.gz
%{_libdir}/lib*-%{version}*.so
%doc %{_mandir}/man1/*.1.gz
%else
%{_prefix}
%endif
%ifarch %gold_archs
%files gold
%defattr(-,root,root)
%doc gold/NEWS gold/README
%{_bindir}/gold
%endif
%changelog
* Thu Jan 22 2009 schwab@suse.de
- Adjust list of extra targets.
* Mon Jan 19 2009 schwab@suse.de
- Update to head of trunk.
- Add gold.

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jan 22 14:20:16 CET 2009 - schwab@suse.de
- Adjust list of extra targets.
-------------------------------------------------------------------
Mon Jan 19 18:19:30 CET 2009 - schwab@suse.de

View File

@ -20,7 +20,7 @@
Name: cross-hppa-binutils
BuildRequires: bison dejagnu flex gcc-c++ zlib-devel
Version: 2.19.51
Release: 1
Release: 2
#
# RUN_TESTS
%define run_tests %(test ! -f %_sourcedir/RUN_TESTS ; echo $?)
@ -99,83 +99,6 @@ embedded tools.
Authors:
--------
Alan Modra <amodra@bigpond.net.au>
Andreas Jaeger <aj@suse.de>
Andreas Schwab <schwab@suse.de>
Bill Cox <bill@cygnus.com>
Brendan Kehoe <brendan@cygnus.com>
D. V. Henkel-Wallace <gumby@cygnus.com>
DJ Delorie <dj@redhat.com>
David D "Zoo" Zuhn <zoo@cygnus.com>
David J. Mackenzie <djm@cygnus.com>
Denis Chertykov <denisc@overta.ru>
Diego Novillo <dnovillo@redhat.com>
Doug Evans <dje@cygnus.com>
Eric Christopher <echristo@redhat.com>
Eric Youngdale <eric@aib.com>
Fred Fish <fnf@cygnus.com>
Geoff Keating <geoffk@redhat.com>
H.J.Lu <hjl@gnu.org>
Hans-Peter Nilsson <hp@axis.com>
Ian Dall <dall@hfrd.dsto.gov.au>
Ian Taylor <ian@zembu.com>
J.T. Conklin <jtc@cygnus.com>
Jakub Jelinek <jakub@redhat.com>
Jan Hubicka <jh@suse.cz>
Jason Eckhardt <jle@redhat.com>
Jason Merrill <jason@redhat.com>
Jeff Law <law@redhat.com>
Jeffrey Osier <jeffrey@cygnus.com>
Jeffrey Wheat <cassidy@cygnus.com>
Jim Kingdon <kingdon@cygnus.com>
Jim Wilson <wilson@redhat.com>
John Gilmore <gnu@cygnus.com>
Jörn Rennecke <amylaar@redhat.com>
K. Richard Pixley <rich@cygnus.com>
Ken Raeburn <raeburn@cygnus.com>
Kung Hsu <kung@cygnus.com>
Mark Eichin <eichin@cygnus.com>
Michael Meissner <meissner@redhat.com>
Michael Tiemann <tiemann@cygnus.com>
Mike Werner <mtw@cygnus.com>
Nick Clifton <nickc@redhat.com>
Per Bothner <bothner@cygnus.com>
Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
Richard Earnshaw <rwe@pegasus.esprit.ec.org>
Richard Henderson <rth@redhat.com>
Richard Stallman <rms@gnu.org>
Rob Savoye <rob@cygnus.com>
Roland H. Pesch <pesch@wrs.com>
Sean Eric Fagan <sef@cygnus.com>
Stan Shebs <shebs@apple.com>
Stephane Carrez <Stephane.Carrez@worldnet.fr>
Steve Chamberlain <sac@cygnus.com>
Stu Grossman <grossman@cygnus.com>
Torbjorn Granlund <tege@cygnus.com>
Ulf Carlsson <ulfc@calypso.engr.sgi.com>
%package gold
License: GPL v2 or later; LGPL v2.1 or later; X11/MIT
Summary: GNU binutils for Cross-Development to HPPA Processors
AutoReqProv: on
Requires: binutils = %{version}-%{release}
Group: Development/Tools/Building
%define gold_archs %ix86 x86_64 ppc ppc64 sparc sparc64
%description gold
Cross-development utilities: ar, as, gasp, gprof, ld, nm, objcopy,
objdump, ranlib, size, strings, strip. These utilities are needed
whenever you want to compile a program or a kernel. This package
differs from the normal SUSE binutils package in that it is designed to
cross-compile from whatever platform SUSE Linux is running on to HPPA
targets. This can be handy even if you are running on an HPPA
development platform, because it decouples the host tools from your
embedded tools.
Authors:
--------
Alan Modra <amodra@bigpond.net.au>
@ -273,29 +196,33 @@ RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wno-error"
# Building native binutils
echo "Building native binutils."
%if %build_multitarget
ADDITIONAL_TARGETS="%(echo %target_list | sed -e 's/[^ ]\+/&-suse-linux/g')"
ADDITIONAL_TARGETS="$ADDITIONAL_TARGETS powerpc-macos powerpc-macos10 spu-elf"
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
%if !%{test_vanilla}
ADDITIONAL_TARGETS="$ADDITIONAL_TARGETS i386-macos10"
EXTRA_TARGETS="$EXTRA_TARGETS,i386-macos10"
%endif
%else
ADDITIONAL_TARGETS=
EXTRA_TARGETS=
%endif
ADDITIONAL_LD_TARGETS=
EXTRA_LD_TARGETS=
%ifarch sparc
ADDITIONAL_LD_TARGETS="sparc64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,sparc64-suse-linux"
%endif
%ifarch ppc
ADDITIONAL_LD_TARGETS="powerpc64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,powerpc64-suse-linux"
%endif
%ifarch s390
ADDITIONAL_LD_TARGETS="s390x-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390x-suse-linux"
%endif
%ifarch s390x
ADDITIONAL_LD_TARGETS="s390-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390-suse-linux"
%endif
%ifarch %ix86
ADDITIONAL_LD_TARGETS="x86_64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,x86_64-suse-linux"
%endif
EXTRA_GOLD_TARGETS=$EXTRA_LD_TARGETS
%ifarch ppc ppc64
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
%endif
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
--prefix=%{_prefix} \\\
@ -306,21 +233,18 @@ ADDITIONAL_LD_TARGETS="x86_64-suse-linux"
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
--with-pic --build=%{HOST} \\\
--disable-ld-targets \\\
${ADDITIONAL_LD_TARGETS:+--enable-ld-targets="${ADDITIONAL_LD_TARGETS// /,}"} \\\
${ADDITIONAL_TARGETS:+--enable-targets="${ADDITIONAL_TARGETS// /,}"}
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
%define extra_ld_targets \\\
${EXTRA_LD_TARGETS:+--enable-ld-targets="${EXTRA_LD_TARGETS#,}"}
%define extra_gold_targets \\\
${EXTRA_GOLD_TARGETS:+--enable-ld-targets="${EXTRA_GOLD_TARGETS#,}"}
mkdir build-dir
cd build-dir
../configure %common_flags --enable-shared
../configure %common_flags %extra_ld_targets --enable-shared
make %{?jobs:-j%jobs} all-bfd TARGET-bfd=headers
# force reconfiguring
rm bfd/Makefile
make %{?jobs:-j%jobs}
%ifarch %gold_archs
mkdir ../build-dir2
cd ../build-dir2
../configure %common_flags --enable-shared --enable-gold --program-prefix=go
make %{?jobs:-j%jobs}
%endif
mkdir ../build-dir3
cd ../build-dir3
../configure %common_flags --disable-shared
@ -330,10 +254,6 @@ make %{?jobs:-j%jobs} all-bfd all-opcodes
cd build-dir
%ifnarch %arm
make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || %{make_check_handling}
%ifarch %gold_archs
cd ../build-dir2
make -k check-gold CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || :
%endif
%endif
#
#
@ -343,24 +263,24 @@ make -k check-gold CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" |
echo "Building cross binutils."
mkdir build-dir
cd build-dir
ADDITIONAL_TARGETS=
EXTRA_TARGETS=
%if "%{TARGET}" == "sparc"
ADDITIONAL_TARGETS="sparc64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,sparc64-suse-linux"
%endif
%if "%{TARGET}" == "powerpc"
ADDITIONAL_TARGETS="powerpc64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc64-suse-linux"
%endif
%if "%{TARGET}" == "s390"
ADDITIONAL_TARGETS="s390x-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,s390x-suse-linux"
%endif
%if "%{TARGET}" == "s390x"
ADDITIONAL_TARGETS="s390-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,s390-suse-linux"
%endif
%if "%{TARGET}" == "i586"
ADDITIONAL_TARGETS="x86_64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,x86_64-suse-linux"
%endif
%if "%{TARGET}" == "hppa"
ADDITIONAL_TARGETS="hppa64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,hppa64-suse-linux"
%endif
%if "%{TARGET}" == "avr" || "%{TARGET}" == "spu"
TARGET_OS=%{TARGET}
@ -378,7 +298,7 @@ TARGET_OS=%{TARGET}-linux
%else
--with-sysroot=%{_prefix}/%{TARGET_OS}/sys-root \
%endif
${ADDITIONAL_TARGETS:+--enable-targets="${ADDITIONAL_TARGETS// /,}"}
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
make %{?jobs:-j%jobs} all-bfd TARGET-bfd=headers
# force reconfiguring
rm bfd/Makefile
@ -400,11 +320,6 @@ make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || :
cd build-dir
%if "%name" == "binutils"
# installing native binutils
%ifarch %gold_archs
cd ../build-dir2
make DESTDIR=$RPM_BUILD_ROOT install-gold
cd ../build-dir
%endif
make DESTDIR=$RPM_BUILD_ROOT install-info install
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
cd ../build-dir3
@ -434,9 +349,6 @@ cd ..
%find_lang ld binutils.lang
%find_lang opcodes binutils.lang
%find_lang gprof binutils.lang
#%ifarch %gold_archs
#%find_lang gold binutils.lang
#%endif
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
install -m 644 binutils/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-binutils
install -m 644 gas/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-gas
@ -483,24 +395,16 @@ rm -rf $RPM_BUILD_ROOT
%{_prefix}/%{HOST}/lib/ldscripts
%{_libdir}/ldscripts
%{_bindir}/*
%ifarch %gold_archs
%exclude %{_bindir}/gold
%endif
%doc %{_infodir}/*.gz
%{_libdir}/lib*-%{version}*.so
%doc %{_mandir}/man1/*.1.gz
%else
%{_prefix}
%endif
%ifarch %gold_archs
%files gold
%defattr(-,root,root)
%doc gold/NEWS gold/README
%{_bindir}/gold
%endif
%changelog
* Thu Jan 22 2009 schwab@suse.de
- Adjust list of extra targets.
* Mon Jan 19 2009 schwab@suse.de
- Update to head of trunk.
- Add gold.

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jan 22 14:20:16 CET 2009 - schwab@suse.de
- Adjust list of extra targets.
-------------------------------------------------------------------
Mon Jan 19 18:19:30 CET 2009 - schwab@suse.de

View File

@ -20,7 +20,7 @@
Name: cross-hppa64-binutils
BuildRequires: bison dejagnu flex gcc-c++ zlib-devel
Version: 2.19.51
Release: 1
Release: 2
#
# RUN_TESTS
%define run_tests %(test ! -f %_sourcedir/RUN_TESTS ; echo $?)
@ -99,83 +99,6 @@ embedded tools.
Authors:
--------
Alan Modra <amodra@bigpond.net.au>
Andreas Jaeger <aj@suse.de>
Andreas Schwab <schwab@suse.de>
Bill Cox <bill@cygnus.com>
Brendan Kehoe <brendan@cygnus.com>
D. V. Henkel-Wallace <gumby@cygnus.com>
DJ Delorie <dj@redhat.com>
David D "Zoo" Zuhn <zoo@cygnus.com>
David J. Mackenzie <djm@cygnus.com>
Denis Chertykov <denisc@overta.ru>
Diego Novillo <dnovillo@redhat.com>
Doug Evans <dje@cygnus.com>
Eric Christopher <echristo@redhat.com>
Eric Youngdale <eric@aib.com>
Fred Fish <fnf@cygnus.com>
Geoff Keating <geoffk@redhat.com>
H.J.Lu <hjl@gnu.org>
Hans-Peter Nilsson <hp@axis.com>
Ian Dall <dall@hfrd.dsto.gov.au>
Ian Taylor <ian@zembu.com>
J.T. Conklin <jtc@cygnus.com>
Jakub Jelinek <jakub@redhat.com>
Jan Hubicka <jh@suse.cz>
Jason Eckhardt <jle@redhat.com>
Jason Merrill <jason@redhat.com>
Jeff Law <law@redhat.com>
Jeffrey Osier <jeffrey@cygnus.com>
Jeffrey Wheat <cassidy@cygnus.com>
Jim Kingdon <kingdon@cygnus.com>
Jim Wilson <wilson@redhat.com>
John Gilmore <gnu@cygnus.com>
Jörn Rennecke <amylaar@redhat.com>
K. Richard Pixley <rich@cygnus.com>
Ken Raeburn <raeburn@cygnus.com>
Kung Hsu <kung@cygnus.com>
Mark Eichin <eichin@cygnus.com>
Michael Meissner <meissner@redhat.com>
Michael Tiemann <tiemann@cygnus.com>
Mike Werner <mtw@cygnus.com>
Nick Clifton <nickc@redhat.com>
Per Bothner <bothner@cygnus.com>
Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
Richard Earnshaw <rwe@pegasus.esprit.ec.org>
Richard Henderson <rth@redhat.com>
Richard Stallman <rms@gnu.org>
Rob Savoye <rob@cygnus.com>
Roland H. Pesch <pesch@wrs.com>
Sean Eric Fagan <sef@cygnus.com>
Stan Shebs <shebs@apple.com>
Stephane Carrez <Stephane.Carrez@worldnet.fr>
Steve Chamberlain <sac@cygnus.com>
Stu Grossman <grossman@cygnus.com>
Torbjorn Granlund <tege@cygnus.com>
Ulf Carlsson <ulfc@calypso.engr.sgi.com>
%package gold
License: GPL v2 or later; LGPL v2.1 or later; X11/MIT
Summary: GNU binutils for Cross-Development to HPPA64 Processors
AutoReqProv: on
Requires: binutils = %{version}-%{release}
Group: Development/Tools/Building
%define gold_archs %ix86 x86_64 ppc ppc64 sparc sparc64
%description gold
Cross-development utilities: ar, as, gasp, gprof, ld, nm, objcopy,
objdump, ranlib, size, strings, strip. These utilities are needed
whenever you want to compile a program or a kernel. This package
differs from the normal SUSE binutils package in that it is designed to
cross-compile from whatever platform SUSE Linux is running on to HPPA64
targets. This can be handy even if you are running on an HPPA
development platform, because it decouples the host tools from your
embedded tools.
Authors:
--------
Alan Modra <amodra@bigpond.net.au>
@ -273,29 +196,33 @@ RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wno-error"
# Building native binutils
echo "Building native binutils."
%if %build_multitarget
ADDITIONAL_TARGETS="%(echo %target_list | sed -e 's/[^ ]\+/&-suse-linux/g')"
ADDITIONAL_TARGETS="$ADDITIONAL_TARGETS powerpc-macos powerpc-macos10 spu-elf"
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
%if !%{test_vanilla}
ADDITIONAL_TARGETS="$ADDITIONAL_TARGETS i386-macos10"
EXTRA_TARGETS="$EXTRA_TARGETS,i386-macos10"
%endif
%else
ADDITIONAL_TARGETS=
EXTRA_TARGETS=
%endif
ADDITIONAL_LD_TARGETS=
EXTRA_LD_TARGETS=
%ifarch sparc
ADDITIONAL_LD_TARGETS="sparc64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,sparc64-suse-linux"
%endif
%ifarch ppc
ADDITIONAL_LD_TARGETS="powerpc64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,powerpc64-suse-linux"
%endif
%ifarch s390
ADDITIONAL_LD_TARGETS="s390x-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390x-suse-linux"
%endif
%ifarch s390x
ADDITIONAL_LD_TARGETS="s390-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390-suse-linux"
%endif
%ifarch %ix86
ADDITIONAL_LD_TARGETS="x86_64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,x86_64-suse-linux"
%endif
EXTRA_GOLD_TARGETS=$EXTRA_LD_TARGETS
%ifarch ppc ppc64
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
%endif
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
--prefix=%{_prefix} \\\
@ -306,21 +233,18 @@ ADDITIONAL_LD_TARGETS="x86_64-suse-linux"
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
--with-pic --build=%{HOST} \\\
--disable-ld-targets \\\
${ADDITIONAL_LD_TARGETS:+--enable-ld-targets="${ADDITIONAL_LD_TARGETS// /,}"} \\\
${ADDITIONAL_TARGETS:+--enable-targets="${ADDITIONAL_TARGETS// /,}"}
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
%define extra_ld_targets \\\
${EXTRA_LD_TARGETS:+--enable-ld-targets="${EXTRA_LD_TARGETS#,}"}
%define extra_gold_targets \\\
${EXTRA_GOLD_TARGETS:+--enable-ld-targets="${EXTRA_GOLD_TARGETS#,}"}
mkdir build-dir
cd build-dir
../configure %common_flags --enable-shared
../configure %common_flags %extra_ld_targets --enable-shared
make %{?jobs:-j%jobs} all-bfd TARGET-bfd=headers
# force reconfiguring
rm bfd/Makefile
make %{?jobs:-j%jobs}
%ifarch %gold_archs
mkdir ../build-dir2
cd ../build-dir2
../configure %common_flags --enable-shared --enable-gold --program-prefix=go
make %{?jobs:-j%jobs}
%endif
mkdir ../build-dir3
cd ../build-dir3
../configure %common_flags --disable-shared
@ -330,10 +254,6 @@ make %{?jobs:-j%jobs} all-bfd all-opcodes
cd build-dir
%ifnarch %arm
make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || %{make_check_handling}
%ifarch %gold_archs
cd ../build-dir2
make -k check-gold CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || :
%endif
%endif
#
#
@ -343,24 +263,24 @@ make -k check-gold CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" |
echo "Building cross binutils."
mkdir build-dir
cd build-dir
ADDITIONAL_TARGETS=
EXTRA_TARGETS=
%if "%{TARGET}" == "sparc"
ADDITIONAL_TARGETS="sparc64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,sparc64-suse-linux"
%endif
%if "%{TARGET}" == "powerpc"
ADDITIONAL_TARGETS="powerpc64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc64-suse-linux"
%endif
%if "%{TARGET}" == "s390"
ADDITIONAL_TARGETS="s390x-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,s390x-suse-linux"
%endif
%if "%{TARGET}" == "s390x"
ADDITIONAL_TARGETS="s390-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,s390-suse-linux"
%endif
%if "%{TARGET}" == "i586"
ADDITIONAL_TARGETS="x86_64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,x86_64-suse-linux"
%endif
%if "%{TARGET}" == "hppa"
ADDITIONAL_TARGETS="hppa64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,hppa64-suse-linux"
%endif
%if "%{TARGET}" == "avr" || "%{TARGET}" == "spu"
TARGET_OS=%{TARGET}
@ -378,7 +298,7 @@ TARGET_OS=%{TARGET}-linux
%else
--with-sysroot=%{_prefix}/%{TARGET_OS}/sys-root \
%endif
${ADDITIONAL_TARGETS:+--enable-targets="${ADDITIONAL_TARGETS// /,}"}
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
make %{?jobs:-j%jobs} all-bfd TARGET-bfd=headers
# force reconfiguring
rm bfd/Makefile
@ -400,11 +320,6 @@ make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || :
cd build-dir
%if "%name" == "binutils"
# installing native binutils
%ifarch %gold_archs
cd ../build-dir2
make DESTDIR=$RPM_BUILD_ROOT install-gold
cd ../build-dir
%endif
make DESTDIR=$RPM_BUILD_ROOT install-info install
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
cd ../build-dir3
@ -434,9 +349,6 @@ cd ..
%find_lang ld binutils.lang
%find_lang opcodes binutils.lang
%find_lang gprof binutils.lang
#%ifarch %gold_archs
#%find_lang gold binutils.lang
#%endif
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
install -m 644 binutils/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-binutils
install -m 644 gas/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-gas
@ -483,24 +395,16 @@ rm -rf $RPM_BUILD_ROOT
%{_prefix}/%{HOST}/lib/ldscripts
%{_libdir}/ldscripts
%{_bindir}/*
%ifarch %gold_archs
%exclude %{_bindir}/gold
%endif
%doc %{_infodir}/*.gz
%{_libdir}/lib*-%{version}*.so
%doc %{_mandir}/man1/*.1.gz
%else
%{_prefix}
%endif
%ifarch %gold_archs
%files gold
%defattr(-,root,root)
%doc gold/NEWS gold/README
%{_bindir}/gold
%endif
%changelog
* Thu Jan 22 2009 schwab@suse.de
- Adjust list of extra targets.
* Mon Jan 19 2009 schwab@suse.de
- Update to head of trunk.
- Add gold.

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jan 22 14:20:16 CET 2009 - schwab@suse.de
- Adjust list of extra targets.
-------------------------------------------------------------------
Mon Jan 19 18:19:30 CET 2009 - schwab@suse.de

View File

@ -20,7 +20,7 @@
Name: cross-i386-binutils
BuildRequires: bison dejagnu flex gcc-c++ zlib-devel
Version: 2.19.51
Release: 1
Release: 2
#
# RUN_TESTS
%define run_tests %(test ! -f %_sourcedir/RUN_TESTS ; echo $?)
@ -99,83 +99,6 @@ embedded tools.
Authors:
--------
Alan Modra <amodra@bigpond.net.au>
Andreas Jaeger <aj@suse.de>
Andreas Schwab <schwab@suse.de>
Bill Cox <bill@cygnus.com>
Brendan Kehoe <brendan@cygnus.com>
D. V. Henkel-Wallace <gumby@cygnus.com>
DJ Delorie <dj@redhat.com>
David D "Zoo" Zuhn <zoo@cygnus.com>
David J. Mackenzie <djm@cygnus.com>
Denis Chertykov <denisc@overta.ru>
Diego Novillo <dnovillo@redhat.com>
Doug Evans <dje@cygnus.com>
Eric Christopher <echristo@redhat.com>
Eric Youngdale <eric@aib.com>
Fred Fish <fnf@cygnus.com>
Geoff Keating <geoffk@redhat.com>
H.J.Lu <hjl@gnu.org>
Hans-Peter Nilsson <hp@axis.com>
Ian Dall <dall@hfrd.dsto.gov.au>
Ian Taylor <ian@zembu.com>
J.T. Conklin <jtc@cygnus.com>
Jakub Jelinek <jakub@redhat.com>
Jan Hubicka <jh@suse.cz>
Jason Eckhardt <jle@redhat.com>
Jason Merrill <jason@redhat.com>
Jeff Law <law@redhat.com>
Jeffrey Osier <jeffrey@cygnus.com>
Jeffrey Wheat <cassidy@cygnus.com>
Jim Kingdon <kingdon@cygnus.com>
Jim Wilson <wilson@redhat.com>
John Gilmore <gnu@cygnus.com>
Jörn Rennecke <amylaar@redhat.com>
K. Richard Pixley <rich@cygnus.com>
Ken Raeburn <raeburn@cygnus.com>
Kung Hsu <kung@cygnus.com>
Mark Eichin <eichin@cygnus.com>
Michael Meissner <meissner@redhat.com>
Michael Tiemann <tiemann@cygnus.com>
Mike Werner <mtw@cygnus.com>
Nick Clifton <nickc@redhat.com>
Per Bothner <bothner@cygnus.com>
Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
Richard Earnshaw <rwe@pegasus.esprit.ec.org>
Richard Henderson <rth@redhat.com>
Richard Stallman <rms@gnu.org>
Rob Savoye <rob@cygnus.com>
Roland H. Pesch <pesch@wrs.com>
Sean Eric Fagan <sef@cygnus.com>
Stan Shebs <shebs@apple.com>
Stephane Carrez <Stephane.Carrez@worldnet.fr>
Steve Chamberlain <sac@cygnus.com>
Stu Grossman <grossman@cygnus.com>
Torbjorn Granlund <tege@cygnus.com>
Ulf Carlsson <ulfc@calypso.engr.sgi.com>
%package gold
License: GPL v2 or later; LGPL v2.1 or later; X11/MIT
Summary: GNU binutils for Cross-Development to X86 Processors
AutoReqProv: on
Requires: binutils = %{version}-%{release}
Group: Development/Tools/Building
%define gold_archs %ix86 x86_64 ppc ppc64 sparc sparc64
%description gold
Cross-development utilities: ar, as, gasp, gprof, ld, nm, objcopy,
objdump, ranlib, size, strings, strip. These utilities are needed
whenever you want to compile a program or a kernel. This package
differs from the normal SUSE binutils package in that it is designed to
cross-compile from whatever platform SUSE Linux is running on to X86
targets. This can be handy even if you are running on an X86
development platform, because it decouples the host tools from your
embedded tools.
Authors:
--------
Alan Modra <amodra@bigpond.net.au>
@ -273,29 +196,33 @@ RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wno-error"
# Building native binutils
echo "Building native binutils."
%if %build_multitarget
ADDITIONAL_TARGETS="%(echo %target_list | sed -e 's/[^ ]\+/&-suse-linux/g')"
ADDITIONAL_TARGETS="$ADDITIONAL_TARGETS powerpc-macos powerpc-macos10 spu-elf"
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
%if !%{test_vanilla}
ADDITIONAL_TARGETS="$ADDITIONAL_TARGETS i386-macos10"
EXTRA_TARGETS="$EXTRA_TARGETS,i386-macos10"
%endif
%else
ADDITIONAL_TARGETS=
EXTRA_TARGETS=
%endif
ADDITIONAL_LD_TARGETS=
EXTRA_LD_TARGETS=
%ifarch sparc
ADDITIONAL_LD_TARGETS="sparc64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,sparc64-suse-linux"
%endif
%ifarch ppc
ADDITIONAL_LD_TARGETS="powerpc64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,powerpc64-suse-linux"
%endif
%ifarch s390
ADDITIONAL_LD_TARGETS="s390x-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390x-suse-linux"
%endif
%ifarch s390x
ADDITIONAL_LD_TARGETS="s390-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390-suse-linux"
%endif
%ifarch %ix86
ADDITIONAL_LD_TARGETS="x86_64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,x86_64-suse-linux"
%endif
EXTRA_GOLD_TARGETS=$EXTRA_LD_TARGETS
%ifarch ppc ppc64
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
%endif
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
--prefix=%{_prefix} \\\
@ -306,21 +233,18 @@ ADDITIONAL_LD_TARGETS="x86_64-suse-linux"
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
--with-pic --build=%{HOST} \\\
--disable-ld-targets \\\
${ADDITIONAL_LD_TARGETS:+--enable-ld-targets="${ADDITIONAL_LD_TARGETS// /,}"} \\\
${ADDITIONAL_TARGETS:+--enable-targets="${ADDITIONAL_TARGETS// /,}"}
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
%define extra_ld_targets \\\
${EXTRA_LD_TARGETS:+--enable-ld-targets="${EXTRA_LD_TARGETS#,}"}
%define extra_gold_targets \\\
${EXTRA_GOLD_TARGETS:+--enable-ld-targets="${EXTRA_GOLD_TARGETS#,}"}
mkdir build-dir
cd build-dir
../configure %common_flags --enable-shared
../configure %common_flags %extra_ld_targets --enable-shared
make %{?jobs:-j%jobs} all-bfd TARGET-bfd=headers
# force reconfiguring
rm bfd/Makefile
make %{?jobs:-j%jobs}
%ifarch %gold_archs
mkdir ../build-dir2
cd ../build-dir2
../configure %common_flags --enable-shared --enable-gold --program-prefix=go
make %{?jobs:-j%jobs}
%endif
mkdir ../build-dir3
cd ../build-dir3
../configure %common_flags --disable-shared
@ -330,10 +254,6 @@ make %{?jobs:-j%jobs} all-bfd all-opcodes
cd build-dir
%ifnarch %arm
make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || %{make_check_handling}
%ifarch %gold_archs
cd ../build-dir2
make -k check-gold CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || :
%endif
%endif
#
#
@ -343,24 +263,24 @@ make -k check-gold CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" |
echo "Building cross binutils."
mkdir build-dir
cd build-dir
ADDITIONAL_TARGETS=
EXTRA_TARGETS=
%if "%{TARGET}" == "sparc"
ADDITIONAL_TARGETS="sparc64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,sparc64-suse-linux"
%endif
%if "%{TARGET}" == "powerpc"
ADDITIONAL_TARGETS="powerpc64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc64-suse-linux"
%endif
%if "%{TARGET}" == "s390"
ADDITIONAL_TARGETS="s390x-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,s390x-suse-linux"
%endif
%if "%{TARGET}" == "s390x"
ADDITIONAL_TARGETS="s390-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,s390-suse-linux"
%endif
%if "%{TARGET}" == "i586"
ADDITIONAL_TARGETS="x86_64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,x86_64-suse-linux"
%endif
%if "%{TARGET}" == "hppa"
ADDITIONAL_TARGETS="hppa64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,hppa64-suse-linux"
%endif
%if "%{TARGET}" == "avr" || "%{TARGET}" == "spu"
TARGET_OS=%{TARGET}
@ -378,7 +298,7 @@ TARGET_OS=%{TARGET}-linux
%else
--with-sysroot=%{_prefix}/%{TARGET_OS}/sys-root \
%endif
${ADDITIONAL_TARGETS:+--enable-targets="${ADDITIONAL_TARGETS// /,}"}
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
make %{?jobs:-j%jobs} all-bfd TARGET-bfd=headers
# force reconfiguring
rm bfd/Makefile
@ -400,11 +320,6 @@ make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || :
cd build-dir
%if "%name" == "binutils"
# installing native binutils
%ifarch %gold_archs
cd ../build-dir2
make DESTDIR=$RPM_BUILD_ROOT install-gold
cd ../build-dir
%endif
make DESTDIR=$RPM_BUILD_ROOT install-info install
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
cd ../build-dir3
@ -434,9 +349,6 @@ cd ..
%find_lang ld binutils.lang
%find_lang opcodes binutils.lang
%find_lang gprof binutils.lang
#%ifarch %gold_archs
#%find_lang gold binutils.lang
#%endif
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
install -m 644 binutils/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-binutils
install -m 644 gas/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-gas
@ -483,24 +395,16 @@ rm -rf $RPM_BUILD_ROOT
%{_prefix}/%{HOST}/lib/ldscripts
%{_libdir}/ldscripts
%{_bindir}/*
%ifarch %gold_archs
%exclude %{_bindir}/gold
%endif
%doc %{_infodir}/*.gz
%{_libdir}/lib*-%{version}*.so
%doc %{_mandir}/man1/*.1.gz
%else
%{_prefix}
%endif
%ifarch %gold_archs
%files gold
%defattr(-,root,root)
%doc gold/NEWS gold/README
%{_bindir}/gold
%endif
%changelog
* Thu Jan 22 2009 schwab@suse.de
- Adjust list of extra targets.
* Mon Jan 19 2009 schwab@suse.de
- Update to head of trunk.
- Add gold.

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jan 22 14:20:16 CET 2009 - schwab@suse.de
- Adjust list of extra targets.
-------------------------------------------------------------------
Mon Jan 19 18:19:30 CET 2009 - schwab@suse.de

View File

@ -20,7 +20,7 @@
Name: cross-ia64-binutils
BuildRequires: bison dejagnu flex gcc-c++ zlib-devel
Version: 2.19.51
Release: 1
Release: 2
#
# RUN_TESTS
%define run_tests %(test ! -f %_sourcedir/RUN_TESTS ; echo $?)
@ -99,83 +99,6 @@ embedded tools.
Authors:
--------
Alan Modra <amodra@bigpond.net.au>
Andreas Jaeger <aj@suse.de>
Andreas Schwab <schwab@suse.de>
Bill Cox <bill@cygnus.com>
Brendan Kehoe <brendan@cygnus.com>
D. V. Henkel-Wallace <gumby@cygnus.com>
DJ Delorie <dj@redhat.com>
David D "Zoo" Zuhn <zoo@cygnus.com>
David J. Mackenzie <djm@cygnus.com>
Denis Chertykov <denisc@overta.ru>
Diego Novillo <dnovillo@redhat.com>
Doug Evans <dje@cygnus.com>
Eric Christopher <echristo@redhat.com>
Eric Youngdale <eric@aib.com>
Fred Fish <fnf@cygnus.com>
Geoff Keating <geoffk@redhat.com>
H.J.Lu <hjl@gnu.org>
Hans-Peter Nilsson <hp@axis.com>
Ian Dall <dall@hfrd.dsto.gov.au>
Ian Taylor <ian@zembu.com>
J.T. Conklin <jtc@cygnus.com>
Jakub Jelinek <jakub@redhat.com>
Jan Hubicka <jh@suse.cz>
Jason Eckhardt <jle@redhat.com>
Jason Merrill <jason@redhat.com>
Jeff Law <law@redhat.com>
Jeffrey Osier <jeffrey@cygnus.com>
Jeffrey Wheat <cassidy@cygnus.com>
Jim Kingdon <kingdon@cygnus.com>
Jim Wilson <wilson@redhat.com>
John Gilmore <gnu@cygnus.com>
Jörn Rennecke <amylaar@redhat.com>
K. Richard Pixley <rich@cygnus.com>
Ken Raeburn <raeburn@cygnus.com>
Kung Hsu <kung@cygnus.com>
Mark Eichin <eichin@cygnus.com>
Michael Meissner <meissner@redhat.com>
Michael Tiemann <tiemann@cygnus.com>
Mike Werner <mtw@cygnus.com>
Nick Clifton <nickc@redhat.com>
Per Bothner <bothner@cygnus.com>
Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
Richard Earnshaw <rwe@pegasus.esprit.ec.org>
Richard Henderson <rth@redhat.com>
Richard Stallman <rms@gnu.org>
Rob Savoye <rob@cygnus.com>
Roland H. Pesch <pesch@wrs.com>
Sean Eric Fagan <sef@cygnus.com>
Stan Shebs <shebs@apple.com>
Stephane Carrez <Stephane.Carrez@worldnet.fr>
Steve Chamberlain <sac@cygnus.com>
Stu Grossman <grossman@cygnus.com>
Torbjorn Granlund <tege@cygnus.com>
Ulf Carlsson <ulfc@calypso.engr.sgi.com>
%package gold
License: GPL v2 or later; LGPL v2.1 or later; X11/MIT
Summary: GNU binutils for Cross-Development to IA64 Processors
AutoReqProv: on
Requires: binutils = %{version}-%{release}
Group: Development/Tools/Building
%define gold_archs %ix86 x86_64 ppc ppc64 sparc sparc64
%description gold
Cross-development utilities: ar, as, gasp, gprof, ld, nm, objcopy,
objdump, ranlib, size, strings, strip. These utilities are needed
whenever you want to compile a program or a kernel. This package
differs from the normal SUSE binutils package in that it is designed to
cross-compile from whatever platform SUSE Linux is running on to IA64
targets. This can be handy even if you are running on an IA64
development platform, because it decouples the host tools from your
embedded tools.
Authors:
--------
Alan Modra <amodra@bigpond.net.au>
@ -273,29 +196,33 @@ RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wno-error"
# Building native binutils
echo "Building native binutils."
%if %build_multitarget
ADDITIONAL_TARGETS="%(echo %target_list | sed -e 's/[^ ]\+/&-suse-linux/g')"
ADDITIONAL_TARGETS="$ADDITIONAL_TARGETS powerpc-macos powerpc-macos10 spu-elf"
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
%if !%{test_vanilla}
ADDITIONAL_TARGETS="$ADDITIONAL_TARGETS i386-macos10"
EXTRA_TARGETS="$EXTRA_TARGETS,i386-macos10"
%endif
%else
ADDITIONAL_TARGETS=
EXTRA_TARGETS=
%endif
ADDITIONAL_LD_TARGETS=
EXTRA_LD_TARGETS=
%ifarch sparc
ADDITIONAL_LD_TARGETS="sparc64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,sparc64-suse-linux"
%endif
%ifarch ppc
ADDITIONAL_LD_TARGETS="powerpc64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,powerpc64-suse-linux"
%endif
%ifarch s390
ADDITIONAL_LD_TARGETS="s390x-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390x-suse-linux"
%endif
%ifarch s390x
ADDITIONAL_LD_TARGETS="s390-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390-suse-linux"
%endif
%ifarch %ix86
ADDITIONAL_LD_TARGETS="x86_64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,x86_64-suse-linux"
%endif
EXTRA_GOLD_TARGETS=$EXTRA_LD_TARGETS
%ifarch ppc ppc64
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
%endif
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
--prefix=%{_prefix} \\\
@ -306,21 +233,18 @@ ADDITIONAL_LD_TARGETS="x86_64-suse-linux"
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
--with-pic --build=%{HOST} \\\
--disable-ld-targets \\\
${ADDITIONAL_LD_TARGETS:+--enable-ld-targets="${ADDITIONAL_LD_TARGETS// /,}"} \\\
${ADDITIONAL_TARGETS:+--enable-targets="${ADDITIONAL_TARGETS// /,}"}
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
%define extra_ld_targets \\\
${EXTRA_LD_TARGETS:+--enable-ld-targets="${EXTRA_LD_TARGETS#,}"}
%define extra_gold_targets \\\
${EXTRA_GOLD_TARGETS:+--enable-ld-targets="${EXTRA_GOLD_TARGETS#,}"}
mkdir build-dir
cd build-dir
../configure %common_flags --enable-shared
../configure %common_flags %extra_ld_targets --enable-shared
make %{?jobs:-j%jobs} all-bfd TARGET-bfd=headers
# force reconfiguring
rm bfd/Makefile
make %{?jobs:-j%jobs}
%ifarch %gold_archs
mkdir ../build-dir2
cd ../build-dir2
../configure %common_flags --enable-shared --enable-gold --program-prefix=go
make %{?jobs:-j%jobs}
%endif
mkdir ../build-dir3
cd ../build-dir3
../configure %common_flags --disable-shared
@ -330,10 +254,6 @@ make %{?jobs:-j%jobs} all-bfd all-opcodes
cd build-dir
%ifnarch %arm
make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || %{make_check_handling}
%ifarch %gold_archs
cd ../build-dir2
make -k check-gold CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || :
%endif
%endif
#
#
@ -343,24 +263,24 @@ make -k check-gold CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" |
echo "Building cross binutils."
mkdir build-dir
cd build-dir
ADDITIONAL_TARGETS=
EXTRA_TARGETS=
%if "%{TARGET}" == "sparc"
ADDITIONAL_TARGETS="sparc64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,sparc64-suse-linux"
%endif
%if "%{TARGET}" == "powerpc"
ADDITIONAL_TARGETS="powerpc64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc64-suse-linux"
%endif
%if "%{TARGET}" == "s390"
ADDITIONAL_TARGETS="s390x-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,s390x-suse-linux"
%endif
%if "%{TARGET}" == "s390x"
ADDITIONAL_TARGETS="s390-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,s390-suse-linux"
%endif
%if "%{TARGET}" == "i586"
ADDITIONAL_TARGETS="x86_64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,x86_64-suse-linux"
%endif
%if "%{TARGET}" == "hppa"
ADDITIONAL_TARGETS="hppa64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,hppa64-suse-linux"
%endif
%if "%{TARGET}" == "avr" || "%{TARGET}" == "spu"
TARGET_OS=%{TARGET}
@ -378,7 +298,7 @@ TARGET_OS=%{TARGET}-linux
%else
--with-sysroot=%{_prefix}/%{TARGET_OS}/sys-root \
%endif
${ADDITIONAL_TARGETS:+--enable-targets="${ADDITIONAL_TARGETS// /,}"}
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
make %{?jobs:-j%jobs} all-bfd TARGET-bfd=headers
# force reconfiguring
rm bfd/Makefile
@ -400,11 +320,6 @@ make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || :
cd build-dir
%if "%name" == "binutils"
# installing native binutils
%ifarch %gold_archs
cd ../build-dir2
make DESTDIR=$RPM_BUILD_ROOT install-gold
cd ../build-dir
%endif
make DESTDIR=$RPM_BUILD_ROOT install-info install
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
cd ../build-dir3
@ -434,9 +349,6 @@ cd ..
%find_lang ld binutils.lang
%find_lang opcodes binutils.lang
%find_lang gprof binutils.lang
#%ifarch %gold_archs
#%find_lang gold binutils.lang
#%endif
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
install -m 644 binutils/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-binutils
install -m 644 gas/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-gas
@ -483,24 +395,16 @@ rm -rf $RPM_BUILD_ROOT
%{_prefix}/%{HOST}/lib/ldscripts
%{_libdir}/ldscripts
%{_bindir}/*
%ifarch %gold_archs
%exclude %{_bindir}/gold
%endif
%doc %{_infodir}/*.gz
%{_libdir}/lib*-%{version}*.so
%doc %{_mandir}/man1/*.1.gz
%else
%{_prefix}
%endif
%ifarch %gold_archs
%files gold
%defattr(-,root,root)
%doc gold/NEWS gold/README
%{_bindir}/gold
%endif
%changelog
* Thu Jan 22 2009 schwab@suse.de
- Adjust list of extra targets.
* Mon Jan 19 2009 schwab@suse.de
- Update to head of trunk.
- Add gold.

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jan 22 14:20:16 CET 2009 - schwab@suse.de
- Adjust list of extra targets.
-------------------------------------------------------------------
Mon Jan 19 18:19:30 CET 2009 - schwab@suse.de

View File

@ -20,7 +20,7 @@
Name: cross-mips-binutils
BuildRequires: bison dejagnu flex gcc-c++ zlib-devel
Version: 2.19.51
Release: 1
Release: 2
#
# RUN_TESTS
%define run_tests %(test ! -f %_sourcedir/RUN_TESTS ; echo $?)
@ -99,83 +99,6 @@ embedded tools.
Authors:
--------
Alan Modra <amodra@bigpond.net.au>
Andreas Jaeger <aj@suse.de>
Andreas Schwab <schwab@suse.de>
Bill Cox <bill@cygnus.com>
Brendan Kehoe <brendan@cygnus.com>
D. V. Henkel-Wallace <gumby@cygnus.com>
DJ Delorie <dj@redhat.com>
David D "Zoo" Zuhn <zoo@cygnus.com>
David J. Mackenzie <djm@cygnus.com>
Denis Chertykov <denisc@overta.ru>
Diego Novillo <dnovillo@redhat.com>
Doug Evans <dje@cygnus.com>
Eric Christopher <echristo@redhat.com>
Eric Youngdale <eric@aib.com>
Fred Fish <fnf@cygnus.com>
Geoff Keating <geoffk@redhat.com>
H.J.Lu <hjl@gnu.org>
Hans-Peter Nilsson <hp@axis.com>
Ian Dall <dall@hfrd.dsto.gov.au>
Ian Taylor <ian@zembu.com>
J.T. Conklin <jtc@cygnus.com>
Jakub Jelinek <jakub@redhat.com>
Jan Hubicka <jh@suse.cz>
Jason Eckhardt <jle@redhat.com>
Jason Merrill <jason@redhat.com>
Jeff Law <law@redhat.com>
Jeffrey Osier <jeffrey@cygnus.com>
Jeffrey Wheat <cassidy@cygnus.com>
Jim Kingdon <kingdon@cygnus.com>
Jim Wilson <wilson@redhat.com>
John Gilmore <gnu@cygnus.com>
Jörn Rennecke <amylaar@redhat.com>
K. Richard Pixley <rich@cygnus.com>
Ken Raeburn <raeburn@cygnus.com>
Kung Hsu <kung@cygnus.com>
Mark Eichin <eichin@cygnus.com>
Michael Meissner <meissner@redhat.com>
Michael Tiemann <tiemann@cygnus.com>
Mike Werner <mtw@cygnus.com>
Nick Clifton <nickc@redhat.com>
Per Bothner <bothner@cygnus.com>
Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
Richard Earnshaw <rwe@pegasus.esprit.ec.org>
Richard Henderson <rth@redhat.com>
Richard Stallman <rms@gnu.org>
Rob Savoye <rob@cygnus.com>
Roland H. Pesch <pesch@wrs.com>
Sean Eric Fagan <sef@cygnus.com>
Stan Shebs <shebs@apple.com>
Stephane Carrez <Stephane.Carrez@worldnet.fr>
Steve Chamberlain <sac@cygnus.com>
Stu Grossman <grossman@cygnus.com>
Torbjorn Granlund <tege@cygnus.com>
Ulf Carlsson <ulfc@calypso.engr.sgi.com>
%package gold
License: GPL v2 or later; LGPL v2.1 or later; X11/MIT
Summary: GNU binutils for Cross-Development to MIPS Processors
AutoReqProv: on
Requires: binutils = %{version}-%{release}
Group: Development/Tools/Building
%define gold_archs %ix86 x86_64 ppc ppc64 sparc sparc64
%description gold
Cross-development utilities: ar, as, gasp, gprof, ld, nm, objcopy,
objdump, ranlib, size, strings, strip. These utilities are needed
whenever you want to compile a program or a kernel. This package
differs from the normal SUSE binutils package in that it is designed to
cross-compile from whatever platform SUSE Linux is running on to MIPS
targets. This can be handy even if you are running on a MIPS
development platform, because it decouples the host tools from your
embedded tools.
Authors:
--------
Alan Modra <amodra@bigpond.net.au>
@ -273,29 +196,33 @@ RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wno-error"
# Building native binutils
echo "Building native binutils."
%if %build_multitarget
ADDITIONAL_TARGETS="%(echo %target_list | sed -e 's/[^ ]\+/&-suse-linux/g')"
ADDITIONAL_TARGETS="$ADDITIONAL_TARGETS powerpc-macos powerpc-macos10 spu-elf"
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
%if !%{test_vanilla}
ADDITIONAL_TARGETS="$ADDITIONAL_TARGETS i386-macos10"
EXTRA_TARGETS="$EXTRA_TARGETS,i386-macos10"
%endif
%else
ADDITIONAL_TARGETS=
EXTRA_TARGETS=
%endif
ADDITIONAL_LD_TARGETS=
EXTRA_LD_TARGETS=
%ifarch sparc
ADDITIONAL_LD_TARGETS="sparc64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,sparc64-suse-linux"
%endif
%ifarch ppc
ADDITIONAL_LD_TARGETS="powerpc64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,powerpc64-suse-linux"
%endif
%ifarch s390
ADDITIONAL_LD_TARGETS="s390x-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390x-suse-linux"
%endif
%ifarch s390x
ADDITIONAL_LD_TARGETS="s390-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390-suse-linux"
%endif
%ifarch %ix86
ADDITIONAL_LD_TARGETS="x86_64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,x86_64-suse-linux"
%endif
EXTRA_GOLD_TARGETS=$EXTRA_LD_TARGETS
%ifarch ppc ppc64
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
%endif
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
--prefix=%{_prefix} \\\
@ -306,21 +233,18 @@ ADDITIONAL_LD_TARGETS="x86_64-suse-linux"
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
--with-pic --build=%{HOST} \\\
--disable-ld-targets \\\
${ADDITIONAL_LD_TARGETS:+--enable-ld-targets="${ADDITIONAL_LD_TARGETS// /,}"} \\\
${ADDITIONAL_TARGETS:+--enable-targets="${ADDITIONAL_TARGETS// /,}"}
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
%define extra_ld_targets \\\
${EXTRA_LD_TARGETS:+--enable-ld-targets="${EXTRA_LD_TARGETS#,}"}
%define extra_gold_targets \\\
${EXTRA_GOLD_TARGETS:+--enable-ld-targets="${EXTRA_GOLD_TARGETS#,}"}
mkdir build-dir
cd build-dir
../configure %common_flags --enable-shared
../configure %common_flags %extra_ld_targets --enable-shared
make %{?jobs:-j%jobs} all-bfd TARGET-bfd=headers
# force reconfiguring
rm bfd/Makefile
make %{?jobs:-j%jobs}
%ifarch %gold_archs
mkdir ../build-dir2
cd ../build-dir2
../configure %common_flags --enable-shared --enable-gold --program-prefix=go
make %{?jobs:-j%jobs}
%endif
mkdir ../build-dir3
cd ../build-dir3
../configure %common_flags --disable-shared
@ -330,10 +254,6 @@ make %{?jobs:-j%jobs} all-bfd all-opcodes
cd build-dir
%ifnarch %arm
make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || %{make_check_handling}
%ifarch %gold_archs
cd ../build-dir2
make -k check-gold CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || :
%endif
%endif
#
#
@ -343,24 +263,24 @@ make -k check-gold CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" |
echo "Building cross binutils."
mkdir build-dir
cd build-dir
ADDITIONAL_TARGETS=
EXTRA_TARGETS=
%if "%{TARGET}" == "sparc"
ADDITIONAL_TARGETS="sparc64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,sparc64-suse-linux"
%endif
%if "%{TARGET}" == "powerpc"
ADDITIONAL_TARGETS="powerpc64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc64-suse-linux"
%endif
%if "%{TARGET}" == "s390"
ADDITIONAL_TARGETS="s390x-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,s390x-suse-linux"
%endif
%if "%{TARGET}" == "s390x"
ADDITIONAL_TARGETS="s390-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,s390-suse-linux"
%endif
%if "%{TARGET}" == "i586"
ADDITIONAL_TARGETS="x86_64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,x86_64-suse-linux"
%endif
%if "%{TARGET}" == "hppa"
ADDITIONAL_TARGETS="hppa64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,hppa64-suse-linux"
%endif
%if "%{TARGET}" == "avr" || "%{TARGET}" == "spu"
TARGET_OS=%{TARGET}
@ -378,7 +298,7 @@ TARGET_OS=%{TARGET}-linux
%else
--with-sysroot=%{_prefix}/%{TARGET_OS}/sys-root \
%endif
${ADDITIONAL_TARGETS:+--enable-targets="${ADDITIONAL_TARGETS// /,}"}
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
make %{?jobs:-j%jobs} all-bfd TARGET-bfd=headers
# force reconfiguring
rm bfd/Makefile
@ -400,11 +320,6 @@ make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || :
cd build-dir
%if "%name" == "binutils"
# installing native binutils
%ifarch %gold_archs
cd ../build-dir2
make DESTDIR=$RPM_BUILD_ROOT install-gold
cd ../build-dir
%endif
make DESTDIR=$RPM_BUILD_ROOT install-info install
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
cd ../build-dir3
@ -434,9 +349,6 @@ cd ..
%find_lang ld binutils.lang
%find_lang opcodes binutils.lang
%find_lang gprof binutils.lang
#%ifarch %gold_archs
#%find_lang gold binutils.lang
#%endif
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
install -m 644 binutils/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-binutils
install -m 644 gas/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-gas
@ -483,24 +395,16 @@ rm -rf $RPM_BUILD_ROOT
%{_prefix}/%{HOST}/lib/ldscripts
%{_libdir}/ldscripts
%{_bindir}/*
%ifarch %gold_archs
%exclude %{_bindir}/gold
%endif
%doc %{_infodir}/*.gz
%{_libdir}/lib*-%{version}*.so
%doc %{_mandir}/man1/*.1.gz
%else
%{_prefix}
%endif
%ifarch %gold_archs
%files gold
%defattr(-,root,root)
%doc gold/NEWS gold/README
%{_bindir}/gold
%endif
%changelog
* Thu Jan 22 2009 schwab@suse.de
- Adjust list of extra targets.
* Mon Jan 19 2009 schwab@suse.de
- Update to head of trunk.
- Add gold.

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jan 22 14:20:16 CET 2009 - schwab@suse.de
- Adjust list of extra targets.
-------------------------------------------------------------------
Mon Jan 19 18:19:30 CET 2009 - schwab@suse.de

View File

@ -20,7 +20,7 @@
Name: cross-ppc-binutils
BuildRequires: bison dejagnu flex gcc-c++ zlib-devel
Version: 2.19.51
Release: 1
Release: 2
#
# RUN_TESTS
%define run_tests %(test ! -f %_sourcedir/RUN_TESTS ; echo $?)
@ -99,83 +99,6 @@ embedded tools.
Authors:
--------
Alan Modra <amodra@bigpond.net.au>
Andreas Jaeger <aj@suse.de>
Andreas Schwab <schwab@suse.de>
Bill Cox <bill@cygnus.com>
Brendan Kehoe <brendan@cygnus.com>
D. V. Henkel-Wallace <gumby@cygnus.com>
DJ Delorie <dj@redhat.com>
David D "Zoo" Zuhn <zoo@cygnus.com>
David J. Mackenzie <djm@cygnus.com>
Denis Chertykov <denisc@overta.ru>
Diego Novillo <dnovillo@redhat.com>
Doug Evans <dje@cygnus.com>
Eric Christopher <echristo@redhat.com>
Eric Youngdale <eric@aib.com>
Fred Fish <fnf@cygnus.com>
Geoff Keating <geoffk@redhat.com>
H.J.Lu <hjl@gnu.org>
Hans-Peter Nilsson <hp@axis.com>
Ian Dall <dall@hfrd.dsto.gov.au>
Ian Taylor <ian@zembu.com>
J.T. Conklin <jtc@cygnus.com>
Jakub Jelinek <jakub@redhat.com>
Jan Hubicka <jh@suse.cz>
Jason Eckhardt <jle@redhat.com>
Jason Merrill <jason@redhat.com>
Jeff Law <law@redhat.com>
Jeffrey Osier <jeffrey@cygnus.com>
Jeffrey Wheat <cassidy@cygnus.com>
Jim Kingdon <kingdon@cygnus.com>
Jim Wilson <wilson@redhat.com>
John Gilmore <gnu@cygnus.com>
Jörn Rennecke <amylaar@redhat.com>
K. Richard Pixley <rich@cygnus.com>
Ken Raeburn <raeburn@cygnus.com>
Kung Hsu <kung@cygnus.com>
Mark Eichin <eichin@cygnus.com>
Michael Meissner <meissner@redhat.com>
Michael Tiemann <tiemann@cygnus.com>
Mike Werner <mtw@cygnus.com>
Nick Clifton <nickc@redhat.com>
Per Bothner <bothner@cygnus.com>
Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
Richard Earnshaw <rwe@pegasus.esprit.ec.org>
Richard Henderson <rth@redhat.com>
Richard Stallman <rms@gnu.org>
Rob Savoye <rob@cygnus.com>
Roland H. Pesch <pesch@wrs.com>
Sean Eric Fagan <sef@cygnus.com>
Stan Shebs <shebs@apple.com>
Stephane Carrez <Stephane.Carrez@worldnet.fr>
Steve Chamberlain <sac@cygnus.com>
Stu Grossman <grossman@cygnus.com>
Torbjorn Granlund <tege@cygnus.com>
Ulf Carlsson <ulfc@calypso.engr.sgi.com>
%package gold
License: GPL v2 or later; LGPL v2.1 or later; X11/MIT
Summary: GNU binutils for Cross-Development to PowerPC Processors
AutoReqProv: on
Requires: binutils = %{version}-%{release}
Group: Development/Tools/Building
%define gold_archs %ix86 x86_64 ppc ppc64 sparc sparc64
%description gold
Cross-development utilities: ar, as, gasp, gprof, ld, nm, objcopy,
objdump, ranlib, size, strings, strip. These utilities are needed
whenever you want to compile a program or a kernel. This package
differs from the normal SUSE binutils package in that it is designed to
cross-compile from whatever platform SUSE Linux is running on to
PowerPC targets. This can be handy even if you are running on a PowerPC
development platform, because it decouples the host tools from your
embedded tools.
Authors:
--------
Alan Modra <amodra@bigpond.net.au>
@ -273,29 +196,33 @@ RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wno-error"
# Building native binutils
echo "Building native binutils."
%if %build_multitarget
ADDITIONAL_TARGETS="%(echo %target_list | sed -e 's/[^ ]\+/&-suse-linux/g')"
ADDITIONAL_TARGETS="$ADDITIONAL_TARGETS powerpc-macos powerpc-macos10 spu-elf"
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
%if !%{test_vanilla}
ADDITIONAL_TARGETS="$ADDITIONAL_TARGETS i386-macos10"
EXTRA_TARGETS="$EXTRA_TARGETS,i386-macos10"
%endif
%else
ADDITIONAL_TARGETS=
EXTRA_TARGETS=
%endif
ADDITIONAL_LD_TARGETS=
EXTRA_LD_TARGETS=
%ifarch sparc
ADDITIONAL_LD_TARGETS="sparc64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,sparc64-suse-linux"
%endif
%ifarch ppc
ADDITIONAL_LD_TARGETS="powerpc64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,powerpc64-suse-linux"
%endif
%ifarch s390
ADDITIONAL_LD_TARGETS="s390x-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390x-suse-linux"
%endif
%ifarch s390x
ADDITIONAL_LD_TARGETS="s390-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390-suse-linux"
%endif
%ifarch %ix86
ADDITIONAL_LD_TARGETS="x86_64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,x86_64-suse-linux"
%endif
EXTRA_GOLD_TARGETS=$EXTRA_LD_TARGETS
%ifarch ppc ppc64
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
%endif
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
--prefix=%{_prefix} \\\
@ -306,21 +233,18 @@ ADDITIONAL_LD_TARGETS="x86_64-suse-linux"
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
--with-pic --build=%{HOST} \\\
--disable-ld-targets \\\
${ADDITIONAL_LD_TARGETS:+--enable-ld-targets="${ADDITIONAL_LD_TARGETS// /,}"} \\\
${ADDITIONAL_TARGETS:+--enable-targets="${ADDITIONAL_TARGETS// /,}"}
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
%define extra_ld_targets \\\
${EXTRA_LD_TARGETS:+--enable-ld-targets="${EXTRA_LD_TARGETS#,}"}
%define extra_gold_targets \\\
${EXTRA_GOLD_TARGETS:+--enable-ld-targets="${EXTRA_GOLD_TARGETS#,}"}
mkdir build-dir
cd build-dir
../configure %common_flags --enable-shared
../configure %common_flags %extra_ld_targets --enable-shared
make %{?jobs:-j%jobs} all-bfd TARGET-bfd=headers
# force reconfiguring
rm bfd/Makefile
make %{?jobs:-j%jobs}
%ifarch %gold_archs
mkdir ../build-dir2
cd ../build-dir2
../configure %common_flags --enable-shared --enable-gold --program-prefix=go
make %{?jobs:-j%jobs}
%endif
mkdir ../build-dir3
cd ../build-dir3
../configure %common_flags --disable-shared
@ -330,10 +254,6 @@ make %{?jobs:-j%jobs} all-bfd all-opcodes
cd build-dir
%ifnarch %arm
make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || %{make_check_handling}
%ifarch %gold_archs
cd ../build-dir2
make -k check-gold CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || :
%endif
%endif
#
#
@ -343,24 +263,24 @@ make -k check-gold CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" |
echo "Building cross binutils."
mkdir build-dir
cd build-dir
ADDITIONAL_TARGETS=
EXTRA_TARGETS=
%if "%{TARGET}" == "sparc"
ADDITIONAL_TARGETS="sparc64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,sparc64-suse-linux"
%endif
%if "%{TARGET}" == "powerpc"
ADDITIONAL_TARGETS="powerpc64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc64-suse-linux"
%endif
%if "%{TARGET}" == "s390"
ADDITIONAL_TARGETS="s390x-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,s390x-suse-linux"
%endif
%if "%{TARGET}" == "s390x"
ADDITIONAL_TARGETS="s390-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,s390-suse-linux"
%endif
%if "%{TARGET}" == "i586"
ADDITIONAL_TARGETS="x86_64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,x86_64-suse-linux"
%endif
%if "%{TARGET}" == "hppa"
ADDITIONAL_TARGETS="hppa64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,hppa64-suse-linux"
%endif
%if "%{TARGET}" == "avr" || "%{TARGET}" == "spu"
TARGET_OS=%{TARGET}
@ -378,7 +298,7 @@ TARGET_OS=%{TARGET}-linux
%else
--with-sysroot=%{_prefix}/%{TARGET_OS}/sys-root \
%endif
${ADDITIONAL_TARGETS:+--enable-targets="${ADDITIONAL_TARGETS// /,}"}
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
make %{?jobs:-j%jobs} all-bfd TARGET-bfd=headers
# force reconfiguring
rm bfd/Makefile
@ -400,11 +320,6 @@ make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || :
cd build-dir
%if "%name" == "binutils"
# installing native binutils
%ifarch %gold_archs
cd ../build-dir2
make DESTDIR=$RPM_BUILD_ROOT install-gold
cd ../build-dir
%endif
make DESTDIR=$RPM_BUILD_ROOT install-info install
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
cd ../build-dir3
@ -434,9 +349,6 @@ cd ..
%find_lang ld binutils.lang
%find_lang opcodes binutils.lang
%find_lang gprof binutils.lang
#%ifarch %gold_archs
#%find_lang gold binutils.lang
#%endif
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
install -m 644 binutils/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-binutils
install -m 644 gas/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-gas
@ -483,24 +395,16 @@ rm -rf $RPM_BUILD_ROOT
%{_prefix}/%{HOST}/lib/ldscripts
%{_libdir}/ldscripts
%{_bindir}/*
%ifarch %gold_archs
%exclude %{_bindir}/gold
%endif
%doc %{_infodir}/*.gz
%{_libdir}/lib*-%{version}*.so
%doc %{_mandir}/man1/*.1.gz
%else
%{_prefix}
%endif
%ifarch %gold_archs
%files gold
%defattr(-,root,root)
%doc gold/NEWS gold/README
%{_bindir}/gold
%endif
%changelog
* Thu Jan 22 2009 schwab@suse.de
- Adjust list of extra targets.
* Mon Jan 19 2009 schwab@suse.de
- Update to head of trunk.
- Add gold.

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jan 22 14:20:16 CET 2009 - schwab@suse.de
- Adjust list of extra targets.
-------------------------------------------------------------------
Mon Jan 19 18:19:30 CET 2009 - schwab@suse.de

View File

@ -20,7 +20,7 @@
Name: cross-ppc64-binutils
BuildRequires: bison dejagnu flex gcc-c++ zlib-devel
Version: 2.19.51
Release: 1
Release: 2
#
# RUN_TESTS
%define run_tests %(test ! -f %_sourcedir/RUN_TESTS ; echo $?)
@ -99,83 +99,6 @@ your embedded tools.
Authors:
--------
Alan Modra <amodra@bigpond.net.au>
Andreas Jaeger <aj@suse.de>
Andreas Schwab <schwab@suse.de>
Bill Cox <bill@cygnus.com>
Brendan Kehoe <brendan@cygnus.com>
D. V. Henkel-Wallace <gumby@cygnus.com>
DJ Delorie <dj@redhat.com>
David D "Zoo" Zuhn <zoo@cygnus.com>
David J. Mackenzie <djm@cygnus.com>
Denis Chertykov <denisc@overta.ru>
Diego Novillo <dnovillo@redhat.com>
Doug Evans <dje@cygnus.com>
Eric Christopher <echristo@redhat.com>
Eric Youngdale <eric@aib.com>
Fred Fish <fnf@cygnus.com>
Geoff Keating <geoffk@redhat.com>
H.J.Lu <hjl@gnu.org>
Hans-Peter Nilsson <hp@axis.com>
Ian Dall <dall@hfrd.dsto.gov.au>
Ian Taylor <ian@zembu.com>
J.T. Conklin <jtc@cygnus.com>
Jakub Jelinek <jakub@redhat.com>
Jan Hubicka <jh@suse.cz>
Jason Eckhardt <jle@redhat.com>
Jason Merrill <jason@redhat.com>
Jeff Law <law@redhat.com>
Jeffrey Osier <jeffrey@cygnus.com>
Jeffrey Wheat <cassidy@cygnus.com>
Jim Kingdon <kingdon@cygnus.com>
Jim Wilson <wilson@redhat.com>
John Gilmore <gnu@cygnus.com>
Jörn Rennecke <amylaar@redhat.com>
K. Richard Pixley <rich@cygnus.com>
Ken Raeburn <raeburn@cygnus.com>
Kung Hsu <kung@cygnus.com>
Mark Eichin <eichin@cygnus.com>
Michael Meissner <meissner@redhat.com>
Michael Tiemann <tiemann@cygnus.com>
Mike Werner <mtw@cygnus.com>
Nick Clifton <nickc@redhat.com>
Per Bothner <bothner@cygnus.com>
Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
Richard Earnshaw <rwe@pegasus.esprit.ec.org>
Richard Henderson <rth@redhat.com>
Richard Stallman <rms@gnu.org>
Rob Savoye <rob@cygnus.com>
Roland H. Pesch <pesch@wrs.com>
Sean Eric Fagan <sef@cygnus.com>
Stan Shebs <shebs@apple.com>
Stephane Carrez <Stephane.Carrez@worldnet.fr>
Steve Chamberlain <sac@cygnus.com>
Stu Grossman <grossman@cygnus.com>
Torbjorn Granlund <tege@cygnus.com>
Ulf Carlsson <ulfc@calypso.engr.sgi.com>
%package gold
License: GPL v2 or later; LGPL v2.1 or later
Summary: GNU binutils for cross-development to PowerPC 64bit processors
AutoReqProv: on
Requires: binutils = %{version}-%{release}
Group: Development/Tools/Building
%define gold_archs %ix86 x86_64 ppc ppc64 sparc sparc64
%description gold
Cross development utilities: ar, as, gasp, gprof, ld, nm, objcopy,
objdump, ranlib, size, strings, strip. These utilities are needed
whenever you want to compile a program or a kernel. This package
differs from the normal SuSE binutils package in that it is designed to
cross-compile from whatever platform SuSE Linux is running on to
PowerPC64 targets. This can be handy even if you are running on a
PowerPC64 development platform, as it decouples the host tools from
your embedded tools.
Authors:
--------
Alan Modra <amodra@bigpond.net.au>
@ -273,29 +196,33 @@ RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wno-error"
# Building native binutils
echo "Building native binutils."
%if %build_multitarget
ADDITIONAL_TARGETS="%(echo %target_list | sed -e 's/[^ ]\+/&-suse-linux/g')"
ADDITIONAL_TARGETS="$ADDITIONAL_TARGETS powerpc-macos powerpc-macos10 spu-elf"
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
%if !%{test_vanilla}
ADDITIONAL_TARGETS="$ADDITIONAL_TARGETS i386-macos10"
EXTRA_TARGETS="$EXTRA_TARGETS,i386-macos10"
%endif
%else
ADDITIONAL_TARGETS=
EXTRA_TARGETS=
%endif
ADDITIONAL_LD_TARGETS=
EXTRA_LD_TARGETS=
%ifarch sparc
ADDITIONAL_LD_TARGETS="sparc64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,sparc64-suse-linux"
%endif
%ifarch ppc
ADDITIONAL_LD_TARGETS="powerpc64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,powerpc64-suse-linux"
%endif
%ifarch s390
ADDITIONAL_LD_TARGETS="s390x-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390x-suse-linux"
%endif
%ifarch s390x
ADDITIONAL_LD_TARGETS="s390-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390-suse-linux"
%endif
%ifarch %ix86
ADDITIONAL_LD_TARGETS="x86_64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,x86_64-suse-linux"
%endif
EXTRA_GOLD_TARGETS=$EXTRA_LD_TARGETS
%ifarch ppc ppc64
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
%endif
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
--prefix=%{_prefix} \\\
@ -306,21 +233,18 @@ ADDITIONAL_LD_TARGETS="x86_64-suse-linux"
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
--with-pic --build=%{HOST} \\\
--disable-ld-targets \\\
${ADDITIONAL_LD_TARGETS:+--enable-ld-targets="${ADDITIONAL_LD_TARGETS// /,}"} \\\
${ADDITIONAL_TARGETS:+--enable-targets="${ADDITIONAL_TARGETS// /,}"}
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
%define extra_ld_targets \\\
${EXTRA_LD_TARGETS:+--enable-ld-targets="${EXTRA_LD_TARGETS#,}"}
%define extra_gold_targets \\\
${EXTRA_GOLD_TARGETS:+--enable-ld-targets="${EXTRA_GOLD_TARGETS#,}"}
mkdir build-dir
cd build-dir
../configure %common_flags --enable-shared
../configure %common_flags %extra_ld_targets --enable-shared
make %{?jobs:-j%jobs} all-bfd TARGET-bfd=headers
# force reconfiguring
rm bfd/Makefile
make %{?jobs:-j%jobs}
%ifarch %gold_archs
mkdir ../build-dir2
cd ../build-dir2
../configure %common_flags --enable-shared --enable-gold --program-prefix=go
make %{?jobs:-j%jobs}
%endif
mkdir ../build-dir3
cd ../build-dir3
../configure %common_flags --disable-shared
@ -330,10 +254,6 @@ make %{?jobs:-j%jobs} all-bfd all-opcodes
cd build-dir
%ifnarch %arm
make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || %{make_check_handling}
%ifarch %gold_archs
cd ../build-dir2
make -k check-gold CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || :
%endif
%endif
#
#
@ -343,24 +263,24 @@ make -k check-gold CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" |
echo "Building cross binutils."
mkdir build-dir
cd build-dir
ADDITIONAL_TARGETS=
EXTRA_TARGETS=
%if "%{TARGET}" == "sparc"
ADDITIONAL_TARGETS="sparc64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,sparc64-suse-linux"
%endif
%if "%{TARGET}" == "powerpc"
ADDITIONAL_TARGETS="powerpc64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc64-suse-linux"
%endif
%if "%{TARGET}" == "s390"
ADDITIONAL_TARGETS="s390x-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,s390x-suse-linux"
%endif
%if "%{TARGET}" == "s390x"
ADDITIONAL_TARGETS="s390-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,s390-suse-linux"
%endif
%if "%{TARGET}" == "i586"
ADDITIONAL_TARGETS="x86_64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,x86_64-suse-linux"
%endif
%if "%{TARGET}" == "hppa"
ADDITIONAL_TARGETS="hppa64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,hppa64-suse-linux"
%endif
%if "%{TARGET}" == "avr" || "%{TARGET}" == "spu"
TARGET_OS=%{TARGET}
@ -378,7 +298,7 @@ TARGET_OS=%{TARGET}-linux
%else
--with-sysroot=%{_prefix}/%{TARGET_OS}/sys-root \
%endif
${ADDITIONAL_TARGETS:+--enable-targets="${ADDITIONAL_TARGETS// /,}"}
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
make %{?jobs:-j%jobs} all-bfd TARGET-bfd=headers
# force reconfiguring
rm bfd/Makefile
@ -400,11 +320,6 @@ make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || :
cd build-dir
%if "%name" == "binutils"
# installing native binutils
%ifarch %gold_archs
cd ../build-dir2
make DESTDIR=$RPM_BUILD_ROOT install-gold
cd ../build-dir
%endif
make DESTDIR=$RPM_BUILD_ROOT install-info install
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
cd ../build-dir3
@ -434,9 +349,6 @@ cd ..
%find_lang ld binutils.lang
%find_lang opcodes binutils.lang
%find_lang gprof binutils.lang
#%ifarch %gold_archs
#%find_lang gold binutils.lang
#%endif
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
install -m 644 binutils/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-binutils
install -m 644 gas/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-gas
@ -483,24 +395,16 @@ rm -rf $RPM_BUILD_ROOT
%{_prefix}/%{HOST}/lib/ldscripts
%{_libdir}/ldscripts
%{_bindir}/*
%ifarch %gold_archs
%exclude %{_bindir}/gold
%endif
%doc %{_infodir}/*.gz
%{_libdir}/lib*-%{version}*.so
%doc %{_mandir}/man1/*.1.gz
%else
%{_prefix}
%endif
%ifarch %gold_archs
%files gold
%defattr(-,root,root)
%doc gold/NEWS gold/README
%{_bindir}/gold
%endif
%changelog
* Thu Jan 22 2009 schwab@suse.de
- Adjust list of extra targets.
* Mon Jan 19 2009 schwab@suse.de
- Update to head of trunk.
- Add gold.

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jan 22 14:20:16 CET 2009 - schwab@suse.de
- Adjust list of extra targets.
-------------------------------------------------------------------
Mon Jan 19 18:19:30 CET 2009 - schwab@suse.de

View File

@ -20,7 +20,7 @@
Name: cross-s390-binutils
BuildRequires: bison dejagnu flex gcc-c++ zlib-devel
Version: 2.19.51
Release: 1
Release: 2
#
# RUN_TESTS
%define run_tests %(test ! -f %_sourcedir/RUN_TESTS ; echo $?)
@ -99,83 +99,6 @@ embedded tools.
Authors:
--------
Alan Modra <amodra@bigpond.net.au>
Andreas Jaeger <aj@suse.de>
Andreas Schwab <schwab@suse.de>
Bill Cox <bill@cygnus.com>
Brendan Kehoe <brendan@cygnus.com>
D. V. Henkel-Wallace <gumby@cygnus.com>
DJ Delorie <dj@redhat.com>
David D "Zoo" Zuhn <zoo@cygnus.com>
David J. Mackenzie <djm@cygnus.com>
Denis Chertykov <denisc@overta.ru>
Diego Novillo <dnovillo@redhat.com>
Doug Evans <dje@cygnus.com>
Eric Christopher <echristo@redhat.com>
Eric Youngdale <eric@aib.com>
Fred Fish <fnf@cygnus.com>
Geoff Keating <geoffk@redhat.com>
H.J.Lu <hjl@gnu.org>
Hans-Peter Nilsson <hp@axis.com>
Ian Dall <dall@hfrd.dsto.gov.au>
Ian Taylor <ian@zembu.com>
J.T. Conklin <jtc@cygnus.com>
Jakub Jelinek <jakub@redhat.com>
Jan Hubicka <jh@suse.cz>
Jason Eckhardt <jle@redhat.com>
Jason Merrill <jason@redhat.com>
Jeff Law <law@redhat.com>
Jeffrey Osier <jeffrey@cygnus.com>
Jeffrey Wheat <cassidy@cygnus.com>
Jim Kingdon <kingdon@cygnus.com>
Jim Wilson <wilson@redhat.com>
John Gilmore <gnu@cygnus.com>
Jörn Rennecke <amylaar@redhat.com>
K. Richard Pixley <rich@cygnus.com>
Ken Raeburn <raeburn@cygnus.com>
Kung Hsu <kung@cygnus.com>
Mark Eichin <eichin@cygnus.com>
Michael Meissner <meissner@redhat.com>
Michael Tiemann <tiemann@cygnus.com>
Mike Werner <mtw@cygnus.com>
Nick Clifton <nickc@redhat.com>
Per Bothner <bothner@cygnus.com>
Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
Richard Earnshaw <rwe@pegasus.esprit.ec.org>
Richard Henderson <rth@redhat.com>
Richard Stallman <rms@gnu.org>
Rob Savoye <rob@cygnus.com>
Roland H. Pesch <pesch@wrs.com>
Sean Eric Fagan <sef@cygnus.com>
Stan Shebs <shebs@apple.com>
Stephane Carrez <Stephane.Carrez@worldnet.fr>
Steve Chamberlain <sac@cygnus.com>
Stu Grossman <grossman@cygnus.com>
Torbjorn Granlund <tege@cygnus.com>
Ulf Carlsson <ulfc@calypso.engr.sgi.com>
%package gold
License: GPL v2 or later; LGPL v2.1 or later; X11/MIT
Summary: GNU binutils for Cross-Development to S/390 Processors
AutoReqProv: on
Requires: binutils = %{version}-%{release}
Group: Development/Tools/Building
%define gold_archs %ix86 x86_64 ppc ppc64 sparc sparc64
%description gold
Cross-development utilities: ar, as, gasp, gprof, ld, nm, objcopy,
objdump, ranlib, size, strings, strip. These utilities are needed
whenever you want to compile a program or a kernel. This package
differs from the normal SUSE binutils package in that it is designed to
cross-compile from whatever platform SUSE Linux is running on to S/390
targets. This can be handy even if you are running on an S/390
development platform, because it decouples the host tools from your
embedded tools.
Authors:
--------
Alan Modra <amodra@bigpond.net.au>
@ -273,29 +196,33 @@ RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wno-error"
# Building native binutils
echo "Building native binutils."
%if %build_multitarget
ADDITIONAL_TARGETS="%(echo %target_list | sed -e 's/[^ ]\+/&-suse-linux/g')"
ADDITIONAL_TARGETS="$ADDITIONAL_TARGETS powerpc-macos powerpc-macos10 spu-elf"
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
%if !%{test_vanilla}
ADDITIONAL_TARGETS="$ADDITIONAL_TARGETS i386-macos10"
EXTRA_TARGETS="$EXTRA_TARGETS,i386-macos10"
%endif
%else
ADDITIONAL_TARGETS=
EXTRA_TARGETS=
%endif
ADDITIONAL_LD_TARGETS=
EXTRA_LD_TARGETS=
%ifarch sparc
ADDITIONAL_LD_TARGETS="sparc64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,sparc64-suse-linux"
%endif
%ifarch ppc
ADDITIONAL_LD_TARGETS="powerpc64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,powerpc64-suse-linux"
%endif
%ifarch s390
ADDITIONAL_LD_TARGETS="s390x-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390x-suse-linux"
%endif
%ifarch s390x
ADDITIONAL_LD_TARGETS="s390-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390-suse-linux"
%endif
%ifarch %ix86
ADDITIONAL_LD_TARGETS="x86_64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,x86_64-suse-linux"
%endif
EXTRA_GOLD_TARGETS=$EXTRA_LD_TARGETS
%ifarch ppc ppc64
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
%endif
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
--prefix=%{_prefix} \\\
@ -306,21 +233,18 @@ ADDITIONAL_LD_TARGETS="x86_64-suse-linux"
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
--with-pic --build=%{HOST} \\\
--disable-ld-targets \\\
${ADDITIONAL_LD_TARGETS:+--enable-ld-targets="${ADDITIONAL_LD_TARGETS// /,}"} \\\
${ADDITIONAL_TARGETS:+--enable-targets="${ADDITIONAL_TARGETS// /,}"}
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
%define extra_ld_targets \\\
${EXTRA_LD_TARGETS:+--enable-ld-targets="${EXTRA_LD_TARGETS#,}"}
%define extra_gold_targets \\\
${EXTRA_GOLD_TARGETS:+--enable-ld-targets="${EXTRA_GOLD_TARGETS#,}"}
mkdir build-dir
cd build-dir
../configure %common_flags --enable-shared
../configure %common_flags %extra_ld_targets --enable-shared
make %{?jobs:-j%jobs} all-bfd TARGET-bfd=headers
# force reconfiguring
rm bfd/Makefile
make %{?jobs:-j%jobs}
%ifarch %gold_archs
mkdir ../build-dir2
cd ../build-dir2
../configure %common_flags --enable-shared --enable-gold --program-prefix=go
make %{?jobs:-j%jobs}
%endif
mkdir ../build-dir3
cd ../build-dir3
../configure %common_flags --disable-shared
@ -330,10 +254,6 @@ make %{?jobs:-j%jobs} all-bfd all-opcodes
cd build-dir
%ifnarch %arm
make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || %{make_check_handling}
%ifarch %gold_archs
cd ../build-dir2
make -k check-gold CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || :
%endif
%endif
#
#
@ -343,24 +263,24 @@ make -k check-gold CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" |
echo "Building cross binutils."
mkdir build-dir
cd build-dir
ADDITIONAL_TARGETS=
EXTRA_TARGETS=
%if "%{TARGET}" == "sparc"
ADDITIONAL_TARGETS="sparc64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,sparc64-suse-linux"
%endif
%if "%{TARGET}" == "powerpc"
ADDITIONAL_TARGETS="powerpc64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc64-suse-linux"
%endif
%if "%{TARGET}" == "s390"
ADDITIONAL_TARGETS="s390x-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,s390x-suse-linux"
%endif
%if "%{TARGET}" == "s390x"
ADDITIONAL_TARGETS="s390-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,s390-suse-linux"
%endif
%if "%{TARGET}" == "i586"
ADDITIONAL_TARGETS="x86_64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,x86_64-suse-linux"
%endif
%if "%{TARGET}" == "hppa"
ADDITIONAL_TARGETS="hppa64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,hppa64-suse-linux"
%endif
%if "%{TARGET}" == "avr" || "%{TARGET}" == "spu"
TARGET_OS=%{TARGET}
@ -378,7 +298,7 @@ TARGET_OS=%{TARGET}-linux
%else
--with-sysroot=%{_prefix}/%{TARGET_OS}/sys-root \
%endif
${ADDITIONAL_TARGETS:+--enable-targets="${ADDITIONAL_TARGETS// /,}"}
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
make %{?jobs:-j%jobs} all-bfd TARGET-bfd=headers
# force reconfiguring
rm bfd/Makefile
@ -400,11 +320,6 @@ make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || :
cd build-dir
%if "%name" == "binutils"
# installing native binutils
%ifarch %gold_archs
cd ../build-dir2
make DESTDIR=$RPM_BUILD_ROOT install-gold
cd ../build-dir
%endif
make DESTDIR=$RPM_BUILD_ROOT install-info install
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
cd ../build-dir3
@ -434,9 +349,6 @@ cd ..
%find_lang ld binutils.lang
%find_lang opcodes binutils.lang
%find_lang gprof binutils.lang
#%ifarch %gold_archs
#%find_lang gold binutils.lang
#%endif
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
install -m 644 binutils/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-binutils
install -m 644 gas/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-gas
@ -483,24 +395,16 @@ rm -rf $RPM_BUILD_ROOT
%{_prefix}/%{HOST}/lib/ldscripts
%{_libdir}/ldscripts
%{_bindir}/*
%ifarch %gold_archs
%exclude %{_bindir}/gold
%endif
%doc %{_infodir}/*.gz
%{_libdir}/lib*-%{version}*.so
%doc %{_mandir}/man1/*.1.gz
%else
%{_prefix}
%endif
%ifarch %gold_archs
%files gold
%defattr(-,root,root)
%doc gold/NEWS gold/README
%{_bindir}/gold
%endif
%changelog
* Thu Jan 22 2009 schwab@suse.de
- Adjust list of extra targets.
* Mon Jan 19 2009 schwab@suse.de
- Update to head of trunk.
- Add gold.

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jan 22 14:20:16 CET 2009 - schwab@suse.de
- Adjust list of extra targets.
-------------------------------------------------------------------
Mon Jan 19 18:19:30 CET 2009 - schwab@suse.de

View File

@ -20,7 +20,7 @@
Name: cross-s390x-binutils
BuildRequires: bison dejagnu flex gcc-c++ zlib-devel
Version: 2.19.51
Release: 1
Release: 2
#
# RUN_TESTS
%define run_tests %(test ! -f %_sourcedir/RUN_TESTS ; echo $?)
@ -99,83 +99,6 @@ your embedded tools.
Authors:
--------
Alan Modra <amodra@bigpond.net.au>
Andreas Jaeger <aj@suse.de>
Andreas Schwab <schwab@suse.de>
Bill Cox <bill@cygnus.com>
Brendan Kehoe <brendan@cygnus.com>
D. V. Henkel-Wallace <gumby@cygnus.com>
DJ Delorie <dj@redhat.com>
David D "Zoo" Zuhn <zoo@cygnus.com>
David J. Mackenzie <djm@cygnus.com>
Denis Chertykov <denisc@overta.ru>
Diego Novillo <dnovillo@redhat.com>
Doug Evans <dje@cygnus.com>
Eric Christopher <echristo@redhat.com>
Eric Youngdale <eric@aib.com>
Fred Fish <fnf@cygnus.com>
Geoff Keating <geoffk@redhat.com>
H.J.Lu <hjl@gnu.org>
Hans-Peter Nilsson <hp@axis.com>
Ian Dall <dall@hfrd.dsto.gov.au>
Ian Taylor <ian@zembu.com>
J.T. Conklin <jtc@cygnus.com>
Jakub Jelinek <jakub@redhat.com>
Jan Hubicka <jh@suse.cz>
Jason Eckhardt <jle@redhat.com>
Jason Merrill <jason@redhat.com>
Jeff Law <law@redhat.com>
Jeffrey Osier <jeffrey@cygnus.com>
Jeffrey Wheat <cassidy@cygnus.com>
Jim Kingdon <kingdon@cygnus.com>
Jim Wilson <wilson@redhat.com>
John Gilmore <gnu@cygnus.com>
Jörn Rennecke <amylaar@redhat.com>
K. Richard Pixley <rich@cygnus.com>
Ken Raeburn <raeburn@cygnus.com>
Kung Hsu <kung@cygnus.com>
Mark Eichin <eichin@cygnus.com>
Michael Meissner <meissner@redhat.com>
Michael Tiemann <tiemann@cygnus.com>
Mike Werner <mtw@cygnus.com>
Nick Clifton <nickc@redhat.com>
Per Bothner <bothner@cygnus.com>
Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
Richard Earnshaw <rwe@pegasus.esprit.ec.org>
Richard Henderson <rth@redhat.com>
Richard Stallman <rms@gnu.org>
Rob Savoye <rob@cygnus.com>
Roland H. Pesch <pesch@wrs.com>
Sean Eric Fagan <sef@cygnus.com>
Stan Shebs <shebs@apple.com>
Stephane Carrez <Stephane.Carrez@worldnet.fr>
Steve Chamberlain <sac@cygnus.com>
Stu Grossman <grossman@cygnus.com>
Torbjorn Granlund <tege@cygnus.com>
Ulf Carlsson <ulfc@calypso.engr.sgi.com>
%package gold
License: GPL v2 or later; LGPL v2.1 or later; X11/MIT
Summary: GNU binutils for Cross-Development to 64-Bit S/390 Processors
AutoReqProv: on
Requires: binutils = %{version}-%{release}
Group: Development/Tools/Building
%define gold_archs %ix86 x86_64 ppc ppc64 sparc sparc64
%description gold
Cross-development utilities: ar, as, gasp, gprof, ld, nm, objcopy,
objdump, ranlib, size, strings, strip. These utilities are needed
whenever you want to compile a program or a kernel. This package
differs from the normal SUSE binutils package in that it is designed to
cross-compile from whatever platform SUSE Linux is running on to 64-bit
S/390 targets. This can be handy even if you are running on a 64-bit
S/390 development platform, because it decouples the host tools from
your embedded tools.
Authors:
--------
Alan Modra <amodra@bigpond.net.au>
@ -273,29 +196,33 @@ RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wno-error"
# Building native binutils
echo "Building native binutils."
%if %build_multitarget
ADDITIONAL_TARGETS="%(echo %target_list | sed -e 's/[^ ]\+/&-suse-linux/g')"
ADDITIONAL_TARGETS="$ADDITIONAL_TARGETS powerpc-macos powerpc-macos10 spu-elf"
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
%if !%{test_vanilla}
ADDITIONAL_TARGETS="$ADDITIONAL_TARGETS i386-macos10"
EXTRA_TARGETS="$EXTRA_TARGETS,i386-macos10"
%endif
%else
ADDITIONAL_TARGETS=
EXTRA_TARGETS=
%endif
ADDITIONAL_LD_TARGETS=
EXTRA_LD_TARGETS=
%ifarch sparc
ADDITIONAL_LD_TARGETS="sparc64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,sparc64-suse-linux"
%endif
%ifarch ppc
ADDITIONAL_LD_TARGETS="powerpc64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,powerpc64-suse-linux"
%endif
%ifarch s390
ADDITIONAL_LD_TARGETS="s390x-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390x-suse-linux"
%endif
%ifarch s390x
ADDITIONAL_LD_TARGETS="s390-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390-suse-linux"
%endif
%ifarch %ix86
ADDITIONAL_LD_TARGETS="x86_64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,x86_64-suse-linux"
%endif
EXTRA_GOLD_TARGETS=$EXTRA_LD_TARGETS
%ifarch ppc ppc64
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
%endif
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
--prefix=%{_prefix} \\\
@ -306,21 +233,18 @@ ADDITIONAL_LD_TARGETS="x86_64-suse-linux"
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
--with-pic --build=%{HOST} \\\
--disable-ld-targets \\\
${ADDITIONAL_LD_TARGETS:+--enable-ld-targets="${ADDITIONAL_LD_TARGETS// /,}"} \\\
${ADDITIONAL_TARGETS:+--enable-targets="${ADDITIONAL_TARGETS// /,}"}
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
%define extra_ld_targets \\\
${EXTRA_LD_TARGETS:+--enable-ld-targets="${EXTRA_LD_TARGETS#,}"}
%define extra_gold_targets \\\
${EXTRA_GOLD_TARGETS:+--enable-ld-targets="${EXTRA_GOLD_TARGETS#,}"}
mkdir build-dir
cd build-dir
../configure %common_flags --enable-shared
../configure %common_flags %extra_ld_targets --enable-shared
make %{?jobs:-j%jobs} all-bfd TARGET-bfd=headers
# force reconfiguring
rm bfd/Makefile
make %{?jobs:-j%jobs}
%ifarch %gold_archs
mkdir ../build-dir2
cd ../build-dir2
../configure %common_flags --enable-shared --enable-gold --program-prefix=go
make %{?jobs:-j%jobs}
%endif
mkdir ../build-dir3
cd ../build-dir3
../configure %common_flags --disable-shared
@ -330,10 +254,6 @@ make %{?jobs:-j%jobs} all-bfd all-opcodes
cd build-dir
%ifnarch %arm
make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || %{make_check_handling}
%ifarch %gold_archs
cd ../build-dir2
make -k check-gold CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || :
%endif
%endif
#
#
@ -343,24 +263,24 @@ make -k check-gold CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" |
echo "Building cross binutils."
mkdir build-dir
cd build-dir
ADDITIONAL_TARGETS=
EXTRA_TARGETS=
%if "%{TARGET}" == "sparc"
ADDITIONAL_TARGETS="sparc64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,sparc64-suse-linux"
%endif
%if "%{TARGET}" == "powerpc"
ADDITIONAL_TARGETS="powerpc64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc64-suse-linux"
%endif
%if "%{TARGET}" == "s390"
ADDITIONAL_TARGETS="s390x-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,s390x-suse-linux"
%endif
%if "%{TARGET}" == "s390x"
ADDITIONAL_TARGETS="s390-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,s390-suse-linux"
%endif
%if "%{TARGET}" == "i586"
ADDITIONAL_TARGETS="x86_64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,x86_64-suse-linux"
%endif
%if "%{TARGET}" == "hppa"
ADDITIONAL_TARGETS="hppa64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,hppa64-suse-linux"
%endif
%if "%{TARGET}" == "avr" || "%{TARGET}" == "spu"
TARGET_OS=%{TARGET}
@ -378,7 +298,7 @@ TARGET_OS=%{TARGET}-linux
%else
--with-sysroot=%{_prefix}/%{TARGET_OS}/sys-root \
%endif
${ADDITIONAL_TARGETS:+--enable-targets="${ADDITIONAL_TARGETS// /,}"}
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
make %{?jobs:-j%jobs} all-bfd TARGET-bfd=headers
# force reconfiguring
rm bfd/Makefile
@ -400,11 +320,6 @@ make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || :
cd build-dir
%if "%name" == "binutils"
# installing native binutils
%ifarch %gold_archs
cd ../build-dir2
make DESTDIR=$RPM_BUILD_ROOT install-gold
cd ../build-dir
%endif
make DESTDIR=$RPM_BUILD_ROOT install-info install
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
cd ../build-dir3
@ -434,9 +349,6 @@ cd ..
%find_lang ld binutils.lang
%find_lang opcodes binutils.lang
%find_lang gprof binutils.lang
#%ifarch %gold_archs
#%find_lang gold binutils.lang
#%endif
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
install -m 644 binutils/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-binutils
install -m 644 gas/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-gas
@ -483,24 +395,16 @@ rm -rf $RPM_BUILD_ROOT
%{_prefix}/%{HOST}/lib/ldscripts
%{_libdir}/ldscripts
%{_bindir}/*
%ifarch %gold_archs
%exclude %{_bindir}/gold
%endif
%doc %{_infodir}/*.gz
%{_libdir}/lib*-%{version}*.so
%doc %{_mandir}/man1/*.1.gz
%else
%{_prefix}
%endif
%ifarch %gold_archs
%files gold
%defattr(-,root,root)
%doc gold/NEWS gold/README
%{_bindir}/gold
%endif
%changelog
* Thu Jan 22 2009 schwab@suse.de
- Adjust list of extra targets.
* Mon Jan 19 2009 schwab@suse.de
- Update to head of trunk.
- Add gold.

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jan 22 14:20:16 CET 2009 - schwab@suse.de
- Adjust list of extra targets.
-------------------------------------------------------------------
Mon Jan 19 18:19:30 CET 2009 - schwab@suse.de

View File

@ -20,7 +20,7 @@
Name: cross-sh4-binutils
BuildRequires: bison dejagnu flex gcc-c++ zlib-devel
Version: 2.19.51
Release: 1
Release: 2
#
# RUN_TESTS
%define run_tests %(test ! -f %_sourcedir/RUN_TESTS ; echo $?)
@ -98,82 +98,6 @@ platform, because it decouples the host tools from your embedded tools.
Authors:
--------
Alan Modra <amodra@bigpond.net.au>
Andreas Jaeger <aj@suse.de>
Andreas Schwab <schwab@suse.de>
Bill Cox <bill@cygnus.com>
Brendan Kehoe <brendan@cygnus.com>
D. V. Henkel-Wallace <gumby@cygnus.com>
DJ Delorie <dj@redhat.com>
David D "Zoo" Zuhn <zoo@cygnus.com>
David J. Mackenzie <djm@cygnus.com>
Denis Chertykov <denisc@overta.ru>
Diego Novillo <dnovillo@redhat.com>
Doug Evans <dje@cygnus.com>
Eric Christopher <echristo@redhat.com>
Eric Youngdale <eric@aib.com>
Fred Fish <fnf@cygnus.com>
Geoff Keating <geoffk@redhat.com>
H.J.Lu <hjl@gnu.org>
Hans-Peter Nilsson <hp@axis.com>
Ian Dall <dall@hfrd.dsto.gov.au>
Ian Taylor <ian@zembu.com>
J.T. Conklin <jtc@cygnus.com>
Jakub Jelinek <jakub@redhat.com>
Jan Hubicka <jh@suse.cz>
Jason Eckhardt <jle@redhat.com>
Jason Merrill <jason@redhat.com>
Jeff Law <law@redhat.com>
Jeffrey Osier <jeffrey@cygnus.com>
Jeffrey Wheat <cassidy@cygnus.com>
Jim Kingdon <kingdon@cygnus.com>
Jim Wilson <wilson@redhat.com>
John Gilmore <gnu@cygnus.com>
Jörn Rennecke <amylaar@redhat.com>
K. Richard Pixley <rich@cygnus.com>
Ken Raeburn <raeburn@cygnus.com>
Kung Hsu <kung@cygnus.com>
Mark Eichin <eichin@cygnus.com>
Michael Meissner <meissner@redhat.com>
Michael Tiemann <tiemann@cygnus.com>
Mike Werner <mtw@cygnus.com>
Nick Clifton <nickc@redhat.com>
Per Bothner <bothner@cygnus.com>
Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
Richard Earnshaw <rwe@pegasus.esprit.ec.org>
Richard Henderson <rth@redhat.com>
Richard Stallman <rms@gnu.org>
Rob Savoye <rob@cygnus.com>
Roland H. Pesch <pesch@wrs.com>
Sean Eric Fagan <sef@cygnus.com>
Stan Shebs <shebs@apple.com>
Stephane Carrez <Stephane.Carrez@worldnet.fr>
Steve Chamberlain <sac@cygnus.com>
Stu Grossman <grossman@cygnus.com>
Torbjorn Granlund <tege@cygnus.com>
Ulf Carlsson <ulfc@calypso.engr.sgi.com>
%package gold
License: GPL v2 or later; LGPL v2.1 or later
Summary: GNU binutils for Cross-Development to SH4 Processors
AutoReqProv: on
Requires: binutils = %{version}-%{release}
Group: Development/Tools/Building
%define gold_archs %ix86 x86_64 ppc ppc64 sparc sparc64
%description gold
Cross-development utilities: ar, as, gasp, gprof, ld, nm, objcopy,
objdump, ranlib, size, strings, strip. These utilities are needed
whenever you want to compile a program or a kernel. This package
differs from the normal SUSE binutils package in that it is designed to
cross-compile from whatever platform SUSE Linux is running on to SH4
targets. This can be handy even if you are running on a SH4 development
platform, because it decouples the host tools from your embedded tools.
Authors:
--------
Alan Modra <amodra@bigpond.net.au>
@ -271,29 +195,33 @@ RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wno-error"
# Building native binutils
echo "Building native binutils."
%if %build_multitarget
ADDITIONAL_TARGETS="%(echo %target_list | sed -e 's/[^ ]\+/&-suse-linux/g')"
ADDITIONAL_TARGETS="$ADDITIONAL_TARGETS powerpc-macos powerpc-macos10 spu-elf"
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
%if !%{test_vanilla}
ADDITIONAL_TARGETS="$ADDITIONAL_TARGETS i386-macos10"
EXTRA_TARGETS="$EXTRA_TARGETS,i386-macos10"
%endif
%else
ADDITIONAL_TARGETS=
EXTRA_TARGETS=
%endif
ADDITIONAL_LD_TARGETS=
EXTRA_LD_TARGETS=
%ifarch sparc
ADDITIONAL_LD_TARGETS="sparc64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,sparc64-suse-linux"
%endif
%ifarch ppc
ADDITIONAL_LD_TARGETS="powerpc64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,powerpc64-suse-linux"
%endif
%ifarch s390
ADDITIONAL_LD_TARGETS="s390x-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390x-suse-linux"
%endif
%ifarch s390x
ADDITIONAL_LD_TARGETS="s390-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390-suse-linux"
%endif
%ifarch %ix86
ADDITIONAL_LD_TARGETS="x86_64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,x86_64-suse-linux"
%endif
EXTRA_GOLD_TARGETS=$EXTRA_LD_TARGETS
%ifarch ppc ppc64
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
%endif
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
--prefix=%{_prefix} \\\
@ -304,21 +232,18 @@ ADDITIONAL_LD_TARGETS="x86_64-suse-linux"
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
--with-pic --build=%{HOST} \\\
--disable-ld-targets \\\
${ADDITIONAL_LD_TARGETS:+--enable-ld-targets="${ADDITIONAL_LD_TARGETS// /,}"} \\\
${ADDITIONAL_TARGETS:+--enable-targets="${ADDITIONAL_TARGETS// /,}"}
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
%define extra_ld_targets \\\
${EXTRA_LD_TARGETS:+--enable-ld-targets="${EXTRA_LD_TARGETS#,}"}
%define extra_gold_targets \\\
${EXTRA_GOLD_TARGETS:+--enable-ld-targets="${EXTRA_GOLD_TARGETS#,}"}
mkdir build-dir
cd build-dir
../configure %common_flags --enable-shared
../configure %common_flags %extra_ld_targets --enable-shared
make %{?jobs:-j%jobs} all-bfd TARGET-bfd=headers
# force reconfiguring
rm bfd/Makefile
make %{?jobs:-j%jobs}
%ifarch %gold_archs
mkdir ../build-dir2
cd ../build-dir2
../configure %common_flags --enable-shared --enable-gold --program-prefix=go
make %{?jobs:-j%jobs}
%endif
mkdir ../build-dir3
cd ../build-dir3
../configure %common_flags --disable-shared
@ -328,10 +253,6 @@ make %{?jobs:-j%jobs} all-bfd all-opcodes
cd build-dir
%ifnarch %arm
make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || %{make_check_handling}
%ifarch %gold_archs
cd ../build-dir2
make -k check-gold CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || :
%endif
%endif
#
#
@ -341,24 +262,24 @@ make -k check-gold CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" |
echo "Building cross binutils."
mkdir build-dir
cd build-dir
ADDITIONAL_TARGETS=
EXTRA_TARGETS=
%if "%{TARGET}" == "sparc"
ADDITIONAL_TARGETS="sparc64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,sparc64-suse-linux"
%endif
%if "%{TARGET}" == "powerpc"
ADDITIONAL_TARGETS="powerpc64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc64-suse-linux"
%endif
%if "%{TARGET}" == "s390"
ADDITIONAL_TARGETS="s390x-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,s390x-suse-linux"
%endif
%if "%{TARGET}" == "s390x"
ADDITIONAL_TARGETS="s390-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,s390-suse-linux"
%endif
%if "%{TARGET}" == "i586"
ADDITIONAL_TARGETS="x86_64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,x86_64-suse-linux"
%endif
%if "%{TARGET}" == "hppa"
ADDITIONAL_TARGETS="hppa64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,hppa64-suse-linux"
%endif
%if "%{TARGET}" == "avr" || "%{TARGET}" == "spu"
TARGET_OS=%{TARGET}
@ -376,7 +297,7 @@ TARGET_OS=%{TARGET}-linux
%else
--with-sysroot=%{_prefix}/%{TARGET_OS}/sys-root \
%endif
${ADDITIONAL_TARGETS:+--enable-targets="${ADDITIONAL_TARGETS// /,}"}
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
make %{?jobs:-j%jobs} all-bfd TARGET-bfd=headers
# force reconfiguring
rm bfd/Makefile
@ -398,11 +319,6 @@ make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || :
cd build-dir
%if "%name" == "binutils"
# installing native binutils
%ifarch %gold_archs
cd ../build-dir2
make DESTDIR=$RPM_BUILD_ROOT install-gold
cd ../build-dir
%endif
make DESTDIR=$RPM_BUILD_ROOT install-info install
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
cd ../build-dir3
@ -432,9 +348,6 @@ cd ..
%find_lang ld binutils.lang
%find_lang opcodes binutils.lang
%find_lang gprof binutils.lang
#%ifarch %gold_archs
#%find_lang gold binutils.lang
#%endif
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
install -m 644 binutils/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-binutils
install -m 644 gas/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-gas
@ -481,24 +394,16 @@ rm -rf $RPM_BUILD_ROOT
%{_prefix}/%{HOST}/lib/ldscripts
%{_libdir}/ldscripts
%{_bindir}/*
%ifarch %gold_archs
%exclude %{_bindir}/gold
%endif
%doc %{_infodir}/*.gz
%{_libdir}/lib*-%{version}*.so
%doc %{_mandir}/man1/*.1.gz
%else
%{_prefix}
%endif
%ifarch %gold_archs
%files gold
%defattr(-,root,root)
%doc gold/NEWS gold/README
%{_bindir}/gold
%endif
%changelog
* Thu Jan 22 2009 schwab@suse.de
- Adjust list of extra targets.
* Mon Jan 19 2009 schwab@suse.de
- Update to head of trunk.
- Add gold.

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jan 22 14:20:16 CET 2009 - schwab@suse.de
- Adjust list of extra targets.
-------------------------------------------------------------------
Mon Jan 19 18:19:30 CET 2009 - schwab@suse.de

View File

@ -20,7 +20,7 @@
Name: cross-sparc-binutils
BuildRequires: bison dejagnu flex gcc-c++ zlib-devel
Version: 2.19.51
Release: 1
Release: 2
#
# RUN_TESTS
%define run_tests %(test ! -f %_sourcedir/RUN_TESTS ; echo $?)
@ -99,83 +99,6 @@ embedded tools.
Authors:
--------
Alan Modra <amodra@bigpond.net.au>
Andreas Jaeger <aj@suse.de>
Andreas Schwab <schwab@suse.de>
Bill Cox <bill@cygnus.com>
Brendan Kehoe <brendan@cygnus.com>
D. V. Henkel-Wallace <gumby@cygnus.com>
DJ Delorie <dj@redhat.com>
David D "Zoo" Zuhn <zoo@cygnus.com>
David J. Mackenzie <djm@cygnus.com>
Denis Chertykov <denisc@overta.ru>
Diego Novillo <dnovillo@redhat.com>
Doug Evans <dje@cygnus.com>
Eric Christopher <echristo@redhat.com>
Eric Youngdale <eric@aib.com>
Fred Fish <fnf@cygnus.com>
Geoff Keating <geoffk@redhat.com>
H.J.Lu <hjl@gnu.org>
Hans-Peter Nilsson <hp@axis.com>
Ian Dall <dall@hfrd.dsto.gov.au>
Ian Taylor <ian@zembu.com>
J.T. Conklin <jtc@cygnus.com>
Jakub Jelinek <jakub@redhat.com>
Jan Hubicka <jh@suse.cz>
Jason Eckhardt <jle@redhat.com>
Jason Merrill <jason@redhat.com>
Jeff Law <law@redhat.com>
Jeffrey Osier <jeffrey@cygnus.com>
Jeffrey Wheat <cassidy@cygnus.com>
Jim Kingdon <kingdon@cygnus.com>
Jim Wilson <wilson@redhat.com>
John Gilmore <gnu@cygnus.com>
Jörn Rennecke <amylaar@redhat.com>
K. Richard Pixley <rich@cygnus.com>
Ken Raeburn <raeburn@cygnus.com>
Kung Hsu <kung@cygnus.com>
Mark Eichin <eichin@cygnus.com>
Michael Meissner <meissner@redhat.com>
Michael Tiemann <tiemann@cygnus.com>
Mike Werner <mtw@cygnus.com>
Nick Clifton <nickc@redhat.com>
Per Bothner <bothner@cygnus.com>
Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
Richard Earnshaw <rwe@pegasus.esprit.ec.org>
Richard Henderson <rth@redhat.com>
Richard Stallman <rms@gnu.org>
Rob Savoye <rob@cygnus.com>
Roland H. Pesch <pesch@wrs.com>
Sean Eric Fagan <sef@cygnus.com>
Stan Shebs <shebs@apple.com>
Stephane Carrez <Stephane.Carrez@worldnet.fr>
Steve Chamberlain <sac@cygnus.com>
Stu Grossman <grossman@cygnus.com>
Torbjorn Granlund <tege@cygnus.com>
Ulf Carlsson <ulfc@calypso.engr.sgi.com>
%package gold
License: GPL v2 or later; LGPL v2.1 or later; X11/MIT
Summary: GNU binutils for Cross-Development to SPARC Processors
AutoReqProv: on
Requires: binutils = %{version}-%{release}
Group: Development/Tools/Building
%define gold_archs %ix86 x86_64 ppc ppc64 sparc sparc64
%description gold
Cross-development utilities: ar, as, gasp, gprof, ld, nm, objcopy,
objdump, ranlib, size, strings, strip. These utilities are needed
whenever you want to compile a program or a kernel. This package
differs from the normal SUSE binutils package in that it is designed to
cross-compile from whatever platform SUSE Linux is running on to SPARC
targets. This can be handy even if you are running on a SPARC
development platform, because it decouples the host tools from your
embedded tools.
Authors:
--------
Alan Modra <amodra@bigpond.net.au>
@ -273,29 +196,33 @@ RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wno-error"
# Building native binutils
echo "Building native binutils."
%if %build_multitarget
ADDITIONAL_TARGETS="%(echo %target_list | sed -e 's/[^ ]\+/&-suse-linux/g')"
ADDITIONAL_TARGETS="$ADDITIONAL_TARGETS powerpc-macos powerpc-macos10 spu-elf"
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
%if !%{test_vanilla}
ADDITIONAL_TARGETS="$ADDITIONAL_TARGETS i386-macos10"
EXTRA_TARGETS="$EXTRA_TARGETS,i386-macos10"
%endif
%else
ADDITIONAL_TARGETS=
EXTRA_TARGETS=
%endif
ADDITIONAL_LD_TARGETS=
EXTRA_LD_TARGETS=
%ifarch sparc
ADDITIONAL_LD_TARGETS="sparc64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,sparc64-suse-linux"
%endif
%ifarch ppc
ADDITIONAL_LD_TARGETS="powerpc64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,powerpc64-suse-linux"
%endif
%ifarch s390
ADDITIONAL_LD_TARGETS="s390x-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390x-suse-linux"
%endif
%ifarch s390x
ADDITIONAL_LD_TARGETS="s390-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390-suse-linux"
%endif
%ifarch %ix86
ADDITIONAL_LD_TARGETS="x86_64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,x86_64-suse-linux"
%endif
EXTRA_GOLD_TARGETS=$EXTRA_LD_TARGETS
%ifarch ppc ppc64
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
%endif
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
--prefix=%{_prefix} \\\
@ -306,21 +233,18 @@ ADDITIONAL_LD_TARGETS="x86_64-suse-linux"
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
--with-pic --build=%{HOST} \\\
--disable-ld-targets \\\
${ADDITIONAL_LD_TARGETS:+--enable-ld-targets="${ADDITIONAL_LD_TARGETS// /,}"} \\\
${ADDITIONAL_TARGETS:+--enable-targets="${ADDITIONAL_TARGETS// /,}"}
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
%define extra_ld_targets \\\
${EXTRA_LD_TARGETS:+--enable-ld-targets="${EXTRA_LD_TARGETS#,}"}
%define extra_gold_targets \\\
${EXTRA_GOLD_TARGETS:+--enable-ld-targets="${EXTRA_GOLD_TARGETS#,}"}
mkdir build-dir
cd build-dir
../configure %common_flags --enable-shared
../configure %common_flags %extra_ld_targets --enable-shared
make %{?jobs:-j%jobs} all-bfd TARGET-bfd=headers
# force reconfiguring
rm bfd/Makefile
make %{?jobs:-j%jobs}
%ifarch %gold_archs
mkdir ../build-dir2
cd ../build-dir2
../configure %common_flags --enable-shared --enable-gold --program-prefix=go
make %{?jobs:-j%jobs}
%endif
mkdir ../build-dir3
cd ../build-dir3
../configure %common_flags --disable-shared
@ -330,10 +254,6 @@ make %{?jobs:-j%jobs} all-bfd all-opcodes
cd build-dir
%ifnarch %arm
make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || %{make_check_handling}
%ifarch %gold_archs
cd ../build-dir2
make -k check-gold CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || :
%endif
%endif
#
#
@ -343,24 +263,24 @@ make -k check-gold CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" |
echo "Building cross binutils."
mkdir build-dir
cd build-dir
ADDITIONAL_TARGETS=
EXTRA_TARGETS=
%if "%{TARGET}" == "sparc"
ADDITIONAL_TARGETS="sparc64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,sparc64-suse-linux"
%endif
%if "%{TARGET}" == "powerpc"
ADDITIONAL_TARGETS="powerpc64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc64-suse-linux"
%endif
%if "%{TARGET}" == "s390"
ADDITIONAL_TARGETS="s390x-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,s390x-suse-linux"
%endif
%if "%{TARGET}" == "s390x"
ADDITIONAL_TARGETS="s390-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,s390-suse-linux"
%endif
%if "%{TARGET}" == "i586"
ADDITIONAL_TARGETS="x86_64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,x86_64-suse-linux"
%endif
%if "%{TARGET}" == "hppa"
ADDITIONAL_TARGETS="hppa64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,hppa64-suse-linux"
%endif
%if "%{TARGET}" == "avr" || "%{TARGET}" == "spu"
TARGET_OS=%{TARGET}
@ -378,7 +298,7 @@ TARGET_OS=%{TARGET}-linux
%else
--with-sysroot=%{_prefix}/%{TARGET_OS}/sys-root \
%endif
${ADDITIONAL_TARGETS:+--enable-targets="${ADDITIONAL_TARGETS// /,}"}
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
make %{?jobs:-j%jobs} all-bfd TARGET-bfd=headers
# force reconfiguring
rm bfd/Makefile
@ -400,11 +320,6 @@ make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || :
cd build-dir
%if "%name" == "binutils"
# installing native binutils
%ifarch %gold_archs
cd ../build-dir2
make DESTDIR=$RPM_BUILD_ROOT install-gold
cd ../build-dir
%endif
make DESTDIR=$RPM_BUILD_ROOT install-info install
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
cd ../build-dir3
@ -434,9 +349,6 @@ cd ..
%find_lang ld binutils.lang
%find_lang opcodes binutils.lang
%find_lang gprof binutils.lang
#%ifarch %gold_archs
#%find_lang gold binutils.lang
#%endif
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
install -m 644 binutils/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-binutils
install -m 644 gas/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-gas
@ -483,24 +395,16 @@ rm -rf $RPM_BUILD_ROOT
%{_prefix}/%{HOST}/lib/ldscripts
%{_libdir}/ldscripts
%{_bindir}/*
%ifarch %gold_archs
%exclude %{_bindir}/gold
%endif
%doc %{_infodir}/*.gz
%{_libdir}/lib*-%{version}*.so
%doc %{_mandir}/man1/*.1.gz
%else
%{_prefix}
%endif
%ifarch %gold_archs
%files gold
%defattr(-,root,root)
%doc gold/NEWS gold/README
%{_bindir}/gold
%endif
%changelog
* Thu Jan 22 2009 schwab@suse.de
- Adjust list of extra targets.
* Mon Jan 19 2009 schwab@suse.de
- Update to head of trunk.
- Add gold.

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jan 22 14:20:16 CET 2009 - schwab@suse.de
- Adjust list of extra targets.
-------------------------------------------------------------------
Mon Jan 19 18:19:30 CET 2009 - schwab@suse.de

View File

@ -20,7 +20,7 @@
Name: cross-spu-binutils
BuildRequires: bison dejagnu flex gcc-c++ zlib-devel
Version: 2.19.51
Release: 1
Release: 2
#
# RUN_TESTS
%define run_tests %(test ! -f %_sourcedir/RUN_TESTS ; echo $?)
@ -99,83 +99,6 @@ embedded tools.
Authors:
--------
Alan Modra <amodra@bigpond.net.au>
Andreas Jaeger <aj@suse.de>
Andreas Schwab <schwab@suse.de>
Bill Cox <bill@cygnus.com>
Brendan Kehoe <brendan@cygnus.com>
D. V. Henkel-Wallace <gumby@cygnus.com>
DJ Delorie <dj@redhat.com>
David D "Zoo" Zuhn <zoo@cygnus.com>
David J. Mackenzie <djm@cygnus.com>
Denis Chertykov <denisc@overta.ru>
Diego Novillo <dnovillo@redhat.com>
Doug Evans <dje@cygnus.com>
Eric Christopher <echristo@redhat.com>
Eric Youngdale <eric@aib.com>
Fred Fish <fnf@cygnus.com>
Geoff Keating <geoffk@redhat.com>
H.J.Lu <hjl@gnu.org>
Hans-Peter Nilsson <hp@axis.com>
Ian Dall <dall@hfrd.dsto.gov.au>
Ian Taylor <ian@zembu.com>
J.T. Conklin <jtc@cygnus.com>
Jakub Jelinek <jakub@redhat.com>
Jan Hubicka <jh@suse.cz>
Jason Eckhardt <jle@redhat.com>
Jason Merrill <jason@redhat.com>
Jeff Law <law@redhat.com>
Jeffrey Osier <jeffrey@cygnus.com>
Jeffrey Wheat <cassidy@cygnus.com>
Jim Kingdon <kingdon@cygnus.com>
Jim Wilson <wilson@redhat.com>
John Gilmore <gnu@cygnus.com>
Jörn Rennecke <amylaar@redhat.com>
K. Richard Pixley <rich@cygnus.com>
Ken Raeburn <raeburn@cygnus.com>
Kung Hsu <kung@cygnus.com>
Mark Eichin <eichin@cygnus.com>
Michael Meissner <meissner@redhat.com>
Michael Tiemann <tiemann@cygnus.com>
Mike Werner <mtw@cygnus.com>
Nick Clifton <nickc@redhat.com>
Per Bothner <bothner@cygnus.com>
Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
Richard Earnshaw <rwe@pegasus.esprit.ec.org>
Richard Henderson <rth@redhat.com>
Richard Stallman <rms@gnu.org>
Rob Savoye <rob@cygnus.com>
Roland H. Pesch <pesch@wrs.com>
Sean Eric Fagan <sef@cygnus.com>
Stan Shebs <shebs@apple.com>
Stephane Carrez <Stephane.Carrez@worldnet.fr>
Steve Chamberlain <sac@cygnus.com>
Stu Grossman <grossman@cygnus.com>
Torbjorn Granlund <tege@cygnus.com>
Ulf Carlsson <ulfc@calypso.engr.sgi.com>
%package gold
License: GPL v2 or later; LGPL v2.1 or later; X11/MIT
Summary: GNU binutils for Cross-Development to SPU Processors
AutoReqProv: on
Requires: binutils = %{version}-%{release}
Group: Development/Tools/Building
%define gold_archs %ix86 x86_64 ppc ppc64 sparc sparc64
%description gold
Cross-development utilities: ar, as, gasp, gprof, ld, nm, objcopy,
objdump, ranlib, size, strings, strip. These utilities are needed
whenever you want to compile a program or a kernel. This package
differs from the normal SUSE binutils package in that it is designed to
cross-compile from whatever platform SUSE Linux is running on to SPU
targets. This can be handy even if you are running on an SPU
development platform, because it decouples the host tools from your
embedded tools.
Authors:
--------
Alan Modra <amodra@bigpond.net.au>
@ -273,29 +196,33 @@ RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wno-error"
# Building native binutils
echo "Building native binutils."
%if %build_multitarget
ADDITIONAL_TARGETS="%(echo %target_list | sed -e 's/[^ ]\+/&-suse-linux/g')"
ADDITIONAL_TARGETS="$ADDITIONAL_TARGETS powerpc-macos powerpc-macos10 spu-elf"
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
%if !%{test_vanilla}
ADDITIONAL_TARGETS="$ADDITIONAL_TARGETS i386-macos10"
EXTRA_TARGETS="$EXTRA_TARGETS,i386-macos10"
%endif
%else
ADDITIONAL_TARGETS=
EXTRA_TARGETS=
%endif
ADDITIONAL_LD_TARGETS=
EXTRA_LD_TARGETS=
%ifarch sparc
ADDITIONAL_LD_TARGETS="sparc64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,sparc64-suse-linux"
%endif
%ifarch ppc
ADDITIONAL_LD_TARGETS="powerpc64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,powerpc64-suse-linux"
%endif
%ifarch s390
ADDITIONAL_LD_TARGETS="s390x-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390x-suse-linux"
%endif
%ifarch s390x
ADDITIONAL_LD_TARGETS="s390-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390-suse-linux"
%endif
%ifarch %ix86
ADDITIONAL_LD_TARGETS="x86_64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,x86_64-suse-linux"
%endif
EXTRA_GOLD_TARGETS=$EXTRA_LD_TARGETS
%ifarch ppc ppc64
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
%endif
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
--prefix=%{_prefix} \\\
@ -306,21 +233,18 @@ ADDITIONAL_LD_TARGETS="x86_64-suse-linux"
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
--with-pic --build=%{HOST} \\\
--disable-ld-targets \\\
${ADDITIONAL_LD_TARGETS:+--enable-ld-targets="${ADDITIONAL_LD_TARGETS// /,}"} \\\
${ADDITIONAL_TARGETS:+--enable-targets="${ADDITIONAL_TARGETS// /,}"}
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
%define extra_ld_targets \\\
${EXTRA_LD_TARGETS:+--enable-ld-targets="${EXTRA_LD_TARGETS#,}"}
%define extra_gold_targets \\\
${EXTRA_GOLD_TARGETS:+--enable-ld-targets="${EXTRA_GOLD_TARGETS#,}"}
mkdir build-dir
cd build-dir
../configure %common_flags --enable-shared
../configure %common_flags %extra_ld_targets --enable-shared
make %{?jobs:-j%jobs} all-bfd TARGET-bfd=headers
# force reconfiguring
rm bfd/Makefile
make %{?jobs:-j%jobs}
%ifarch %gold_archs
mkdir ../build-dir2
cd ../build-dir2
../configure %common_flags --enable-shared --enable-gold --program-prefix=go
make %{?jobs:-j%jobs}
%endif
mkdir ../build-dir3
cd ../build-dir3
../configure %common_flags --disable-shared
@ -330,10 +254,6 @@ make %{?jobs:-j%jobs} all-bfd all-opcodes
cd build-dir
%ifnarch %arm
make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || %{make_check_handling}
%ifarch %gold_archs
cd ../build-dir2
make -k check-gold CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || :
%endif
%endif
#
#
@ -343,24 +263,24 @@ make -k check-gold CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" |
echo "Building cross binutils."
mkdir build-dir
cd build-dir
ADDITIONAL_TARGETS=
EXTRA_TARGETS=
%if "%{TARGET}" == "sparc"
ADDITIONAL_TARGETS="sparc64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,sparc64-suse-linux"
%endif
%if "%{TARGET}" == "powerpc"
ADDITIONAL_TARGETS="powerpc64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc64-suse-linux"
%endif
%if "%{TARGET}" == "s390"
ADDITIONAL_TARGETS="s390x-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,s390x-suse-linux"
%endif
%if "%{TARGET}" == "s390x"
ADDITIONAL_TARGETS="s390-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,s390-suse-linux"
%endif
%if "%{TARGET}" == "i586"
ADDITIONAL_TARGETS="x86_64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,x86_64-suse-linux"
%endif
%if "%{TARGET}" == "hppa"
ADDITIONAL_TARGETS="hppa64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,hppa64-suse-linux"
%endif
%if "%{TARGET}" == "avr" || "%{TARGET}" == "spu"
TARGET_OS=%{TARGET}
@ -378,7 +298,7 @@ TARGET_OS=%{TARGET}-linux
%else
--with-sysroot=%{_prefix}/%{TARGET_OS}/sys-root \
%endif
${ADDITIONAL_TARGETS:+--enable-targets="${ADDITIONAL_TARGETS// /,}"}
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
make %{?jobs:-j%jobs} all-bfd TARGET-bfd=headers
# force reconfiguring
rm bfd/Makefile
@ -400,11 +320,6 @@ make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || :
cd build-dir
%if "%name" == "binutils"
# installing native binutils
%ifarch %gold_archs
cd ../build-dir2
make DESTDIR=$RPM_BUILD_ROOT install-gold
cd ../build-dir
%endif
make DESTDIR=$RPM_BUILD_ROOT install-info install
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
cd ../build-dir3
@ -434,9 +349,6 @@ cd ..
%find_lang ld binutils.lang
%find_lang opcodes binutils.lang
%find_lang gprof binutils.lang
#%ifarch %gold_archs
#%find_lang gold binutils.lang
#%endif
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
install -m 644 binutils/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-binutils
install -m 644 gas/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-gas
@ -483,24 +395,16 @@ rm -rf $RPM_BUILD_ROOT
%{_prefix}/%{HOST}/lib/ldscripts
%{_libdir}/ldscripts
%{_bindir}/*
%ifarch %gold_archs
%exclude %{_bindir}/gold
%endif
%doc %{_infodir}/*.gz
%{_libdir}/lib*-%{version}*.so
%doc %{_mandir}/man1/*.1.gz
%else
%{_prefix}
%endif
%ifarch %gold_archs
%files gold
%defattr(-,root,root)
%doc gold/NEWS gold/README
%{_bindir}/gold
%endif
%changelog
* Thu Jan 22 2009 schwab@suse.de
- Adjust list of extra targets.
* Mon Jan 19 2009 schwab@suse.de
- Update to head of trunk.
- Add gold.

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jan 22 14:20:16 CET 2009 - schwab@suse.de
- Adjust list of extra targets.
-------------------------------------------------------------------
Mon Jan 19 18:19:30 CET 2009 - schwab@suse.de

View File

@ -20,7 +20,7 @@
Name: cross-x86_64-binutils
BuildRequires: bison dejagnu flex gcc-c++ zlib-devel
Version: 2.19.51
Release: 1
Release: 2
#
# RUN_TESTS
%define run_tests %(test ! -f %_sourcedir/RUN_TESTS ; echo $?)
@ -99,83 +99,6 @@ embedded tools.
Authors:
--------
Alan Modra <amodra@bigpond.net.au>
Andreas Jaeger <aj@suse.de>
Andreas Schwab <schwab@suse.de>
Bill Cox <bill@cygnus.com>
Brendan Kehoe <brendan@cygnus.com>
D. V. Henkel-Wallace <gumby@cygnus.com>
DJ Delorie <dj@redhat.com>
David D "Zoo" Zuhn <zoo@cygnus.com>
David J. Mackenzie <djm@cygnus.com>
Denis Chertykov <denisc@overta.ru>
Diego Novillo <dnovillo@redhat.com>
Doug Evans <dje@cygnus.com>
Eric Christopher <echristo@redhat.com>
Eric Youngdale <eric@aib.com>
Fred Fish <fnf@cygnus.com>
Geoff Keating <geoffk@redhat.com>
H.J.Lu <hjl@gnu.org>
Hans-Peter Nilsson <hp@axis.com>
Ian Dall <dall@hfrd.dsto.gov.au>
Ian Taylor <ian@zembu.com>
J.T. Conklin <jtc@cygnus.com>
Jakub Jelinek <jakub@redhat.com>
Jan Hubicka <jh@suse.cz>
Jason Eckhardt <jle@redhat.com>
Jason Merrill <jason@redhat.com>
Jeff Law <law@redhat.com>
Jeffrey Osier <jeffrey@cygnus.com>
Jeffrey Wheat <cassidy@cygnus.com>
Jim Kingdon <kingdon@cygnus.com>
Jim Wilson <wilson@redhat.com>
John Gilmore <gnu@cygnus.com>
Jörn Rennecke <amylaar@redhat.com>
K. Richard Pixley <rich@cygnus.com>
Ken Raeburn <raeburn@cygnus.com>
Kung Hsu <kung@cygnus.com>
Mark Eichin <eichin@cygnus.com>
Michael Meissner <meissner@redhat.com>
Michael Tiemann <tiemann@cygnus.com>
Mike Werner <mtw@cygnus.com>
Nick Clifton <nickc@redhat.com>
Per Bothner <bothner@cygnus.com>
Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
Richard Earnshaw <rwe@pegasus.esprit.ec.org>
Richard Henderson <rth@redhat.com>
Richard Stallman <rms@gnu.org>
Rob Savoye <rob@cygnus.com>
Roland H. Pesch <pesch@wrs.com>
Sean Eric Fagan <sef@cygnus.com>
Stan Shebs <shebs@apple.com>
Stephane Carrez <Stephane.Carrez@worldnet.fr>
Steve Chamberlain <sac@cygnus.com>
Stu Grossman <grossman@cygnus.com>
Torbjorn Granlund <tege@cygnus.com>
Ulf Carlsson <ulfc@calypso.engr.sgi.com>
%package gold
License: GPL v2 or later; LGPL v2.1 or later; X11/MIT
Summary: GNU binutils for Cross-Development to X86-64 Processors
AutoReqProv: on
Requires: binutils = %{version}-%{release}
Group: Development/Tools/Building
%define gold_archs %ix86 x86_64 ppc ppc64 sparc sparc64
%description gold
Cross-development utilities: ar, as, gasp, gprof, ld, nm, objcopy,
objdump, ranlib, size, strings, strip. These utilities are needed
whenever you want to compile a program or a kernel. This package
differs from the normal SUSE binutils package in that it is designed to
cross-compile from whatever platform SUSE Linux is running on to X86-64
targets. This can be handy even if you are running on an X86-64
development platform, because it decouples the host tools from your
embedded tools.
Authors:
--------
Alan Modra <amodra@bigpond.net.au>
@ -273,29 +196,33 @@ RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wno-error"
# Building native binutils
echo "Building native binutils."
%if %build_multitarget
ADDITIONAL_TARGETS="%(echo %target_list | sed -e 's/[^ ]\+/&-suse-linux/g')"
ADDITIONAL_TARGETS="$ADDITIONAL_TARGETS powerpc-macos powerpc-macos10 spu-elf"
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf"
%if !%{test_vanilla}
ADDITIONAL_TARGETS="$ADDITIONAL_TARGETS i386-macos10"
EXTRA_TARGETS="$EXTRA_TARGETS,i386-macos10"
%endif
%else
ADDITIONAL_TARGETS=
EXTRA_TARGETS=
%endif
ADDITIONAL_LD_TARGETS=
EXTRA_LD_TARGETS=
%ifarch sparc
ADDITIONAL_LD_TARGETS="sparc64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,sparc64-suse-linux"
%endif
%ifarch ppc
ADDITIONAL_LD_TARGETS="powerpc64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,powerpc64-suse-linux"
%endif
%ifarch s390
ADDITIONAL_LD_TARGETS="s390x-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390x-suse-linux"
%endif
%ifarch s390x
ADDITIONAL_LD_TARGETS="s390-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,s390-suse-linux"
%endif
%ifarch %ix86
ADDITIONAL_LD_TARGETS="x86_64-suse-linux"
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,x86_64-suse-linux"
%endif
EXTRA_GOLD_TARGETS=$EXTRA_LD_TARGETS
%ifarch ppc ppc64
EXTRA_LD_TARGETS="$EXTRA_LD_TARGETS,spu-elf"
%endif
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
--prefix=%{_prefix} \\\
@ -306,21 +233,18 @@ ADDITIONAL_LD_TARGETS="x86_64-suse-linux"
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
--with-pic --build=%{HOST} \\\
--disable-ld-targets \\\
${ADDITIONAL_LD_TARGETS:+--enable-ld-targets="${ADDITIONAL_LD_TARGETS// /,}"} \\\
${ADDITIONAL_TARGETS:+--enable-targets="${ADDITIONAL_TARGETS// /,}"}
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
%define extra_ld_targets \\\
${EXTRA_LD_TARGETS:+--enable-ld-targets="${EXTRA_LD_TARGETS#,}"}
%define extra_gold_targets \\\
${EXTRA_GOLD_TARGETS:+--enable-ld-targets="${EXTRA_GOLD_TARGETS#,}"}
mkdir build-dir
cd build-dir
../configure %common_flags --enable-shared
../configure %common_flags %extra_ld_targets --enable-shared
make %{?jobs:-j%jobs} all-bfd TARGET-bfd=headers
# force reconfiguring
rm bfd/Makefile
make %{?jobs:-j%jobs}
%ifarch %gold_archs
mkdir ../build-dir2
cd ../build-dir2
../configure %common_flags --enable-shared --enable-gold --program-prefix=go
make %{?jobs:-j%jobs}
%endif
mkdir ../build-dir3
cd ../build-dir3
../configure %common_flags --disable-shared
@ -330,10 +254,6 @@ make %{?jobs:-j%jobs} all-bfd all-opcodes
cd build-dir
%ifnarch %arm
make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || %{make_check_handling}
%ifarch %gold_archs
cd ../build-dir2
make -k check-gold CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || :
%endif
%endif
#
#
@ -343,24 +263,24 @@ make -k check-gold CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" |
echo "Building cross binutils."
mkdir build-dir
cd build-dir
ADDITIONAL_TARGETS=
EXTRA_TARGETS=
%if "%{TARGET}" == "sparc"
ADDITIONAL_TARGETS="sparc64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,sparc64-suse-linux"
%endif
%if "%{TARGET}" == "powerpc"
ADDITIONAL_TARGETS="powerpc64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc64-suse-linux"
%endif
%if "%{TARGET}" == "s390"
ADDITIONAL_TARGETS="s390x-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,s390x-suse-linux"
%endif
%if "%{TARGET}" == "s390x"
ADDITIONAL_TARGETS="s390-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,s390-suse-linux"
%endif
%if "%{TARGET}" == "i586"
ADDITIONAL_TARGETS="x86_64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,x86_64-suse-linux"
%endif
%if "%{TARGET}" == "hppa"
ADDITIONAL_TARGETS="hppa64-suse-linux"
EXTRA_TARGETS="$EXTRA_TARGETS,hppa64-suse-linux"
%endif
%if "%{TARGET}" == "avr" || "%{TARGET}" == "spu"
TARGET_OS=%{TARGET}
@ -378,7 +298,7 @@ TARGET_OS=%{TARGET}-linux
%else
--with-sysroot=%{_prefix}/%{TARGET_OS}/sys-root \
%endif
${ADDITIONAL_TARGETS:+--enable-targets="${ADDITIONAL_TARGETS// /,}"}
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"}
make %{?jobs:-j%jobs} all-bfd TARGET-bfd=headers
# force reconfiguring
rm bfd/Makefile
@ -400,11 +320,6 @@ make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || :
cd build-dir
%if "%name" == "binutils"
# installing native binutils
%ifarch %gold_archs
cd ../build-dir2
make DESTDIR=$RPM_BUILD_ROOT install-gold
cd ../build-dir
%endif
make DESTDIR=$RPM_BUILD_ROOT install-info install
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
cd ../build-dir3
@ -434,9 +349,6 @@ cd ..
%find_lang ld binutils.lang
%find_lang opcodes binutils.lang
%find_lang gprof binutils.lang
#%ifarch %gold_archs
#%find_lang gold binutils.lang
#%endif
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
install -m 644 binutils/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-binutils
install -m 644 gas/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-gas
@ -483,24 +395,16 @@ rm -rf $RPM_BUILD_ROOT
%{_prefix}/%{HOST}/lib/ldscripts
%{_libdir}/ldscripts
%{_bindir}/*
%ifarch %gold_archs
%exclude %{_bindir}/gold
%endif
%doc %{_infodir}/*.gz
%{_libdir}/lib*-%{version}*.so
%doc %{_mandir}/man1/*.1.gz
%else
%{_prefix}
%endif
%ifarch %gold_archs
%files gold
%defattr(-,root,root)
%doc gold/NEWS gold/README
%{_bindir}/gold
%endif
%changelog
* Thu Jan 22 2009 schwab@suse.de
- Adjust list of extra targets.
* Mon Jan 19 2009 schwab@suse.de
- Update to head of trunk.
- Add gold.

View File

@ -8,7 +8,8 @@ for arch in hppa hppa64 mips arm i386 x86_64 s390 s390x sh4 ppc ppc64 ia64 sparc
ln -f binutils.changes cross-$arch-binutils.changes
sed -e "s/^Name:.*binutils\$/Name: cross-$arch-binutils/" \
-e '/ devel$/,/^$/d' \
-e '/%ifarch %gold_archs/,/%endif/d' \
-e '/ \(devel\|gold\)$/,/^$/d' \
< binutils.spec > cross-$arch-binutils.spec
echo " done."