mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-30 08:59:03 +08:00
Remove.
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
Makefile
|
||||
Makefile.in
|
||||
@@ -1,3 +0,0 @@
|
||||
# $Id$
|
||||
|
||||
SUBDIRS = i586
|
||||
@@ -1,30 +0,0 @@
|
||||
EXTRA_DIST += binutils-sources.add
|
||||
|
||||
BINUTILS_OPTS =
|
||||
|
||||
BINUTILS_SUBPACKAGES = $(top_srcdir)/common/common.add
|
||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/binutils.add
|
||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/prep.add
|
||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/build.add
|
||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/install.add
|
||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/rpm-install.add
|
||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/target-binutils.add
|
||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/base-binutils.add
|
||||
|
||||
$(TARGET)-binutils.spec.in: $(BINUTILS_SUBPACKAGES) Makefile.am $(srcdir)/binutils-sources.add
|
||||
cat $(BINUTILS_SUBPACKAGES) | sed \
|
||||
-e "/[@]SOURCES[@]/r $(srcdir)/binutils-sources.add" \
|
||||
-e "/[@]SOURCES[@]/d" \
|
||||
-e "s/[@]BINUTILS_VERS[@]/$(BINUTILS_VERS)/g" \
|
||||
-e "s/[@]BINUTILS_PKGVERS[@]/$(BINUTILS_PKGVERS)/g" \
|
||||
-e "s/[@]BINUTILS_RPMREL[@]/$(BINUTILS_RPMREL)/g" \
|
||||
| $(MKSPEC0) > $(TARGET)-binutils.spec.in
|
||||
CLEANFILES += $(TARGET)-binutils.spec.in
|
||||
|
||||
@rpmprefix@$(TARGET)-binutils.spec: $(TARGET)-binutils.spec.in
|
||||
$(MKSPEC) $(TARGET)-binutils.spec.in | $(SPECSTRIP) $(BINUTILS_OPTS) > $@
|
||||
CLEANFILES += @rpmprefix@$(TARGET)-binutils.spec
|
||||
noinst_DATA += @rpmprefix@$(TARGET)-binutils.spec
|
||||
|
||||
EXTRA_DIST += $(BINUTILS_SUBPACKAGES)
|
||||
@@ -1,40 +0,0 @@
|
||||
EXTRA_DIST += $(srcdir)/../gcc-prep.add
|
||||
EXTRA_DIST += $(srcdir)/gcc-sources.add
|
||||
|
||||
GCC_OPTS =
|
||||
|
||||
GCC_SUBPACKAGES = $(top_srcdir)/common/common.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/gccnewlib.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/prep.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/build.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/install.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-gcc.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/base-gcc.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-c++.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-gfortran.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/base-gfortran.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-objc.add
|
||||
|
||||
$(TARGET)-gcc.spec.in: $(GCC_SUBPACKAGES) Makefile.am $(srcdir)/gcc-sources.add $(srcdir)/../gcc-prep.add
|
||||
cat $(GCC_SUBPACKAGES) | sed \
|
||||
-e "/[@]SOURCES[@]/r $(srcdir)/gcc-sources.add" \
|
||||
-e "/[@]SOURCES[@]/d" \
|
||||
-e "/[@]PREP[@]/r $(srcdir)/../gcc-prep.add" \
|
||||
-e "/[@]PREP[@]/d" \
|
||||
-e "s/[@]GCC_VERS[@]/$(GCC_VERS)/g" \
|
||||
-e "s/[@]GCC_PKGVERS[@]/$(GCC_PKGVERS)/g" \
|
||||
-e "s/[@]GCC_RPMREL[@]/$(GCC_RPMREL)/g" \
|
||||
-e "/[@]tool_target[@]-newlib/d" \
|
||||
-e "/[@]tool_target[@]-w32api-sys-root/d" \
|
||||
-e "/--with-newlib/d" \
|
||||
| $(MKSPEC0) > $(TARGET)-gcc.spec.in
|
||||
CLEANFILES += $(TARGET)-gcc.spec.in
|
||||
|
||||
@rpmprefix@$(TARGET)-gcc.spec: $(TARGET)-gcc.spec.in
|
||||
$(MKSPEC) $(TARGET)-gcc.spec.in | $(SPECSTRIP) $(GCC_OPTS) > $@
|
||||
CLEANFILES += @rpmprefix@$(TARGET)-gcc.spec
|
||||
noinst_DATA += @rpmprefix@$(TARGET)-gcc.spec
|
||||
|
||||
EXTRA_DIST += $(GCC_SUBPACKAGES)
|
||||
@@ -1,4 +0,0 @@
|
||||
Makefile
|
||||
Makefile.in
|
||||
*.spec
|
||||
*.spec.in
|
||||
@@ -1,42 +0,0 @@
|
||||
# $Id$
|
||||
|
||||
TARGET = i586-pc-freebsd6.2
|
||||
|
||||
include $(top_srcdir)/mkspec.am
|
||||
|
||||
FREEBSD_VERS = 6.2
|
||||
FREEBSD_RPMREL = @VERSION@
|
||||
EXTRA_DIST += libs.add
|
||||
EXTRA_DIST += target-libs.add
|
||||
|
||||
LIBS_SUBPACKAGES = $(top_srcdir)/common/common.add
|
||||
LIBS_SUBPACKAGES += $(srcdir)/libs.add
|
||||
LIBS_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
||||
LIBS_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
||||
LIBS_SUBPACKAGES += $(srcdir)/target-libs.add
|
||||
|
||||
$(TARGET)-libs.spec.in: $(LIBS_SUBPACKAGES) Makefile.am
|
||||
cat $(LIBS_SUBPACKAGES) | sed \
|
||||
-e "s/[@]FREEBSD_VERS[@]/$(FREEBSD_VERS)/g" \
|
||||
-e "s/[@]FREEBSD_RPMREL[@]/$(FREEBSD_RPMREL)/g" \
|
||||
-e "s,%{gcc_rpmvers},%{freebsd_rpmvers},g" \
|
||||
> $(TARGET)-libs.spec.in
|
||||
CLEANFILES += $(TARGET)-libs.spec.in
|
||||
|
||||
@rpmprefix@$(TARGET)-libs.spec: $(TARGET)-libs.spec.in
|
||||
$(MKSPEC) $(TARGET)-libs.spec.in | $(SPECSTRIP) > $@
|
||||
CLEANFILES += @rpmprefix@$(TARGET)-libs.spec
|
||||
noinst_DATA += @rpmprefix@$(TARGET)-libs.spec
|
||||
|
||||
|
||||
BINUTILS_VERS = 2.18
|
||||
BINUTILS_PKGVERS = $(BINUTILS_VERS)
|
||||
BINUTILS_RPMREL = @VERSION@%{?dist}
|
||||
include ../binutils.am
|
||||
BINUTILS_OPTS +=
|
||||
|
||||
GCC_VERS = 4.2.3
|
||||
GCC_PKGVERS = $(GCC_VERS)
|
||||
GCC_RPMREL = @VERSION@%{?dist}
|
||||
include ../gcc.am
|
||||
GCC_OPTS += --languages=c,cxx,f95,objc
|
||||
@@ -1,5 +0,0 @@
|
||||
Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 0}
|
||||
%if "%{binutils_version}" == "2.18"
|
||||
Patch0: binutils-2.18-rtems4.9-20080211.diff
|
||||
%endif
|
||||
@@ -1,33 +0,0 @@
|
||||
Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
||||
@PATCH0@
|
||||
%{?_without_sources:NoSource: 0}
|
||||
|
||||
%if %build_cxx
|
||||
Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2
|
||||
@PATCH1@
|
||||
%{?_without_sources:NoSource: 1}
|
||||
|
||||
%endif
|
||||
%if %build_f95
|
||||
Source2: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
|
||||
@PATCH2@
|
||||
%{?_without_sources:NoSource: 2}
|
||||
|
||||
%endif
|
||||
%if %build_gcj
|
||||
Source3: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-java-%{gcc_pkgvers}.tar.bz2
|
||||
@PATCH3@
|
||||
%{?_without_sources:NoSource: 3}
|
||||
|
||||
%endif
|
||||
%if %build_gnat
|
||||
Source4: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-ada-%{gcc_pkgvers}.tar.bz2
|
||||
@PATCH4@
|
||||
%{?_without_sources:NoSource: 4}
|
||||
|
||||
%endif
|
||||
%if %build_objc
|
||||
Source5: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-objc-%{gcc_pkgvers}.tar.bz2
|
||||
@PATCH5@
|
||||
%{?_without_sources:NoSource: 5}
|
||||
%endif
|
||||
@@ -1,92 +0,0 @@
|
||||
%define freebsd_version @FREEBSD_VERS@
|
||||
%define freebsd_rpmvers %{expand:%(echo @FREEBSD_VERS@ | tr - _)}
|
||||
|
||||
%define _use_internal_dependency_generator 0
|
||||
%define __debug_install_post %{nil}
|
||||
|
||||
Name: @rpmprefix@@tool_target@
|
||||
Release: @FREEBSD_RPMREL@%{?dist}
|
||||
License: FreeBSD
|
||||
Group: Development/Tools
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
|
||||
Version: %freebsd_rpmvers
|
||||
Summary: @tool_target@ Libraries
|
||||
|
||||
Source0: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.aa
|
||||
Source1: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ab
|
||||
Source2: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ac
|
||||
Source3: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ad
|
||||
Source4: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ae
|
||||
Source5: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.af
|
||||
Source6: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ag
|
||||
Source7: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ah
|
||||
Source8: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ai
|
||||
Source9: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.aj
|
||||
Source10: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ak
|
||||
Source11: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.al
|
||||
Source12: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.am
|
||||
Source13: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.an
|
||||
Source14: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ao
|
||||
Source15: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ap
|
||||
Source16: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.aq
|
||||
Source17: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ar
|
||||
Source18: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.as
|
||||
Source19: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.at
|
||||
Source20: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.au
|
||||
Source21: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.av
|
||||
Source22: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.aw
|
||||
Source23: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ax
|
||||
Source24: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ay
|
||||
Source25: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.az
|
||||
Source26: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ba
|
||||
Source27: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bb
|
||||
Source28: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bc
|
||||
Source29: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bd
|
||||
|
||||
%description
|
||||
@tool_target@ libraries.
|
||||
|
||||
%prep
|
||||
%setup -q -c -T -n %{name}-%{version}
|
||||
|
||||
cat \
|
||||
%SOURCE0 %SOURCE1 %SOURCE2 %SOURCE3 %SOURCE4 \
|
||||
%SOURCE5 %SOURCE6 %SOURCE7 %SOURCE8 %SOURCE9 \
|
||||
%SOURCE10 %SOURCE11 %SOURCE12 %SOURCE13 %SOURCE14 \
|
||||
%SOURCE15 %SOURCE16 %SOURCE17 %SOURCE18 %SOURCE19 \
|
||||
%SOURCE20 %SOURCE21 %SOURCE22 %SOURCE23 %SOURCE24 \
|
||||
%SOURCE25 %SOURCE26 %SOURCE27 %SOURCE28 %SOURCE29 \
|
||||
| %{__tar} --unlink -pxzf - lib usr/lib usr/include
|
||||
|
||||
%build
|
||||
# Setup sys-root (Usable for gcc >= 3.4)
|
||||
mkdir -p @tool_target@/sys-root
|
||||
%{__tar} cf - lib usr/lib usr/include | ( cd @tool_target@/sys-root ; %{__tar} xf -)
|
||||
|
||||
pushd @tool_target@/sys-root/usr/lib > /dev/null
|
||||
# missing files
|
||||
rm -f lib*_p.*
|
||||
# not needed
|
||||
rm -rf aout compat
|
||||
|
||||
# Fix up symlinks
|
||||
find -type l -exec ls -l {} \; | \
|
||||
while read a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aA ; do \
|
||||
case $aA in
|
||||
/lib* ) # link
|
||||
rm $a8;
|
||||
b=`basename $aA`
|
||||
ln -s ../../lib/$b $a8
|
||||
;;
|
||||
esac
|
||||
done
|
||||
popd > /dev/null
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
||||
cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
%package sys-root
|
||||
Group: Development/Tools
|
||||
Summary: @tool_target@ target files for gcc >= 3.4
|
||||
|
||||
%description sys-root
|
||||
@tool_target@ target files for gcc >= 3.4
|
||||
|
||||
%files sys-root
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_prefix}/@tool_target@
|
||||
%{_prefix}/@tool_target@/sys-root
|
||||
@@ -1,2 +0,0 @@
|
||||
Makefile
|
||||
Makefile.in
|
||||
@@ -1,3 +0,0 @@
|
||||
# $Id$
|
||||
|
||||
SUBDIRS = i586
|
||||
@@ -1,30 +0,0 @@
|
||||
EXTRA_DIST += binutils-sources.add
|
||||
|
||||
BINUTILS_OPTS =
|
||||
|
||||
BINUTILS_SUBPACKAGES = $(top_srcdir)/common/common.add
|
||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/binutils.add
|
||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/prep.add
|
||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/build.add
|
||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/install.add
|
||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/rpm-install.add
|
||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/target-binutils.add
|
||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/base-binutils.add
|
||||
|
||||
$(TARGET)-binutils.spec.in: $(BINUTILS_SUBPACKAGES) Makefile.am $(srcdir)/binutils-sources.add
|
||||
cat $(BINUTILS_SUBPACKAGES) | sed \
|
||||
-e "/[@]SOURCES[@]/r $(srcdir)/binutils-sources.add" \
|
||||
-e "/[@]SOURCES[@]/d" \
|
||||
-e "s/[@]BINUTILS_VERS[@]/$(BINUTILS_VERS)/g" \
|
||||
-e "s/[@]BINUTILS_PKGVERS[@]/$(BINUTILS_PKGVERS)/g" \
|
||||
-e "s/[@]BINUTILS_RPMREL[@]/$(BINUTILS_RPMREL)/g" \
|
||||
| $(MKSPEC0) > $(TARGET)-binutils.spec.in
|
||||
CLEANFILES += $(TARGET)-binutils.spec.in
|
||||
|
||||
@rpmprefix@$(TARGET)-binutils.spec: $(TARGET)-binutils.spec.in
|
||||
$(MKSPEC) $(TARGET)-binutils.spec.in | $(SPECSTRIP) $(BINUTILS_OPTS) > $@
|
||||
CLEANFILES += @rpmprefix@$(TARGET)-binutils.spec
|
||||
noinst_DATA += @rpmprefix@$(TARGET)-binutils.spec
|
||||
|
||||
EXTRA_DIST += $(BINUTILS_SUBPACKAGES)
|
||||
@@ -1,40 +0,0 @@
|
||||
EXTRA_DIST += $(srcdir)/../gcc-prep.add
|
||||
EXTRA_DIST += $(srcdir)/gcc-sources.add
|
||||
|
||||
GCC_OPTS =
|
||||
|
||||
GCC_SUBPACKAGES = $(top_srcdir)/common/common.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/gccnewlib.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/prep.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/build.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/install.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-gcc.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/base-gcc.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-c++.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-gfortran.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/base-gfortran.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-objc.add
|
||||
|
||||
$(TARGET)-gcc.spec.in: $(GCC_SUBPACKAGES) Makefile.am $(srcdir)/gcc-sources.add $(srcdir)/../gcc-prep.add
|
||||
cat $(GCC_SUBPACKAGES) | sed \
|
||||
-e "/[@]SOURCES[@]/r $(srcdir)/gcc-sources.add" \
|
||||
-e "/[@]SOURCES[@]/d" \
|
||||
-e "/[@]PREP[@]/r $(srcdir)/../gcc-prep.add" \
|
||||
-e "/[@]PREP[@]/d" \
|
||||
-e "s/[@]GCC_VERS[@]/$(GCC_VERS)/g" \
|
||||
-e "s/[@]GCC_PKGVERS[@]/$(GCC_PKGVERS)/g" \
|
||||
-e "s/[@]GCC_RPMREL[@]/$(GCC_RPMREL)/g" \
|
||||
-e "/[@]tool_target[@]-newlib/d" \
|
||||
-e "/[@]tool_target[@]-w32api-sys-root/d" \
|
||||
-e "/--with-newlib/d" \
|
||||
| $(MKSPEC0) > $(TARGET)-gcc.spec.in
|
||||
CLEANFILES += $(TARGET)-gcc.spec.in
|
||||
|
||||
@rpmprefix@$(TARGET)-gcc.spec: $(TARGET)-gcc.spec.in
|
||||
$(MKSPEC) $(TARGET)-gcc.spec.in | $(SPECSTRIP) $(GCC_OPTS) > $@
|
||||
CLEANFILES += @rpmprefix@$(TARGET)-gcc.spec
|
||||
noinst_DATA += @rpmprefix@$(TARGET)-gcc.spec
|
||||
|
||||
EXTRA_DIST += $(GCC_SUBPACKAGES)
|
||||
@@ -1,4 +0,0 @@
|
||||
Makefile
|
||||
Makefile.in
|
||||
*.spec
|
||||
*.spec.in
|
||||
@@ -1,42 +0,0 @@
|
||||
# $Id$
|
||||
|
||||
TARGET = i586-pc-freebsd6.3
|
||||
|
||||
include $(top_srcdir)/mkspec.am
|
||||
|
||||
FREEBSD_VERS = 6.3
|
||||
FREEBSD_RPMREL = @VERSION@
|
||||
EXTRA_DIST += libs.add
|
||||
EXTRA_DIST += target-libs.add
|
||||
|
||||
LIBS_SUBPACKAGES = $(top_srcdir)/common/common.add
|
||||
LIBS_SUBPACKAGES += $(srcdir)/libs.add
|
||||
LIBS_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
||||
LIBS_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
||||
LIBS_SUBPACKAGES += $(srcdir)/target-libs.add
|
||||
|
||||
$(TARGET)-libs.spec.in: $(LIBS_SUBPACKAGES) Makefile.am
|
||||
cat $(LIBS_SUBPACKAGES) | sed \
|
||||
-e "s/[@]FREEBSD_VERS[@]/$(FREEBSD_VERS)/g" \
|
||||
-e "s/[@]FREEBSD_RPMREL[@]/$(FREEBSD_RPMREL)/g" \
|
||||
-e "s,%{gcc_rpmvers},%{freebsd_rpmvers},g" \
|
||||
> $(TARGET)-libs.spec.in
|
||||
CLEANFILES += $(TARGET)-libs.spec.in
|
||||
|
||||
@rpmprefix@$(TARGET)-libs.spec: $(TARGET)-libs.spec.in
|
||||
$(MKSPEC) $(TARGET)-libs.spec.in | $(SPECSTRIP) > $@
|
||||
CLEANFILES += @rpmprefix@$(TARGET)-libs.spec
|
||||
noinst_DATA += @rpmprefix@$(TARGET)-libs.spec
|
||||
|
||||
|
||||
BINUTILS_VERS = 2.18
|
||||
BINUTILS_PKGVERS = $(BINUTILS_VERS)
|
||||
BINUTILS_RPMREL = @VERSION@%{?dist}
|
||||
include ../binutils.am
|
||||
BINUTILS_OPTS +=
|
||||
|
||||
GCC_VERS = 4.2.3
|
||||
GCC_PKGVERS = $(GCC_VERS)
|
||||
GCC_RPMREL = @VERSION@%{?dist}
|
||||
include ../gcc.am
|
||||
GCC_OPTS += --languages=c,cxx,f95,objc
|
||||
@@ -1,5 +0,0 @@
|
||||
Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 0}
|
||||
%if "%{binutils_version}" == "2.18"
|
||||
Patch0: binutils-2.18-rtems4.9-20080211.diff
|
||||
%endif
|
||||
@@ -1,33 +0,0 @@
|
||||
Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
||||
@PATCH0@
|
||||
%{?_without_sources:NoSource: 0}
|
||||
|
||||
%if %build_cxx
|
||||
Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2
|
||||
@PATCH1@
|
||||
%{?_without_sources:NoSource: 1}
|
||||
|
||||
%endif
|
||||
%if %build_f95
|
||||
Source2: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
|
||||
@PATCH2@
|
||||
%{?_without_sources:NoSource: 2}
|
||||
|
||||
%endif
|
||||
%if %build_gcj
|
||||
Source3: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-java-%{gcc_pkgvers}.tar.bz2
|
||||
@PATCH3@
|
||||
%{?_without_sources:NoSource: 3}
|
||||
|
||||
%endif
|
||||
%if %build_gnat
|
||||
Source4: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-ada-%{gcc_pkgvers}.tar.bz2
|
||||
@PATCH4@
|
||||
%{?_without_sources:NoSource: 4}
|
||||
|
||||
%endif
|
||||
%if %build_objc
|
||||
Source5: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-objc-%{gcc_pkgvers}.tar.bz2
|
||||
@PATCH5@
|
||||
%{?_without_sources:NoSource: 5}
|
||||
%endif
|
||||
@@ -1,94 +0,0 @@
|
||||
%define freebsd_version @FREEBSD_VERS@
|
||||
%define freebsd_rpmvers %{expand:%(echo @FREEBSD_VERS@ | tr - _)}
|
||||
|
||||
%define _use_internal_dependency_generator 0
|
||||
%define __debug_install_post %{nil}
|
||||
|
||||
Name: @rpmprefix@@tool_target@
|
||||
Release: @FREEBSD_RPMREL@%{?dist}
|
||||
License: FreeBSD
|
||||
Group: Development/Tools
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
|
||||
Version: %freebsd_rpmvers
|
||||
Summary: @tool_target@ Libraries
|
||||
|
||||
Source0: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.aa
|
||||
Source1: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ab
|
||||
Source2: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ac
|
||||
Source3: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ad
|
||||
Source4: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ae
|
||||
Source5: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.af
|
||||
Source6: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ag
|
||||
Source7: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ah
|
||||
Source8: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ai
|
||||
Source9: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.aj
|
||||
Source10: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ak
|
||||
Source11: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.al
|
||||
Source12: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.am
|
||||
Source13: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.an
|
||||
Source14: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ao
|
||||
Source15: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ap
|
||||
Source16: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.aq
|
||||
Source17: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ar
|
||||
Source18: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.as
|
||||
Source19: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.at
|
||||
Source20: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.au
|
||||
Source21: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.av
|
||||
Source22: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.aw
|
||||
Source23: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ax
|
||||
Source24: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ay
|
||||
Source25: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.az
|
||||
Source26: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.ba
|
||||
Source27: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bb
|
||||
Source28: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bc
|
||||
Source29: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.bd
|
||||
Source30: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/@FREEBSD_VERS@-RELEASE/base/base.be
|
||||
|
||||
%description
|
||||
@tool_target@ libraries.
|
||||
|
||||
%prep
|
||||
%setup -q -c -T -n %{name}-%{version}
|
||||
|
||||
cat \
|
||||
%SOURCE0 %SOURCE1 %SOURCE2 %SOURCE3 %SOURCE4 \
|
||||
%SOURCE5 %SOURCE6 %SOURCE7 %SOURCE8 %SOURCE9 \
|
||||
%SOURCE10 %SOURCE11 %SOURCE12 %SOURCE13 %SOURCE14 \
|
||||
%SOURCE15 %SOURCE16 %SOURCE17 %SOURCE18 %SOURCE19 \
|
||||
%SOURCE20 %SOURCE21 %SOURCE22 %SOURCE23 %SOURCE24 \
|
||||
%SOURCE25 %SOURCE26 %SOURCE27 %SOURCE28 %SOURCE29 \
|
||||
%SOURCE30 \
|
||||
| %{__tar} --unlink -pxzf - ./lib ./usr/lib ./usr/include
|
||||
|
||||
%build
|
||||
# Setup sys-root (Usable for gcc >= 3.4)
|
||||
mkdir -p @tool_target@/sys-root
|
||||
%{__tar} cf - lib usr/lib usr/include | ( cd @tool_target@/sys-root ; %{__tar} xf -)
|
||||
|
||||
pushd @tool_target@/sys-root/usr/lib > /dev/null
|
||||
# missing files
|
||||
rm -f lib*_p.*
|
||||
# not needed
|
||||
rm -rf aout compat
|
||||
|
||||
# Fix up symlinks
|
||||
find -type l -exec ls -l {} \; | \
|
||||
while read a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aA ; do \
|
||||
case $aA in
|
||||
/lib* ) # link
|
||||
rm $a8;
|
||||
b=`basename $aA`
|
||||
ln -s ../../lib/$b $a8
|
||||
;;
|
||||
esac
|
||||
done
|
||||
popd > /dev/null
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
||||
cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
%package sys-root
|
||||
Group: Development/Tools
|
||||
Summary: @tool_target@ target files for gcc >= 3.4
|
||||
|
||||
%description sys-root
|
||||
@tool_target@ target files for gcc >= 3.4
|
||||
|
||||
%files sys-root
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_prefix}/@tool_target@
|
||||
%{_prefix}/@tool_target@/sys-root
|
||||
@@ -1,2 +0,0 @@
|
||||
Makefile
|
||||
Makefile.in
|
||||
@@ -1,14 +0,0 @@
|
||||
# $Id$
|
||||
|
||||
SUBDIRS =
|
||||
SUBDIRS += arm
|
||||
SUBDIRS += avr
|
||||
SUBDIRS += bfin
|
||||
SUBDIRS += h8300
|
||||
SUBDIRS += i386
|
||||
SUBDIRS += m68k
|
||||
SUBDIRS += mips
|
||||
SUBDIRS += mipstx39
|
||||
SUBDIRS += powerpc
|
||||
SUBDIRS += sh
|
||||
SUBDIRS += sparc
|
||||
@@ -1,3 +0,0 @@
|
||||
Makefile
|
||||
Makefile.in
|
||||
*.spec.in
|
||||
@@ -1,30 +0,0 @@
|
||||
# $Id$
|
||||
|
||||
TARGET = arm-rtems4.9
|
||||
|
||||
include $(top_srcdir)/mkspec.am
|
||||
|
||||
BINUTILS_VERS = 2.18
|
||||
BINUTILS_PKGVERS = $(BINUTILS_VERS)
|
||||
BINUTILS_RPMREL = 4%{?dist}
|
||||
include ../binutils.am
|
||||
BINUTILS_OPTS +=
|
||||
|
||||
GCC_VERS = 4.3.2
|
||||
GCC_PKGVERS = $(GCC_VERS)
|
||||
GCC_RPMREL = 15%{?dist}
|
||||
NEWLIB_VERS = 1.16.0
|
||||
include ../gcc.am
|
||||
GCC_OPTS += --languages=cxx
|
||||
|
||||
GDB_VERS = 6.8
|
||||
GDB_PKGVERS = $(GDB_VERS)
|
||||
GDB_RPMREL = 3%{?dist}
|
||||
include ../gdb.am
|
||||
GDB_OPTS +=
|
||||
|
||||
CPUKIT_VERS = 4.7.99.1
|
||||
CPUKIT_PKGVERS = $(CPUKIT_VERS)-20070510
|
||||
CPUKIT_RPMREL = 0
|
||||
include ../cpukit.am
|
||||
CPUKIT_OPTS +=
|
||||
@@ -1,5 +0,0 @@
|
||||
Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 0}
|
||||
%if "%{binutils_version}" == "2.18"
|
||||
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/binutils-2.18-rtems4.9-20080211.diff
|
||||
%endif
|
||||
@@ -1,2 +0,0 @@
|
||||
Source0: ftp://ftp.rtems.org/pub/rtems/SOURCES/rtems-%{cpukit_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 0}
|
||||
@@ -1,47 +0,0 @@
|
||||
%if "%{gcc_version}" == "4.3.2"
|
||||
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
||||
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gcc-core-4.3.2-rtems4.9-20080828.diff
|
||||
%endif
|
||||
%if "%{gcc_version}" == "4.3.1"
|
||||
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
||||
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gcc-core-4.3.1-rtems4.9-20080628.diff
|
||||
%endif
|
||||
%{?_without_sources:NoSource: 0}
|
||||
|
||||
%if %build_cxx
|
||||
%if "%{gcc_version}" == "4.3.2"
|
||||
Source1: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
|
||||
%endif
|
||||
%if "%{gcc_version}" == "4.3.1"
|
||||
Source1: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
|
||||
%endif
|
||||
%{?_without_sources:NoSource: 1}
|
||||
|
||||
%endif
|
||||
%if %build_f95
|
||||
Source2: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 2}
|
||||
|
||||
%endif
|
||||
%if %build_gcj
|
||||
Source3: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-java-%{gcc_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 3}
|
||||
|
||||
%endif
|
||||
%if %build_gnat
|
||||
Source4: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-ada-%{gcc_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 4}
|
||||
|
||||
%endif
|
||||
%if %build_objc
|
||||
Source5: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-objc-%{gcc_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 5}
|
||||
|
||||
%endif
|
||||
%if %build_newlib
|
||||
Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
|
||||
%if "%{newlib_version}" == "1.16.0"
|
||||
Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/newlib-1.16.0-rtems4.9-20080827.diff
|
||||
%endif
|
||||
%{?_without_sources:NoSource: 50}
|
||||
%endif
|
||||
@@ -1,5 +0,0 @@
|
||||
Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2
|
||||
%{?_without_sources:NoSource: 0}
|
||||
%if "%{gdb_version}" == "6.8"
|
||||
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gdb-6.8-rtems4.9-20080429.diff
|
||||
%endif
|
||||
@@ -1,255 +0,0 @@
|
||||
#
|
||||
# Please send bugfixes or comments to
|
||||
# http://www.rtems.org/bugzilla
|
||||
#
|
||||
|
||||
%define _prefix /opt/rtems-4.9
|
||||
%define _infodir %{_prefix}/info
|
||||
%define _mandir %{_prefix}/man
|
||||
|
||||
%ifos cygwin cygwin32 mingw mingw32
|
||||
%define _exeext .exe
|
||||
%else
|
||||
%define _exeext %{nil}
|
||||
%endif
|
||||
|
||||
%ifos cygwin cygwin32
|
||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
||||
%define _libdir %{_exec_prefix}/lib
|
||||
%define debug_package %{nil}
|
||||
%endif
|
||||
|
||||
%if "%{_build}" != "%{_host}"
|
||||
%define _host_rpmprefix rtems-4.9-%{_host}-
|
||||
%else
|
||||
%define _host_rpmprefix %{nil}
|
||||
%endif
|
||||
|
||||
%define binutils_pkgvers 2.18
|
||||
%define binutils_version 2.18
|
||||
%define binutils_rpmvers %{expand:%(echo "2.18" | tr - _ )}
|
||||
|
||||
Name: rtems-4.9-arm-rtems4.9-binutils
|
||||
Summary: Binutils for target arm-rtems4.9
|
||||
Group: Development/Tools
|
||||
Version: %{binutils_rpmvers}
|
||||
Release: 4%{?dist}
|
||||
License: GPL/LGPL
|
||||
URL: http://sources.redhat.com/binutils
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: %{_host_rpmprefix}gcc
|
||||
|
||||
%if "%{binutils_version}" >= "2.18"
|
||||
# Bug in bfd: Doesn't build without texinfo installed
|
||||
BuildRequires: texinfo >= 4.2
|
||||
%else
|
||||
# Required for building the infos
|
||||
BuildRequires: /sbin/install-info
|
||||
BuildRequires: texinfo >= 4.2
|
||||
%endif
|
||||
BuildRequires: flex
|
||||
BuildRequires: bison
|
||||
|
||||
Requires: rtems-4.9-binutils-common
|
||||
|
||||
Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 0}
|
||||
%if "%{binutils_version}" == "2.18"
|
||||
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/binutils-2.18-rtems4.9-20080211.diff
|
||||
%endif
|
||||
|
||||
%description
|
||||
Cross binutils for target arm-rtems4.9
|
||||
%prep
|
||||
%setup -q -c -T -n %{name}-%{version}
|
||||
|
||||
%setup -q -D -T -n %{name}-%{version} -a0
|
||||
cd binutils-%{binutils_pkgvers}
|
||||
%{?PATCH0:%patch0 -p1}
|
||||
cd ..
|
||||
|
||||
%build
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%if "arm-rtems4.9" == "i686-pc-cygwin"
|
||||
# The cygwin sources are leaking memory
|
||||
RPM_OPT_FLAGS="$(echo "$RPM_OPT_FLAGS"|sed -e 's; -Wp,-D_FORTIFY_SOURCE=2;;')"
|
||||
%endif
|
||||
mkdir -p build
|
||||
cd build
|
||||
%if "%{_build}" != "%{_host}"
|
||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
||||
%endif
|
||||
CFLAGS="$RPM_OPT_FLAGS" \
|
||||
../binutils-%{binutils_pkgvers}/configure \
|
||||
--build=%_build --host=%_host \
|
||||
--target=arm-rtems4.9 \
|
||||
--verbose --disable-nls \
|
||||
--without-included-gettext \
|
||||
--disable-win32-registry \
|
||||
--disable-werror \
|
||||
--prefix=%{_prefix} --bindir=%{_bindir} \
|
||||
--exec-prefix=%{_exec_prefix} \
|
||||
--includedir=%{_includedir} --libdir=%{_libdir} \
|
||||
--mandir=%{_mandir} --infodir=%{_infodir}
|
||||
|
||||
make %{?_smp_mflags} all
|
||||
make info
|
||||
cd ..
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
cd build
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
|
||||
make prefix=$RPM_BUILD_ROOT%{_prefix} \
|
||||
bindir=$RPM_BUILD_ROOT%{_bindir} \
|
||||
includedir=$RPM_BUILD_ROOT%{_includedir} \
|
||||
libdir=$RPM_BUILD_ROOT%{_libdir} \
|
||||
infodir=$RPM_BUILD_ROOT%{_infodir} \
|
||||
mandir=$RPM_BUILD_ROOT%{_mandir} \
|
||||
exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
|
||||
install-info
|
||||
|
||||
# Dropped in FSF-binutils-2.9.5, but Cygwin still ships it.
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}/configure.info*
|
||||
|
||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
touch $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
|
||||
# binutils does not install share/locale, however it uses it
|
||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/locale
|
||||
|
||||
# We don't ship host files
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
|
||||
|
||||
# manpages without corresponding tools
|
||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/arm-rtems4.9-dlltool%{_exeext}; then
|
||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/arm-rtems4.9-dlltool*
|
||||
fi
|
||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/arm-rtems4.9-nlmconv%{_exeext}; then
|
||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/arm-rtems4.9-nlmconv*
|
||||
fi
|
||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/arm-rtems4.9-windres%{_exeext}; then
|
||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/arm-rtems4.9-windres*
|
||||
fi
|
||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/arm-rtems4.9-windmc%{_exeext}; then
|
||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/arm-rtems4.9-windmc*
|
||||
fi
|
||||
|
||||
cd ..
|
||||
|
||||
# Extract %%__os_install_post into os_install_post~
|
||||
cat << \EOF > os_install_post~
|
||||
%__os_install_post
|
||||
EOF
|
||||
|
||||
# Generate customized brp-*scripts
|
||||
cat os_install_post~ | while read a x y; do
|
||||
case $a in
|
||||
# Prevent brp-strip* from trying to handle foreign binaries
|
||||
*/brp-strip*)
|
||||
b=$(basename $a)
|
||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
# Fix up brp-compress to handle %%_prefix != /usr
|
||||
*/brp-compress*)
|
||||
b=$(basename $a)
|
||||
sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
||||
-e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
|
||||
< os_install_post~ > os_install_post
|
||||
%define __os_install_post . ./os_install_post
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
# ==============================================================
|
||||
# arm-rtems4.9-binutils
|
||||
# ==============================================================
|
||||
# %package -n rtems-4.9-arm-rtems4.9-binutils
|
||||
# Summary: rtems binutils for arm-rtems4.9
|
||||
# Group: Development/Tools
|
||||
# %if %build_infos
|
||||
# Requires: rtems-4.9-binutils-common
|
||||
# %endif
|
||||
|
||||
%description -n rtems-4.9-arm-rtems4.9-binutils
|
||||
GNU binutils targetting arm-rtems4.9.
|
||||
|
||||
%files -n rtems-4.9-arm-rtems4.9-binutils
|
||||
%defattr(-,root,root)
|
||||
%dir %{_mandir}
|
||||
%dir %{_mandir}/man1
|
||||
%{_mandir}/man1/arm-rtems4.9-*.1*
|
||||
|
||||
%dir %{_bindir}
|
||||
%{_bindir}/arm-rtems4.9-*
|
||||
|
||||
%dir %{_exec_prefix}/arm-rtems4.9
|
||||
%dir %{_exec_prefix}/arm-rtems4.9/bin
|
||||
%{_exec_prefix}/arm-rtems4.9/bin/*
|
||||
|
||||
%dir %{_exec_prefix}/arm-rtems4.9/lib
|
||||
%{_exec_prefix}/arm-rtems4.9/lib/ldscripts
|
||||
# ==============================================================
|
||||
# rtems-4.9-binutils-common
|
||||
# ==============================================================
|
||||
%package -n rtems-4.9-binutils-common
|
||||
Summary: Base package for RTEMS binutils
|
||||
Group: Development/Tools
|
||||
Requires(post): /sbin/install-info
|
||||
Requires(preun): /sbin/install-info
|
||||
|
||||
%description -n rtems-4.9-binutils-common
|
||||
|
||||
RTEMS is an open source operating system for embedded systems.
|
||||
|
||||
This is the base for binutils regardless of target CPU.
|
||||
|
||||
%post -n rtems-4.9-binutils-common
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
|
||||
%if "%{binutils_version}" > "2.17"
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
|
||||
%endif
|
||||
|
||||
%preun -n rtems-4.9-binutils-common
|
||||
if [ $1 -eq 0 ]; then
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
|
||||
%if "%{binutils_version}" > "2.17"
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
|
||||
%endif
|
||||
fi
|
||||
|
||||
%files -n rtems-4.9-binutils-common
|
||||
%defattr(-,root,root)
|
||||
%dir %{_infodir}
|
||||
%ghost %{_infodir}/dir
|
||||
%{_infodir}/as.info*
|
||||
%{_infodir}/bfd.info*
|
||||
%{_infodir}/binutils.info*
|
||||
%{_infodir}/ld.info*
|
||||
%{_infodir}/standards.info*
|
||||
%if "%{binutils_version}" > "2.17"
|
||||
%{_infodir}/gprof.info*
|
||||
%endif
|
||||
|
||||
%dir %{_prefix}/share
|
||||
%dir %{_prefix}/share/locale
|
||||
|
||||
@@ -1,137 +0,0 @@
|
||||
#
|
||||
# Please send bugfixes or comments to
|
||||
# http://www.rtems.org/bugzilla
|
||||
#
|
||||
|
||||
%define _prefix /opt/rtems-4.9
|
||||
%define _infodir %{_prefix}/info
|
||||
%define _mandir %{_prefix}/man
|
||||
|
||||
%ifos cygwin cygwin32 mingw mingw32
|
||||
%define _exeext .exe
|
||||
%else
|
||||
%define _exeext %{nil}
|
||||
%endif
|
||||
|
||||
%ifos cygwin cygwin32
|
||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
||||
%define _libdir %{_exec_prefix}/lib
|
||||
%define debug_package %{nil}
|
||||
%endif
|
||||
|
||||
%if "%{_build}" != "%{_host}"
|
||||
%define _host_rpmprefix rtems-4.9-%{_host}-
|
||||
%else
|
||||
%define _host_rpmprefix %{nil}
|
||||
%endif
|
||||
|
||||
|
||||
%define cpukit_pkgvers 4.7.99.1-20070510
|
||||
%define cpukit_version 4.7.99.1
|
||||
%define cpukit_rpmvers %{expand:%(echo "4.7.99.1" | tr - _ )}
|
||||
|
||||
Name: rtems-4.9-arm-rtems4.9-cpukit
|
||||
Summary: arm-rtems4.9 cpukit
|
||||
|
||||
Group: Development/Tools
|
||||
Version: %{cpukit_rpmvers}
|
||||
Release: 0%{?dist}
|
||||
License: GPL
|
||||
URL: http://cpukit.gnu.org
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
|
||||
%define _use_internal_dependency_generator 0
|
||||
|
||||
BuildRequires: rtems-4.9-arm-rtems4.9-gcc
|
||||
|
||||
Source0: ftp://ftp.rtems.org/pub/rtems/SOURCES/rtems-%{cpukit_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 0}
|
||||
|
||||
%description
|
||||
RTEMS cpukit for arm-rtems4.9.
|
||||
%prep
|
||||
%setup -c -T -n %{name}-%{version}
|
||||
|
||||
%setup -q -T -D -n %{name}-%{version} -a0
|
||||
|
||||
|
||||
%build
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
mkdir -p build
|
||||
|
||||
cd build
|
||||
../rtems-%{cpukit_pkgvers}/configure \
|
||||
--prefix=%{_prefix} \
|
||||
--target=arm-rtems4.9 \
|
||||
--enable-multilib \
|
||||
--disable-rtemsbsp
|
||||
|
||||
make all RTEMS_BSP=
|
||||
cd ..
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
cd build
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
cd ..
|
||||
|
||||
rm -rf $RPM_BUILD_ROOT%{_prefix}/share/man
|
||||
rm -rf $RPM_BUILD_ROOT%{_prefix}/bin
|
||||
# Extract %%__os_install_post into os_install_post~
|
||||
cat << \EOF > os_install_post~
|
||||
%__os_install_post
|
||||
EOF
|
||||
|
||||
# Generate customized brp-*scripts
|
||||
cat os_install_post~ | while read a x y; do
|
||||
case $a in
|
||||
# Prevent brp-strip* from trying to handle foreign binaries
|
||||
*/brp-strip*)
|
||||
b=$(basename $a)
|
||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
# Fix up brp-compress to handle %%_prefix != /usr
|
||||
*/brp-compress*)
|
||||
b=$(basename $a)
|
||||
sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
||||
-e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
|
||||
< os_install_post~ > os_install_post
|
||||
%define __os_install_post . ./os_install_post
|
||||
|
||||
|
||||
cat << EOF > %{_builddir}/%{name}-%{cpukit_rpmvers}/find-provides
|
||||
#!/bin/sh
|
||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/arm-rtems4.9/(lib|include|sys-root)' \
|
||||
| grep -v '^${RPM_BUILD_ROOT}%{cpukitlib}/arm-rtems4.9/' | %__find_provides
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{cpukit_rpmvers}/find-provides
|
||||
%define __find_provides %{_builddir}/%{name}-%{cpukit_rpmvers}/find-provides
|
||||
|
||||
cat << EOF > %{_builddir}/%{name}-%{cpukit_rpmvers}/find-requires
|
||||
#!/bin/sh
|
||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/arm-rtems4.9/(lib|include|sys-root)' \
|
||||
| grep -v '^${RPM_BUILD_ROOT}%{cpukitlib}/arm-rtems4.9/' | %__find_requires
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{cpukit_rpmvers}/find-requires
|
||||
%define __find_requires %{_builddir}/%{name}-%{cpukit_rpmvers}/find-requires
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%description -n rtems-4.9-arm-rtems4.9-cpukit
|
||||
GNU cc compiler for arm-rtems4.9.
|
||||
|
||||
%files -n rtems-4.9-arm-rtems4.9-cpukit
|
||||
%dir %{_prefix}
|
||||
%{_prefix}/arm-rtems4.9
|
||||
# Violates the FHS
|
||||
%exclude %{_prefix}/make
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,233 +0,0 @@
|
||||
#
|
||||
# Please send bugfixes or comments to
|
||||
# http://www.rtems.org/bugzilla
|
||||
#
|
||||
|
||||
%define _prefix /opt/rtems-4.9
|
||||
%define _infodir %{_prefix}/info
|
||||
%define _mandir %{_prefix}/man
|
||||
|
||||
%ifos cygwin cygwin32 mingw mingw32
|
||||
%define _exeext .exe
|
||||
%else
|
||||
%define _exeext %{nil}
|
||||
%endif
|
||||
|
||||
%ifos cygwin cygwin32
|
||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
||||
%define _libdir %{_exec_prefix}/lib
|
||||
%define debug_package %{nil}
|
||||
%endif
|
||||
|
||||
%if "%{_build}" != "%{_host}"
|
||||
%define _host_rpmprefix rtems-4.9-%{_host}-
|
||||
%else
|
||||
%define _host_rpmprefix %{nil}
|
||||
%endif
|
||||
|
||||
%define gdb_version 6.8
|
||||
%define gdb_rpmvers %{expand:%(echo 6.8 | tr - _)}
|
||||
|
||||
Name: rtems-4.9-arm-rtems4.9-gdb
|
||||
Summary: Gdb for target arm-rtems4.9
|
||||
Group: Development/Tools
|
||||
Version: %{gdb_rpmvers}
|
||||
Release: 3%{?dist}
|
||||
License: GPL/LGPL
|
||||
URL: http://sources.redhat.com/gdb
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: %{_host_rpmprefix}gcc
|
||||
|
||||
%if "%{gdb_version}" >= "6.6"
|
||||
# suse
|
||||
%if "%{?suse}"
|
||||
%if "%{?suse}" >= "10.3"
|
||||
BuildRequires: libexpat-devel
|
||||
%else
|
||||
BuildRequires: expat
|
||||
%endif
|
||||
%else
|
||||
# fedora/redhat/cygwin
|
||||
BuildRequires: %{_host_rpmprefix}expat-devel
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{gdb_version}" < "6.7"
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}termcap-devel
|
||||
%endif
|
||||
%endif
|
||||
BuildRequires: %{_host_rpmprefix}readline-devel
|
||||
BuildRequires: %{_host_rpmprefix}ncurses-devel
|
||||
|
||||
# Required for building the infos
|
||||
BuildRequires: /sbin/install-info
|
||||
BuildRequires: texinfo >= 4.2
|
||||
|
||||
|
||||
Requires: rtems-4.9-gdb-common
|
||||
|
||||
Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2
|
||||
%{?_without_sources:NoSource: 0}
|
||||
%if "%{gdb_version}" == "6.8"
|
||||
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gdb-6.8-rtems4.9-20080429.diff
|
||||
%endif
|
||||
|
||||
%description
|
||||
GDB for target arm-rtems4.9
|
||||
%prep
|
||||
%setup -q -c -T -n %{name}-%{version}
|
||||
|
||||
%setup -q -D -T -n %{name}-%{version} -a0
|
||||
cd gdb-%{gdb_version}
|
||||
%{?PATCH0:%patch0 -p1}
|
||||
cd ..
|
||||
|
||||
%if "%{gdb_version}" >= "6.7"
|
||||
# Force using a system-provided libreadline
|
||||
rm -f gdb-%{gdb_version}/readline/configure
|
||||
%endif
|
||||
%build
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
mkdir -p build
|
||||
cd build
|
||||
%if "%{_build}" != "%{_host}"
|
||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
||||
%endif
|
||||
CFLAGS="$RPM_OPT_FLAGS" \
|
||||
../gdb-%{gdb_version}/configure \
|
||||
--build=%_build --host=%_host \
|
||||
--target=arm-rtems4.9 \
|
||||
--verbose --disable-nls \
|
||||
--without-included-gettext \
|
||||
--disable-win32-registry \
|
||||
--disable-werror \
|
||||
--enable-sim \
|
||||
%if "%{gdb_version}" >= "6.7"
|
||||
--with-system-readline \
|
||||
%endif
|
||||
%if "%{gdb_version}" >= "6.6"
|
||||
--with-expat \
|
||||
%endif
|
||||
--prefix=%{_prefix} --bindir=%{_bindir} \
|
||||
--includedir=%{_includedir} --libdir=%{_libdir} \
|
||||
--mandir=%{_mandir} --infodir=%{_infodir}
|
||||
|
||||
make %{?_smp_mflags} all
|
||||
make info
|
||||
cd ..
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
cd build
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
|
||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
touch $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
|
||||
# These come from other packages
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}/bfd*
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}/configure*
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}/standards*
|
||||
|
||||
# We don't ship host files
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
|
||||
|
||||
# host library, installed to a bogus directory
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libarm-rtems4.9-sim.a
|
||||
|
||||
cd ..
|
||||
|
||||
# Extract %%__os_install_post into os_install_post~
|
||||
cat << \EOF > os_install_post~
|
||||
%__os_install_post
|
||||
EOF
|
||||
|
||||
# Generate customized brp-*scripts
|
||||
cat os_install_post~ | while read a x y; do
|
||||
case $a in
|
||||
# Prevent brp-strip* from trying to handle foreign binaries
|
||||
*/brp-strip*)
|
||||
b=$(basename $a)
|
||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
# Fix up brp-compress to handle %%_prefix != /usr
|
||||
*/brp-compress*)
|
||||
b=$(basename $a)
|
||||
sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
||||
-e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
|
||||
< os_install_post~ > os_install_post
|
||||
%define __os_install_post . ./os_install_post
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
# ==============================================================
|
||||
# arm-rtems4.9-gdb
|
||||
# ==============================================================
|
||||
# %package -n rtems-4.9-arm-rtems4.9-gdb
|
||||
# Summary: rtems gdb for arm-rtems4.9
|
||||
# Group: Development/Tools
|
||||
# %if %build_infos
|
||||
# Requires: rtems-4.9-gdb-common
|
||||
# %endif
|
||||
|
||||
%description -n rtems-4.9-arm-rtems4.9-gdb
|
||||
GNU gdb targetting arm-rtems4.9.
|
||||
|
||||
%files -n rtems-4.9-arm-rtems4.9-gdb
|
||||
%defattr(-,root,root)
|
||||
%dir %{_mandir}
|
||||
%dir %{_mandir}/man1
|
||||
%{_mandir}/man1/arm-rtems4.9-*.1*
|
||||
|
||||
%dir %{_bindir}
|
||||
%{_bindir}/arm-rtems4.9-*
|
||||
|
||||
# ==============================================================
|
||||
# rtems-4.9-gdb-common
|
||||
# ==============================================================
|
||||
%package -n rtems-4.9-gdb-common
|
||||
Summary: Base package for RTEMS gdbs
|
||||
Group: Development/Tools
|
||||
Requires(post): /sbin/install-info
|
||||
Requires(preun): /sbin/install-info
|
||||
|
||||
%description -n rtems-4.9-gdb-common
|
||||
|
||||
GDB files shared by all targets.
|
||||
|
||||
%post -n rtems-4.9-gdb-common
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
|
||||
|
||||
%preun -n rtems-4.9-gdb-common
|
||||
if [ $1 -eq 0 ]; then
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
|
||||
fi
|
||||
|
||||
%files -n rtems-4.9-gdb-common
|
||||
%defattr(-,root,root)
|
||||
%dir %{_infodir}
|
||||
%ghost %{_infodir}/dir
|
||||
%{_infodir}/gdb.info*
|
||||
|
||||
%{_infodir}/gdbint.info*
|
||||
%{_infodir}/stabs.info*
|
||||
%{_infodir}/annotate.info*
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
Makefile
|
||||
Makefile.in
|
||||
*.spec.in
|
||||
@@ -1,30 +0,0 @@
|
||||
# $Id$
|
||||
|
||||
TARGET = avr-rtems4.9
|
||||
|
||||
include $(top_srcdir)/mkspec.am
|
||||
|
||||
BINUTILS_VERS = 2.18
|
||||
BINUTILS_PKGVERS = $(BINUTILS_VERS)
|
||||
BINUTILS_RPMREL = 4%{?dist}
|
||||
include ../binutils.am
|
||||
BINUTILS_OPTS +=
|
||||
|
||||
GCC_VERS = 4.3.2
|
||||
GCC_PKGVERS = $(GCC_VERS)
|
||||
GCC_RPMREL = 15%{?dist}
|
||||
NEWLIB_VERS = 1.16.0
|
||||
include ../gcc.am
|
||||
GCC_OPTS +=
|
||||
|
||||
GDB_VERS = 6.8
|
||||
GDB_PKGVERS = $(GDB_VERS)
|
||||
GDB_RPMREL = 3%{?dist}
|
||||
include ../gdb.am
|
||||
GDB_OPTS +=
|
||||
|
||||
CPUKIT_VERS = 4.7.99.1
|
||||
CPUKIT_PKGVERS = $(CPUKIT_VERS)-20070510
|
||||
CPUKIT_RPMREL = 0
|
||||
include ../cpukit.am
|
||||
CPUKIT_OPTS +=
|
||||
@@ -1,5 +0,0 @@
|
||||
Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 0}
|
||||
%if "%{binutils_version}" == "2.18"
|
||||
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/binutils-2.18-rtems4.9-20080211.diff
|
||||
%endif
|
||||
@@ -1,2 +0,0 @@
|
||||
Source0: ftp://ftp.rtems.org/pub/rtems/SOURCES/rtems-%{cpukit_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 0}
|
||||
@@ -1,47 +0,0 @@
|
||||
%if "%{gcc_version}" == "4.3.2"
|
||||
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
||||
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gcc-core-4.3.2-rtems4.9-20080828.diff
|
||||
%endif
|
||||
%if "%{gcc_version}" == "4.3.1"
|
||||
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
||||
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gcc-core-4.3.1-rtems4.9-20080628.diff
|
||||
%endif
|
||||
%{?_without_sources:NoSource: 0}
|
||||
|
||||
%if %build_cxx
|
||||
%if "%{gcc_version}" == "4.3.2"
|
||||
Source1: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
|
||||
%endif
|
||||
%if "%{gcc_version}" == "4.3.1"
|
||||
Source1: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
|
||||
%endif
|
||||
%{?_without_sources:NoSource: 1}
|
||||
|
||||
%endif
|
||||
%if %build_f95
|
||||
Source2: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 2}
|
||||
|
||||
%endif
|
||||
%if %build_gcj
|
||||
Source3: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-java-%{gcc_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 3}
|
||||
|
||||
%endif
|
||||
%if %build_gnat
|
||||
Source4: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-ada-%{gcc_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 4}
|
||||
|
||||
%endif
|
||||
%if %build_objc
|
||||
Source5: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-objc-%{gcc_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 5}
|
||||
|
||||
%endif
|
||||
%if %build_newlib
|
||||
Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
|
||||
%if "%{newlib_version}" == "1.16.0"
|
||||
Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/newlib-1.16.0-rtems4.9-20080827.diff
|
||||
%endif
|
||||
%{?_without_sources:NoSource: 50}
|
||||
%endif
|
||||
@@ -1,5 +0,0 @@
|
||||
Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2
|
||||
%{?_without_sources:NoSource: 0}
|
||||
%if "%{gdb_version}" == "6.8"
|
||||
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gdb-6.8-rtems4.9-20080429.diff
|
||||
%endif
|
||||
@@ -1,255 +0,0 @@
|
||||
#
|
||||
# Please send bugfixes or comments to
|
||||
# http://www.rtems.org/bugzilla
|
||||
#
|
||||
|
||||
%define _prefix /opt/rtems-4.9
|
||||
%define _infodir %{_prefix}/info
|
||||
%define _mandir %{_prefix}/man
|
||||
|
||||
%ifos cygwin cygwin32 mingw mingw32
|
||||
%define _exeext .exe
|
||||
%else
|
||||
%define _exeext %{nil}
|
||||
%endif
|
||||
|
||||
%ifos cygwin cygwin32
|
||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
||||
%define _libdir %{_exec_prefix}/lib
|
||||
%define debug_package %{nil}
|
||||
%endif
|
||||
|
||||
%if "%{_build}" != "%{_host}"
|
||||
%define _host_rpmprefix rtems-4.9-%{_host}-
|
||||
%else
|
||||
%define _host_rpmprefix %{nil}
|
||||
%endif
|
||||
|
||||
%define binutils_pkgvers 2.18
|
||||
%define binutils_version 2.18
|
||||
%define binutils_rpmvers %{expand:%(echo "2.18" | tr - _ )}
|
||||
|
||||
Name: rtems-4.9-avr-rtems4.9-binutils
|
||||
Summary: Binutils for target avr-rtems4.9
|
||||
Group: Development/Tools
|
||||
Version: %{binutils_rpmvers}
|
||||
Release: 4%{?dist}
|
||||
License: GPL/LGPL
|
||||
URL: http://sources.redhat.com/binutils
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: %{_host_rpmprefix}gcc
|
||||
|
||||
%if "%{binutils_version}" >= "2.18"
|
||||
# Bug in bfd: Doesn't build without texinfo installed
|
||||
BuildRequires: texinfo >= 4.2
|
||||
%else
|
||||
# Required for building the infos
|
||||
BuildRequires: /sbin/install-info
|
||||
BuildRequires: texinfo >= 4.2
|
||||
%endif
|
||||
BuildRequires: flex
|
||||
BuildRequires: bison
|
||||
|
||||
Requires: rtems-4.9-binutils-common
|
||||
|
||||
Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 0}
|
||||
%if "%{binutils_version}" == "2.18"
|
||||
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/binutils-2.18-rtems4.9-20080211.diff
|
||||
%endif
|
||||
|
||||
%description
|
||||
Cross binutils for target avr-rtems4.9
|
||||
%prep
|
||||
%setup -q -c -T -n %{name}-%{version}
|
||||
|
||||
%setup -q -D -T -n %{name}-%{version} -a0
|
||||
cd binutils-%{binutils_pkgvers}
|
||||
%{?PATCH0:%patch0 -p1}
|
||||
cd ..
|
||||
|
||||
%build
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%if "avr-rtems4.9" == "i686-pc-cygwin"
|
||||
# The cygwin sources are leaking memory
|
||||
RPM_OPT_FLAGS="$(echo "$RPM_OPT_FLAGS"|sed -e 's; -Wp,-D_FORTIFY_SOURCE=2;;')"
|
||||
%endif
|
||||
mkdir -p build
|
||||
cd build
|
||||
%if "%{_build}" != "%{_host}"
|
||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
||||
%endif
|
||||
CFLAGS="$RPM_OPT_FLAGS" \
|
||||
../binutils-%{binutils_pkgvers}/configure \
|
||||
--build=%_build --host=%_host \
|
||||
--target=avr-rtems4.9 \
|
||||
--verbose --disable-nls \
|
||||
--without-included-gettext \
|
||||
--disable-win32-registry \
|
||||
--disable-werror \
|
||||
--prefix=%{_prefix} --bindir=%{_bindir} \
|
||||
--exec-prefix=%{_exec_prefix} \
|
||||
--includedir=%{_includedir} --libdir=%{_libdir} \
|
||||
--mandir=%{_mandir} --infodir=%{_infodir}
|
||||
|
||||
make %{?_smp_mflags} all
|
||||
make info
|
||||
cd ..
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
cd build
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
|
||||
make prefix=$RPM_BUILD_ROOT%{_prefix} \
|
||||
bindir=$RPM_BUILD_ROOT%{_bindir} \
|
||||
includedir=$RPM_BUILD_ROOT%{_includedir} \
|
||||
libdir=$RPM_BUILD_ROOT%{_libdir} \
|
||||
infodir=$RPM_BUILD_ROOT%{_infodir} \
|
||||
mandir=$RPM_BUILD_ROOT%{_mandir} \
|
||||
exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
|
||||
install-info
|
||||
|
||||
# Dropped in FSF-binutils-2.9.5, but Cygwin still ships it.
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}/configure.info*
|
||||
|
||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
touch $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
|
||||
# binutils does not install share/locale, however it uses it
|
||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/locale
|
||||
|
||||
# We don't ship host files
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
|
||||
|
||||
# manpages without corresponding tools
|
||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/avr-rtems4.9-dlltool%{_exeext}; then
|
||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/avr-rtems4.9-dlltool*
|
||||
fi
|
||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/avr-rtems4.9-nlmconv%{_exeext}; then
|
||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/avr-rtems4.9-nlmconv*
|
||||
fi
|
||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/avr-rtems4.9-windres%{_exeext}; then
|
||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/avr-rtems4.9-windres*
|
||||
fi
|
||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/avr-rtems4.9-windmc%{_exeext}; then
|
||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/avr-rtems4.9-windmc*
|
||||
fi
|
||||
|
||||
cd ..
|
||||
|
||||
# Extract %%__os_install_post into os_install_post~
|
||||
cat << \EOF > os_install_post~
|
||||
%__os_install_post
|
||||
EOF
|
||||
|
||||
# Generate customized brp-*scripts
|
||||
cat os_install_post~ | while read a x y; do
|
||||
case $a in
|
||||
# Prevent brp-strip* from trying to handle foreign binaries
|
||||
*/brp-strip*)
|
||||
b=$(basename $a)
|
||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
# Fix up brp-compress to handle %%_prefix != /usr
|
||||
*/brp-compress*)
|
||||
b=$(basename $a)
|
||||
sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
||||
-e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
|
||||
< os_install_post~ > os_install_post
|
||||
%define __os_install_post . ./os_install_post
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
# ==============================================================
|
||||
# avr-rtems4.9-binutils
|
||||
# ==============================================================
|
||||
# %package -n rtems-4.9-avr-rtems4.9-binutils
|
||||
# Summary: rtems binutils for avr-rtems4.9
|
||||
# Group: Development/Tools
|
||||
# %if %build_infos
|
||||
# Requires: rtems-4.9-binutils-common
|
||||
# %endif
|
||||
|
||||
%description -n rtems-4.9-avr-rtems4.9-binutils
|
||||
GNU binutils targetting avr-rtems4.9.
|
||||
|
||||
%files -n rtems-4.9-avr-rtems4.9-binutils
|
||||
%defattr(-,root,root)
|
||||
%dir %{_mandir}
|
||||
%dir %{_mandir}/man1
|
||||
%{_mandir}/man1/avr-rtems4.9-*.1*
|
||||
|
||||
%dir %{_bindir}
|
||||
%{_bindir}/avr-rtems4.9-*
|
||||
|
||||
%dir %{_exec_prefix}/avr-rtems4.9
|
||||
%dir %{_exec_prefix}/avr-rtems4.9/bin
|
||||
%{_exec_prefix}/avr-rtems4.9/bin/*
|
||||
|
||||
%dir %{_exec_prefix}/avr-rtems4.9/lib
|
||||
%{_exec_prefix}/avr-rtems4.9/lib/ldscripts
|
||||
# ==============================================================
|
||||
# rtems-4.9-binutils-common
|
||||
# ==============================================================
|
||||
%package -n rtems-4.9-binutils-common
|
||||
Summary: Base package for RTEMS binutils
|
||||
Group: Development/Tools
|
||||
Requires(post): /sbin/install-info
|
||||
Requires(preun): /sbin/install-info
|
||||
|
||||
%description -n rtems-4.9-binutils-common
|
||||
|
||||
RTEMS is an open source operating system for embedded systems.
|
||||
|
||||
This is the base for binutils regardless of target CPU.
|
||||
|
||||
%post -n rtems-4.9-binutils-common
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
|
||||
%if "%{binutils_version}" > "2.17"
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
|
||||
%endif
|
||||
|
||||
%preun -n rtems-4.9-binutils-common
|
||||
if [ $1 -eq 0 ]; then
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
|
||||
%if "%{binutils_version}" > "2.17"
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
|
||||
%endif
|
||||
fi
|
||||
|
||||
%files -n rtems-4.9-binutils-common
|
||||
%defattr(-,root,root)
|
||||
%dir %{_infodir}
|
||||
%ghost %{_infodir}/dir
|
||||
%{_infodir}/as.info*
|
||||
%{_infodir}/bfd.info*
|
||||
%{_infodir}/binutils.info*
|
||||
%{_infodir}/ld.info*
|
||||
%{_infodir}/standards.info*
|
||||
%if "%{binutils_version}" > "2.17"
|
||||
%{_infodir}/gprof.info*
|
||||
%endif
|
||||
|
||||
%dir %{_prefix}/share
|
||||
%dir %{_prefix}/share/locale
|
||||
|
||||
@@ -1,137 +0,0 @@
|
||||
#
|
||||
# Please send bugfixes or comments to
|
||||
# http://www.rtems.org/bugzilla
|
||||
#
|
||||
|
||||
%define _prefix /opt/rtems-4.9
|
||||
%define _infodir %{_prefix}/info
|
||||
%define _mandir %{_prefix}/man
|
||||
|
||||
%ifos cygwin cygwin32 mingw mingw32
|
||||
%define _exeext .exe
|
||||
%else
|
||||
%define _exeext %{nil}
|
||||
%endif
|
||||
|
||||
%ifos cygwin cygwin32
|
||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
||||
%define _libdir %{_exec_prefix}/lib
|
||||
%define debug_package %{nil}
|
||||
%endif
|
||||
|
||||
%if "%{_build}" != "%{_host}"
|
||||
%define _host_rpmprefix rtems-4.9-%{_host}-
|
||||
%else
|
||||
%define _host_rpmprefix %{nil}
|
||||
%endif
|
||||
|
||||
|
||||
%define cpukit_pkgvers 4.7.99.1-20070510
|
||||
%define cpukit_version 4.7.99.1
|
||||
%define cpukit_rpmvers %{expand:%(echo "4.7.99.1" | tr - _ )}
|
||||
|
||||
Name: rtems-4.9-avr-rtems4.9-cpukit
|
||||
Summary: avr-rtems4.9 cpukit
|
||||
|
||||
Group: Development/Tools
|
||||
Version: %{cpukit_rpmvers}
|
||||
Release: 0%{?dist}
|
||||
License: GPL
|
||||
URL: http://cpukit.gnu.org
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
|
||||
%define _use_internal_dependency_generator 0
|
||||
|
||||
BuildRequires: rtems-4.9-avr-rtems4.9-gcc
|
||||
|
||||
Source0: ftp://ftp.rtems.org/pub/rtems/SOURCES/rtems-%{cpukit_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 0}
|
||||
|
||||
%description
|
||||
RTEMS cpukit for avr-rtems4.9.
|
||||
%prep
|
||||
%setup -c -T -n %{name}-%{version}
|
||||
|
||||
%setup -q -T -D -n %{name}-%{version} -a0
|
||||
|
||||
|
||||
%build
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
mkdir -p build
|
||||
|
||||
cd build
|
||||
../rtems-%{cpukit_pkgvers}/configure \
|
||||
--prefix=%{_prefix} \
|
||||
--target=avr-rtems4.9 \
|
||||
--enable-multilib \
|
||||
--disable-rtemsbsp
|
||||
|
||||
make all RTEMS_BSP=
|
||||
cd ..
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
cd build
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
cd ..
|
||||
|
||||
rm -rf $RPM_BUILD_ROOT%{_prefix}/share/man
|
||||
rm -rf $RPM_BUILD_ROOT%{_prefix}/bin
|
||||
# Extract %%__os_install_post into os_install_post~
|
||||
cat << \EOF > os_install_post~
|
||||
%__os_install_post
|
||||
EOF
|
||||
|
||||
# Generate customized brp-*scripts
|
||||
cat os_install_post~ | while read a x y; do
|
||||
case $a in
|
||||
# Prevent brp-strip* from trying to handle foreign binaries
|
||||
*/brp-strip*)
|
||||
b=$(basename $a)
|
||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
# Fix up brp-compress to handle %%_prefix != /usr
|
||||
*/brp-compress*)
|
||||
b=$(basename $a)
|
||||
sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
||||
-e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
|
||||
< os_install_post~ > os_install_post
|
||||
%define __os_install_post . ./os_install_post
|
||||
|
||||
|
||||
cat << EOF > %{_builddir}/%{name}-%{cpukit_rpmvers}/find-provides
|
||||
#!/bin/sh
|
||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/avr-rtems4.9/(lib|include|sys-root)' \
|
||||
| grep -v '^${RPM_BUILD_ROOT}%{cpukitlib}/avr-rtems4.9/' | %__find_provides
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{cpukit_rpmvers}/find-provides
|
||||
%define __find_provides %{_builddir}/%{name}-%{cpukit_rpmvers}/find-provides
|
||||
|
||||
cat << EOF > %{_builddir}/%{name}-%{cpukit_rpmvers}/find-requires
|
||||
#!/bin/sh
|
||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/avr-rtems4.9/(lib|include|sys-root)' \
|
||||
| grep -v '^${RPM_BUILD_ROOT}%{cpukitlib}/avr-rtems4.9/' | %__find_requires
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{cpukit_rpmvers}/find-requires
|
||||
%define __find_requires %{_builddir}/%{name}-%{cpukit_rpmvers}/find-requires
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%description -n rtems-4.9-avr-rtems4.9-cpukit
|
||||
GNU cc compiler for avr-rtems4.9.
|
||||
|
||||
%files -n rtems-4.9-avr-rtems4.9-cpukit
|
||||
%dir %{_prefix}
|
||||
%{_prefix}/avr-rtems4.9
|
||||
# Violates the FHS
|
||||
%exclude %{_prefix}/make
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,233 +0,0 @@
|
||||
#
|
||||
# Please send bugfixes or comments to
|
||||
# http://www.rtems.org/bugzilla
|
||||
#
|
||||
|
||||
%define _prefix /opt/rtems-4.9
|
||||
%define _infodir %{_prefix}/info
|
||||
%define _mandir %{_prefix}/man
|
||||
|
||||
%ifos cygwin cygwin32 mingw mingw32
|
||||
%define _exeext .exe
|
||||
%else
|
||||
%define _exeext %{nil}
|
||||
%endif
|
||||
|
||||
%ifos cygwin cygwin32
|
||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
||||
%define _libdir %{_exec_prefix}/lib
|
||||
%define debug_package %{nil}
|
||||
%endif
|
||||
|
||||
%if "%{_build}" != "%{_host}"
|
||||
%define _host_rpmprefix rtems-4.9-%{_host}-
|
||||
%else
|
||||
%define _host_rpmprefix %{nil}
|
||||
%endif
|
||||
|
||||
%define gdb_version 6.8
|
||||
%define gdb_rpmvers %{expand:%(echo 6.8 | tr - _)}
|
||||
|
||||
Name: rtems-4.9-avr-rtems4.9-gdb
|
||||
Summary: Gdb for target avr-rtems4.9
|
||||
Group: Development/Tools
|
||||
Version: %{gdb_rpmvers}
|
||||
Release: 3%{?dist}
|
||||
License: GPL/LGPL
|
||||
URL: http://sources.redhat.com/gdb
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: %{_host_rpmprefix}gcc
|
||||
|
||||
%if "%{gdb_version}" >= "6.6"
|
||||
# suse
|
||||
%if "%{?suse}"
|
||||
%if "%{?suse}" >= "10.3"
|
||||
BuildRequires: libexpat-devel
|
||||
%else
|
||||
BuildRequires: expat
|
||||
%endif
|
||||
%else
|
||||
# fedora/redhat/cygwin
|
||||
BuildRequires: %{_host_rpmprefix}expat-devel
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{gdb_version}" < "6.7"
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}termcap-devel
|
||||
%endif
|
||||
%endif
|
||||
BuildRequires: %{_host_rpmprefix}readline-devel
|
||||
BuildRequires: %{_host_rpmprefix}ncurses-devel
|
||||
|
||||
# Required for building the infos
|
||||
BuildRequires: /sbin/install-info
|
||||
BuildRequires: texinfo >= 4.2
|
||||
|
||||
|
||||
Requires: rtems-4.9-gdb-common
|
||||
|
||||
Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2
|
||||
%{?_without_sources:NoSource: 0}
|
||||
%if "%{gdb_version}" == "6.8"
|
||||
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gdb-6.8-rtems4.9-20080429.diff
|
||||
%endif
|
||||
|
||||
%description
|
||||
GDB for target avr-rtems4.9
|
||||
%prep
|
||||
%setup -q -c -T -n %{name}-%{version}
|
||||
|
||||
%setup -q -D -T -n %{name}-%{version} -a0
|
||||
cd gdb-%{gdb_version}
|
||||
%{?PATCH0:%patch0 -p1}
|
||||
cd ..
|
||||
|
||||
%if "%{gdb_version}" >= "6.7"
|
||||
# Force using a system-provided libreadline
|
||||
rm -f gdb-%{gdb_version}/readline/configure
|
||||
%endif
|
||||
%build
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
mkdir -p build
|
||||
cd build
|
||||
%if "%{_build}" != "%{_host}"
|
||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
||||
%endif
|
||||
CFLAGS="$RPM_OPT_FLAGS" \
|
||||
../gdb-%{gdb_version}/configure \
|
||||
--build=%_build --host=%_host \
|
||||
--target=avr-rtems4.9 \
|
||||
--verbose --disable-nls \
|
||||
--without-included-gettext \
|
||||
--disable-win32-registry \
|
||||
--disable-werror \
|
||||
--enable-sim \
|
||||
%if "%{gdb_version}" >= "6.7"
|
||||
--with-system-readline \
|
||||
%endif
|
||||
%if "%{gdb_version}" >= "6.6"
|
||||
--with-expat \
|
||||
%endif
|
||||
--prefix=%{_prefix} --bindir=%{_bindir} \
|
||||
--includedir=%{_includedir} --libdir=%{_libdir} \
|
||||
--mandir=%{_mandir} --infodir=%{_infodir}
|
||||
|
||||
make %{?_smp_mflags} all
|
||||
make info
|
||||
cd ..
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
cd build
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
|
||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
touch $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
|
||||
# These come from other packages
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}/bfd*
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}/configure*
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}/standards*
|
||||
|
||||
# We don't ship host files
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
|
||||
|
||||
# host library, installed to a bogus directory
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libavr-rtems4.9-sim.a
|
||||
|
||||
cd ..
|
||||
|
||||
# Extract %%__os_install_post into os_install_post~
|
||||
cat << \EOF > os_install_post~
|
||||
%__os_install_post
|
||||
EOF
|
||||
|
||||
# Generate customized brp-*scripts
|
||||
cat os_install_post~ | while read a x y; do
|
||||
case $a in
|
||||
# Prevent brp-strip* from trying to handle foreign binaries
|
||||
*/brp-strip*)
|
||||
b=$(basename $a)
|
||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
# Fix up brp-compress to handle %%_prefix != /usr
|
||||
*/brp-compress*)
|
||||
b=$(basename $a)
|
||||
sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
||||
-e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
|
||||
< os_install_post~ > os_install_post
|
||||
%define __os_install_post . ./os_install_post
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
# ==============================================================
|
||||
# avr-rtems4.9-gdb
|
||||
# ==============================================================
|
||||
# %package -n rtems-4.9-avr-rtems4.9-gdb
|
||||
# Summary: rtems gdb for avr-rtems4.9
|
||||
# Group: Development/Tools
|
||||
# %if %build_infos
|
||||
# Requires: rtems-4.9-gdb-common
|
||||
# %endif
|
||||
|
||||
%description -n rtems-4.9-avr-rtems4.9-gdb
|
||||
GNU gdb targetting avr-rtems4.9.
|
||||
|
||||
%files -n rtems-4.9-avr-rtems4.9-gdb
|
||||
%defattr(-,root,root)
|
||||
%dir %{_mandir}
|
||||
%dir %{_mandir}/man1
|
||||
%{_mandir}/man1/avr-rtems4.9-*.1*
|
||||
|
||||
%dir %{_bindir}
|
||||
%{_bindir}/avr-rtems4.9-*
|
||||
|
||||
# ==============================================================
|
||||
# rtems-4.9-gdb-common
|
||||
# ==============================================================
|
||||
%package -n rtems-4.9-gdb-common
|
||||
Summary: Base package for RTEMS gdbs
|
||||
Group: Development/Tools
|
||||
Requires(post): /sbin/install-info
|
||||
Requires(preun): /sbin/install-info
|
||||
|
||||
%description -n rtems-4.9-gdb-common
|
||||
|
||||
GDB files shared by all targets.
|
||||
|
||||
%post -n rtems-4.9-gdb-common
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
|
||||
|
||||
%preun -n rtems-4.9-gdb-common
|
||||
if [ $1 -eq 0 ]; then
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
|
||||
fi
|
||||
|
||||
%files -n rtems-4.9-gdb-common
|
||||
%defattr(-,root,root)
|
||||
%dir %{_infodir}
|
||||
%ghost %{_infodir}/dir
|
||||
%{_infodir}/gdb.info*
|
||||
|
||||
%{_infodir}/gdbint.info*
|
||||
%{_infodir}/stabs.info*
|
||||
%{_infodir}/annotate.info*
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
Makefile
|
||||
Makefile.in
|
||||
*.spec.in
|
||||
@@ -1,31 +0,0 @@
|
||||
# $Id$
|
||||
|
||||
TARGET = bfin-rtems4.9
|
||||
|
||||
include $(top_srcdir)/mkspec.am
|
||||
|
||||
BINUTILS_VERS = 2.18
|
||||
BINUTILS_PKGVERS = $(BINUTILS_VERS)
|
||||
BINUTILS_RPMREL = 4%{?dist}
|
||||
include ../binutils.am
|
||||
BINUTILS_OPTS +=
|
||||
|
||||
GCC_VERS = 4.3.2
|
||||
GCC_PKGVERS = $(GCC_VERS)
|
||||
GCC_RPMREL = 15%{?dist}
|
||||
NEWLIB_VERS = 1.16.0
|
||||
include ../gcc.am
|
||||
GCC_OPTS +=
|
||||
|
||||
GDB_VERS = 6.5
|
||||
GDB_PKGVERS = $(GDB_VERS)
|
||||
GDB_RPMREL = 4%{?dist}
|
||||
include ../gdb.am
|
||||
GDB_OPTS +=
|
||||
|
||||
### bfin's GCC is too broken to be usable
|
||||
## CPUKIT_VERS = 4.7.99.1
|
||||
## CPUKIT_PKGVERS = $(CPUKIT_VERS)-20070510
|
||||
## CPUKIT_RPMREL = 0
|
||||
## include ../cpukit.am
|
||||
## CPUKIT_OPTS +=
|
||||
@@ -1,5 +0,0 @@
|
||||
Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 0}
|
||||
%if "%{binutils_version}" == "2.18"
|
||||
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/binutils-2.18-rtems4.9-20080211.diff
|
||||
%endif
|
||||
@@ -1,2 +0,0 @@
|
||||
Source0: ftp://ftp.rtems.org/pub/rtems/SOURCES/rtems-%{cpukit_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 0}
|
||||
@@ -1,47 +0,0 @@
|
||||
%if "%{gcc_version}" == "4.3.2"
|
||||
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
||||
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gcc-core-4.3.2-rtems4.9-20080828.diff
|
||||
%endif
|
||||
%if "%{gcc_version}" == "4.3.1"
|
||||
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
||||
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gcc-core-4.3.1-rtems4.9-20080628.diff
|
||||
%endif
|
||||
%{?_without_sources:NoSource: 0}
|
||||
|
||||
%if %build_cxx
|
||||
%if "%{gcc_version}" == "4.3.2"
|
||||
Source1: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
|
||||
%endif
|
||||
%if "%{gcc_version}" == "4.3.1"
|
||||
Source1: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
|
||||
%endif
|
||||
%{?_without_sources:NoSource: 1}
|
||||
|
||||
%endif
|
||||
%if %build_f95
|
||||
Source2: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 2}
|
||||
|
||||
%endif
|
||||
%if %build_gcj
|
||||
Source3: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-java-%{gcc_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 3}
|
||||
|
||||
%endif
|
||||
%if %build_gnat
|
||||
Source4: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-ada-%{gcc_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 4}
|
||||
|
||||
%endif
|
||||
%if %build_objc
|
||||
Source5: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-objc-%{gcc_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 5}
|
||||
|
||||
%endif
|
||||
%if %build_newlib
|
||||
Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
|
||||
%if "%{newlib_version}" == "1.16.0"
|
||||
Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/newlib-1.16.0-rtems4.9-20080827.diff
|
||||
%endif
|
||||
%{?_without_sources:NoSource: 50}
|
||||
%endif
|
||||
@@ -1,3 +0,0 @@
|
||||
Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2
|
||||
%{?_without_sources:NoSource: 0}
|
||||
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gdb-6.5-bfinrtems-20071114.diff
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user