forked from pool/binutils
This commit is contained in:
committed by
Git OBS Bridge
parent
9350499628
commit
2ef459be03
@@ -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<EFBFBD>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.
|
||||
|
Reference in New Issue
Block a user