Summary: GNU assembler, linker etc. for Alteon's Tigon MIPS processor Name: tigon-binutils Version: 2.9.5.0.29 Release: 4 Copyright: GPL Group: Development/Tools URL: http://sourceware.cygnus.com/binutils Source: ftp://ftp.valinux.com/pub/support/hjl/binutils/binutils-%{version}.tar.gz Patch0: tigon_binutils-2.9.5.0.29.patch Buildroot: /var/tmp/binutils-root Packager: Jamie Lokier %define _TARGET mips-alteon-elf %description This is a version of GNU Binary utilities for the customised MIPS processors on Alteon's Tigon Gigabit Ethernet chips. You need this to build firmware that runs on the Tigon, but not to build operating system device drivers that communicate with the Tigon. Binutils is a collection of binary utilities, including ar (for creating, modifying and extracting from archives), nm (for listing symbols from object files), objcopy (for copying and translating object files), objdump (for displaying information from object files), ranlib (for generating an index for the contents of an archive), size (for listing the section sizes of an object or archive file), strings (for listing printable strings from files), strip (for discarding symbols), c++filt (a filter for demangling encoded C++ symbols), addr2line (for converting addresses to file and line), and nlmconv (for converting object code into an NLM). %package info Summary: GNU C/C++ Compiler documentation Group: Development/Languages Requires: tigon-binutils = %{version} %description info This is the Info documentation for the GNU Binary utilities built for Alteon's Tigon Gigabit Ethernet chips. The documentation describes all Binutils targets. As this documentation is likely to be installed already as part of the standard `binutils' package, it's made available as a separate package here which you may not wish to install. %prep %setup -q -n binutils-%{version} %patch0 -p1 -b .tigon %build CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --disable-shared \ --target=%{_TARGET} $RPM_ARCH-redhat-linux # Do not set tooldir to be the same as prefix. make all info %install rm -rf ${RPM_BUILD_ROOT} mkdir -p ${RPM_BUILD_ROOT}/usr # Do not set tooldir to be the same as prefix. make prefix=${RPM_BUILD_ROOT}/usr install install-info strip ${RPM_BUILD_ROOT}/usr/bin/* gzip -q9f ${RPM_BUILD_ROOT}/usr/info/*.info* #install -m 644 libiberty/libiberty.a ${RPM_BUILD_ROOT}/usr/lib #install -m 644 include/libiberty.h ${RPM_BUILD_ROOT}/usr/include #There are no shared libraries for us. # --enable-shared doesn't enable shared! And if it did it would use # a library name which clashes with the non-cross binutils. #chmod +x ${RPM_BUILD_ROOT}/usr/lib/lib*.so* # This one comes from egcs # Use the one in binutils since it is more recent than the one in egcs. #rm -f ${RPM_BUILD_ROOT}/usr/bin/c++filt #rm -f ${RPM_BUILD_ROOT}/usr/bin/%{_TARGET}-c++filt %clean rm -rf ${RPM_BUILD_ROOT} %post info /sbin/ldconfig /sbin/install-info --info-dir=/usr/info /usr/info/as.info.gz /sbin/install-info --info-dir=/usr/info /usr/info/bfd.info.gz /sbin/install-info --info-dir=/usr/info /usr/info/binutils.info.gz /sbin/install-info --info-dir=/usr/info /usr/info/gasp.info.gz /sbin/install-info --info-dir=/usr/info /usr/info/gprof.info.gz /sbin/install-info --info-dir=/usr/info /usr/info/ld.info.gz /sbin/install-info --info-dir=/usr/info /usr/info/standards.info.gz %preun info if [ $1 = 0 ] ;then /sbin/install-info --delete --info-dir=/usr/info /usr/info/as.info.gz /sbin/install-info --delete --info-dir=/usr/info /usr/info/bfd.info.gz /sbin/install-info --delete --info-dir=/usr/info /usr/info/binutils.info.gz /sbin/install-info --delete --info-dir=/usr/info /usr/info/gasp.info.gz /sbin/install-info --delete --info-dir=/usr/info /usr/info/gprof.info.gz /sbin/install-info --delete --info-dir=/usr/info /usr/info/ld.info.gz /sbin/install-info --delete --info-dir=/usr/info /usr/info/standards.info.gz fi %files %defattr(-,root,root) #%doc README /usr/bin/%{_TARGET}-* /usr/man/man1/%{_TARGET}-* #/usr/include/* #/usr/lib/* /usr/%{_TARGET}/bin/* /usr/%{_TARGET}/lib/ldscripts/* %files info /usr/info/*info* %changelog * Thu Apr 20 2000 Jamie Lokier - Separate package for documentation, to avoid conflict with system GCC documentation. * Thu Apr 20 2000 Jamie Lokier - added Packager: field - learned how to use %setup properly -- look on the web for a manual. * Thu Mar 23 2000 Jamie Lokier - don't set tooldir to /usr as the non-cross spec files does: gcc wants to find cross-linking tools in /usr/%{_TARGET}/bin etc. now the unprefixed executables go in tooldir, which doesn't conflict with the native binutils and is what gcc expects - include some of the insn macros: - swl & swr (missing from their binutils-2.9 patch) - sd & ld macros - li.s for soft floating point constants (integer register only) - ulw, usw (these synthesise to swl and swr) * Wed Mar 22 2000 Jamie Lokier - fixed path bug in make tooldir=${_prefix}usr - turn off --enable-shared; it doesn't enable shared libraries (perhaps due to the different host/target), and it creates a library which conflicts with the standard binutils anyway - strip using "strip" not "./binutils/strip-new", for cross tools - use mips-alteon-elf- instead of tigon- prefix - only install the mips-alteon-elf prefixed executables, not unprefixed nm etc. * Wed Mar 15 2000 Jamie Lokier - adapted from Red Hat's binutils-2.9.5.0.22-6 - updated binutils itself to H.J.Lu's binutils 2.9.5.0.29 - trimmed spec file - patch for Tigon adapted from Alteon's Open Firmware version 12.4.8 (which provides a patch for an older binutils) - built with program prefix "tigon-"