[arm-none-eabi-binutils-cs] initial import
Michal Hlavinka
mhlavink at fedoraproject.org
Wed Feb 20 10:15:36 UTC 2013
commit ce0ff480e4ddd1b5d303e0598170698d14f11531
Author: Michal Hlavinka <mhlavink at redhat.com>
Date: Wed Feb 20 11:15:29 2013 +0100
initial import
.gitignore | 1 +
README.fedora | 4 ++
arm-none-eabi-binutils-cs.spec | 90 ++++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 96 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..8842d98 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/binutils-2012.09-63.tar.bz2
diff --git a/README.fedora b/README.fedora
new file mode 100644
index 0000000..5f8d4e8
--- /dev/null
+++ b/README.fedora
@@ -0,0 +1,4 @@
+This package does not include the gnu texinfo documentation because this would
+conflict with the native binutils. If you've installed the native binutils,
+you can find the info documentation there, notice that this might be for a
+different version though!
diff --git a/arm-none-eabi-binutils-cs.spec b/arm-none-eabi-binutils-cs.spec
new file mode 100644
index 0000000..2352568
--- /dev/null
+++ b/arm-none-eabi-binutils-cs.spec
@@ -0,0 +1,90 @@
+# CodeSourcery releases are identified by a date, a release number,
+# and a package number for downloading from their web site
+%global cs_date 2012.09
+%global cs_rel 63
+%global cs_pkgnum 10925
+
+%global processor_arch arm
+%global target %{processor_arch}-none-eabi
+
+Name: %{target}-binutils-cs
+Version: %{cs_date}.%{cs_rel}
+Release: 1%{?dist}
+Summary: GNU Binutils for cross-compilation for %{target} target
+Group: Development/Tools
+# Most of the sources are licensed under GPLv3+ with these exceptions:
+# LGPLv2+ bfd/hosts/x86-64linux.h, include/demangle.h, include/xregex2.h,
+# GPLv2+ gprof/cg_print.h
+# BSD gprof/cg_arcs.h, gprof/utils.c, ld/elf-hints-local.h,
+# Public Domain libiberty/memmove.c
+License: GPLv2+ and GPLv3+ and LGPLv2+ and BSD
+URL: http://www.codesourcery.com/sgpp/lite/%{processor_arch}
+
+#we don't use orignal tarball, because it's HUGE
+Source0: binutils-%{cs_date}-%{cs_rel}.tar.bz2
+#Source0 origin:
+#wget https://sourcery.mentor.com/GNUToolchain/package%{cs_pkgnum}/public/%{target}/%{processor_arch}-%{cs_date}-%{cs_rel}-%{target}.src.tar.bz2
+#tar jxvf %{processor_arch}-%{cs_date}-%{cs_rel}-%{target}.src.tar.bz2
+
+Source1: README.fedora
+BuildRequires: flex bison ppl-devel cloog-ppl-devel
+BuildRequires: texinfo texinfo-tex
+
+%description
+This is a cross-compilation version of GNU Binutils, which can be used to
+assemble and link binaries for the %{target} platform.
+
+This Binutils package is based on the CodeSourcery
+%{cs_date}-%{cs_rel} release, which includes improved ARM target
+support compared to the corresponding FSF release. CodeSourcery
+contributes their changes to the FSF, but it takes a while for them to
+get merged. For the ARM target, effectively CodeSourcery is upstream
+of FSF.
+
+%prep
+%setup -q -n binutils-%{cs_date}
+cp -p %{SOURCE1} .
+
+%build
+./configure CFLAGS="$RPM_OPT_FLAGS" \
+ --target=%{target} \
+ --enable-interwork \
+ --enable-multilib \
+ --disable-nls \
+ --disable-shared \
+ --disable-threads \
+ --with-gcc --with-gnu-as --with-gnu-ld \
+ --prefix=%{_prefix} \
+ --libdir=%{_libdir} \
+ --mandir=%{_mandir} \
+ --infodir=%{_infodir} \
+ --with-docdir=share/doc/%{name}-%{version} \
+ --disable-werror \
+ --with-pkgversion="Fedora %{version}-%{release}" \
+ --with-bugurl="https://bugzilla.redhat.com/"
+make %{?_smp_mflags}
+
+%check
+make check
+
+%install
+make install DESTDIR=%{buildroot}
+# these are for win targets only
+rm %{buildroot}%{_mandir}/man1/%{target}-{dlltool,nlmconv,windres}.1
+# we don't want these as we are a cross version
+rm -r %{buildroot}%{_infodir}
+rm %{buildroot}%{_libdir}/libiberty.a
+rmdir %{buildroot}%{_libdir}
+
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING* ChangeLog README.fedora
+%{_prefix}/%{target}
+%{_bindir}/%{target}-*
+%{_mandir}/man1/%{target}-*.1.gz
+
+
+%changelog
+* Mon Dec 03 2012 Michal Hlavinka <mhlavink at redhat.com> - 2012.09.63-1
+- new spec for arm-none-eabi using CodeSourcery release
diff --git a/sources b/sources
index e69de29..bd80209 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+e477c42156c63f0247161514df5f131b binutils-2012.09-63.tar.bz2
More information about the scm-commits
mailing list