summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2006-10-21 10:41:01 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2006-10-21 10:41:01 +0000
commit3096ba23515b8cc16fd7236fe301e8fa512af326 (patch)
treeadad3f36288e9a474b4da3fde40aa63da2a57ba0 /contrib
parentRemove (Unsupported) (diff)
downloadrtems-3096ba23515b8cc16fd7236fe301e8fa512af326.tar.bz2
New.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/crossrpms/rtems4.8/.cvsignore2
-rw-r--r--contrib/crossrpms/rtems4.8/Makefile.am15
-rw-r--r--contrib/crossrpms/rtems4.8/arm/.cvsignore4
-rw-r--r--contrib/crossrpms/rtems4.8/arm/Makefile.am19
-rw-r--r--contrib/crossrpms/rtems4.8/arm/binutils-sources.add5
-rw-r--r--contrib/crossrpms/rtems4.8/arm/gcc-sources.add41
-rw-r--r--contrib/crossrpms/rtems4.8/arm/gdb-sources.add3
-rw-r--r--contrib/crossrpms/rtems4.8/avr/.cvsignore4
-rw-r--r--contrib/crossrpms/rtems4.8/avr/Makefile.am19
-rw-r--r--contrib/crossrpms/rtems4.8/avr/binutils-sources.add5
-rw-r--r--contrib/crossrpms/rtems4.8/avr/gcc-sources.add41
-rw-r--r--contrib/crossrpms/rtems4.8/avr/gdb-sources.add3
-rw-r--r--contrib/crossrpms/rtems4.8/bfin/.cvsignore4
-rw-r--r--contrib/crossrpms/rtems4.8/bfin/Makefile.am22
-rw-r--r--contrib/crossrpms/rtems4.8/bfin/binutils-sources.add5
-rw-r--r--contrib/crossrpms/rtems4.8/bfin/gcc-sources.add41
-rw-r--r--contrib/crossrpms/rtems4.8/bfin/gdb-sources.add3
-rw-r--r--contrib/crossrpms/rtems4.8/binutils.am28
-rw-r--r--contrib/crossrpms/rtems4.8/gcc-prep.add9
-rw-r--r--contrib/crossrpms/rtems4.8/gcc.am42
-rw-r--r--contrib/crossrpms/rtems4.8/gdb.am28
-rw-r--r--contrib/crossrpms/rtems4.8/h8300/.cvsignore4
-rw-r--r--contrib/crossrpms/rtems4.8/h8300/Makefile.am19
-rw-r--r--contrib/crossrpms/rtems4.8/h8300/binutils-sources.add8
-rw-r--r--contrib/crossrpms/rtems4.8/h8300/gcc-sources.add41
-rw-r--r--contrib/crossrpms/rtems4.8/h8300/gdb-sources.add3
-rw-r--r--contrib/crossrpms/rtems4.8/i386/.cvsignore4
-rw-r--r--contrib/crossrpms/rtems4.8/i386/Makefile.am19
-rw-r--r--contrib/crossrpms/rtems4.8/i386/binutils-sources.add5
-rw-r--r--contrib/crossrpms/rtems4.8/i386/gcc-sources.add41
-rw-r--r--contrib/crossrpms/rtems4.8/i386/gdb-sources.add3
-rw-r--r--contrib/crossrpms/rtems4.8/m68k/.cvsignore4
-rw-r--r--contrib/crossrpms/rtems4.8/m68k/Makefile.am19
-rw-r--r--contrib/crossrpms/rtems4.8/m68k/binutils-sources.add8
-rw-r--r--contrib/crossrpms/rtems4.8/m68k/gcc-sources.add41
-rw-r--r--contrib/crossrpms/rtems4.8/m68k/gdb-sources.add3
-rw-r--r--contrib/crossrpms/rtems4.8/mips/.cvsignore4
-rw-r--r--contrib/crossrpms/rtems4.8/mips/Makefile.am19
-rw-r--r--contrib/crossrpms/rtems4.8/mips/binutils-sources.add5
-rw-r--r--contrib/crossrpms/rtems4.8/mips/gcc-sources.add41
-rw-r--r--contrib/crossrpms/rtems4.8/mips/gdb-sources.add3
-rw-r--r--contrib/crossrpms/rtems4.8/mipstx39/.cvsignore4
-rw-r--r--contrib/crossrpms/rtems4.8/mipstx39/Makefile.am10
-rw-r--r--contrib/crossrpms/rtems4.8/mipstx39/gdb-sources.add3
-rw-r--r--contrib/crossrpms/rtems4.8/powerpc/.cvsignore4
-rw-r--r--contrib/crossrpms/rtems4.8/powerpc/Makefile.am19
-rw-r--r--contrib/crossrpms/rtems4.8/powerpc/binutils-sources.add5
-rw-r--r--contrib/crossrpms/rtems4.8/powerpc/gcc-sources.add41
-rw-r--r--contrib/crossrpms/rtems4.8/powerpc/gdb-sources.add3
-rw-r--r--contrib/crossrpms/rtems4.8/sh/.cvsignore4
-rw-r--r--contrib/crossrpms/rtems4.8/sh/Makefile.am19
-rw-r--r--contrib/crossrpms/rtems4.8/sh/binutils-sources.add5
-rw-r--r--contrib/crossrpms/rtems4.8/sh/gcc-sources.add41
-rw-r--r--contrib/crossrpms/rtems4.8/sh/gdb-sources.add3
-rw-r--r--contrib/crossrpms/rtems4.8/sparc/.cvsignore4
-rw-r--r--contrib/crossrpms/rtems4.8/sparc/Makefile.am19
-rw-r--r--contrib/crossrpms/rtems4.8/sparc/binutils-sources.add5
-rw-r--r--contrib/crossrpms/rtems4.8/sparc/gcc-sources.add41
-rw-r--r--contrib/crossrpms/rtems4.8/sparc/gdb-sources.add3
-rw-r--r--contrib/crossrpms/rtems4.8/tic4x/.cvsignore4
-rw-r--r--contrib/crossrpms/rtems4.8/tic4x/Makefile.am19
-rw-r--r--contrib/crossrpms/rtems4.8/tic4x/binutils-sources.add5
-rw-r--r--contrib/crossrpms/rtems4.8/tic4x/gcc-sources.add41
-rw-r--r--contrib/crossrpms/rtems4.8/tic4x/gdb-sources.add3
64 files changed, 942 insertions, 0 deletions
diff --git a/contrib/crossrpms/rtems4.8/.cvsignore b/contrib/crossrpms/rtems4.8/.cvsignore
new file mode 100644
index 0000000000..282522db03
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/.cvsignore
@@ -0,0 +1,2 @@
+Makefile
+Makefile.in
diff --git a/contrib/crossrpms/rtems4.8/Makefile.am b/contrib/crossrpms/rtems4.8/Makefile.am
new file mode 100644
index 0000000000..98c07c122f
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/Makefile.am
@@ -0,0 +1,15 @@
+# $Id$
+
+SUBDIRS =
+SUBDIRS += arm
+SUBDIRS += avr
+SUBDIRS += bfin
+SUBDIRS += h8300
+SUBDIRS += i386
+SUBDIRS += m68k
+SUBDIRS += mips
+SUBDIRS += mipstx39
+SUBDIRS += powerpc
+SUBDIRS += sh
+SUBDIRS += sparc
+SUBDIRS += tic4x
diff --git a/contrib/crossrpms/rtems4.8/arm/.cvsignore b/contrib/crossrpms/rtems4.8/arm/.cvsignore
new file mode 100644
index 0000000000..c3dcdce8bd
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/arm/.cvsignore
@@ -0,0 +1,4 @@
+Makefile
+Makefile.in
+*.spec
+*.spec.in
diff --git a/contrib/crossrpms/rtems4.8/arm/Makefile.am b/contrib/crossrpms/rtems4.8/arm/Makefile.am
new file mode 100644
index 0000000000..575077080f
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/arm/Makefile.am
@@ -0,0 +1,19 @@
+# $Id$
+
+TARGET = arm-rtems4.8
+
+include $(top_srcdir)/mkspec.am
+
+BINUTILS_VERS = 2.17
+BINUTILS_RPMREL = 3
+include ../binutils.am
+
+GCC_VERS = 4.1.1
+GCC_RPMREL = 5
+NEWLIB_VERS = 1.14.0
+include ../gcc.am
+GCC_OPTS += --languages=cxx
+
+GDB_VERS = 6.5
+GDB_RPMREL = 2
+include ../gdb.am
diff --git a/contrib/crossrpms/rtems4.8/arm/binutils-sources.add b/contrib/crossrpms/rtems4.8/arm/binutils-sources.add
new file mode 100644
index 0000000000..b5b4c11b22
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/arm/binutils-sources.add
@@ -0,0 +1,5 @@
+Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_version}.tar.bz2
+%{?_without_sources:NoSource: 0}
+%if "%{binutils_version}" == "2.16.1"
+Patch0: binutils-2.16.1-rtems-20050708.diff
+%endif
diff --git a/contrib/crossrpms/rtems4.8/arm/gcc-sources.add b/contrib/crossrpms/rtems4.8/arm/gcc-sources.add
new file mode 100644
index 0000000000..f5f263d5b4
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/arm/gcc-sources.add
@@ -0,0 +1,41 @@
+Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2
+%if "%{gcc_version}" == "4.0.3"
+Patch0: gcc-core-4.0.3-rtems-20060822.diff
+%endif
+%if "%{gcc_version}" == "4.1.1"
+Patch0: gcc-core-4.1.1-rtems-20060909.diff
+%endif
+%{?_without_sources:NoSource: 0}
+
+%if %build_cxx
+Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2
+%{?_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.14.0"
+Patch50: newlib-1.14.0-rtems4.7-20061019.diff
+%endif
+%{?_without_sources:NoSource: 50}
+%endif
diff --git a/contrib/crossrpms/rtems4.8/arm/gdb-sources.add b/contrib/crossrpms/rtems4.8/arm/gdb-sources.add
new file mode 100644
index 0000000000..a338562c71
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/arm/gdb-sources.add
@@ -0,0 +1,3 @@
+Source0: ftp://ftp.gnu.org/pub/gdb/gdb-%{gdb_version}.tar.bz2
+%{?_without_sources:NoSource: 0}
+Patch0: gdb-6.5-rtems-20060713.diff
diff --git a/contrib/crossrpms/rtems4.8/avr/.cvsignore b/contrib/crossrpms/rtems4.8/avr/.cvsignore
new file mode 100644
index 0000000000..c3dcdce8bd
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/avr/.cvsignore
@@ -0,0 +1,4 @@
+Makefile
+Makefile.in
+*.spec
+*.spec.in
diff --git a/contrib/crossrpms/rtems4.8/avr/Makefile.am b/contrib/crossrpms/rtems4.8/avr/Makefile.am
new file mode 100644
index 0000000000..0c22cde1e5
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/avr/Makefile.am
@@ -0,0 +1,19 @@
+# $Id$
+
+TARGET = avr-rtems4.8
+
+include $(top_srcdir)/mkspec.am
+
+BINUTILS_VERS = 2.17
+BINUTILS_RPMREL = 3
+include ../binutils.am
+
+GCC_VERS = 4.0.3
+GCC_RPMREL = 3
+NEWLIB_VERS = 1.14.0
+include ../gcc.am
+GCC_OPTS +=
+
+GDB_VERS = 6.5
+GDB_RPMREL = 2
+include ../gdb.am
diff --git a/contrib/crossrpms/rtems4.8/avr/binutils-sources.add b/contrib/crossrpms/rtems4.8/avr/binutils-sources.add
new file mode 100644
index 0000000000..b5b4c11b22
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/avr/binutils-sources.add
@@ -0,0 +1,5 @@
+Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_version}.tar.bz2
+%{?_without_sources:NoSource: 0}
+%if "%{binutils_version}" == "2.16.1"
+Patch0: binutils-2.16.1-rtems-20050708.diff
+%endif
diff --git a/contrib/crossrpms/rtems4.8/avr/gcc-sources.add b/contrib/crossrpms/rtems4.8/avr/gcc-sources.add
new file mode 100644
index 0000000000..f5f263d5b4
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/avr/gcc-sources.add
@@ -0,0 +1,41 @@
+Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2
+%if "%{gcc_version}" == "4.0.3"
+Patch0: gcc-core-4.0.3-rtems-20060822.diff
+%endif
+%if "%{gcc_version}" == "4.1.1"
+Patch0: gcc-core-4.1.1-rtems-20060909.diff
+%endif
+%{?_without_sources:NoSource: 0}
+
+%if %build_cxx
+Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2
+%{?_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.14.0"
+Patch50: newlib-1.14.0-rtems4.7-20061019.diff
+%endif
+%{?_without_sources:NoSource: 50}
+%endif
diff --git a/contrib/crossrpms/rtems4.8/avr/gdb-sources.add b/contrib/crossrpms/rtems4.8/avr/gdb-sources.add
new file mode 100644
index 0000000000..a338562c71
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/avr/gdb-sources.add
@@ -0,0 +1,3 @@
+Source0: ftp://ftp.gnu.org/pub/gdb/gdb-%{gdb_version}.tar.bz2
+%{?_without_sources:NoSource: 0}
+Patch0: gdb-6.5-rtems-20060713.diff
diff --git a/contrib/crossrpms/rtems4.8/bfin/.cvsignore b/contrib/crossrpms/rtems4.8/bfin/.cvsignore
new file mode 100644
index 0000000000..c3dcdce8bd
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/bfin/.cvsignore
@@ -0,0 +1,4 @@
+Makefile
+Makefile.in
+*.spec
+*.spec.in
diff --git a/contrib/crossrpms/rtems4.8/bfin/Makefile.am b/contrib/crossrpms/rtems4.8/bfin/Makefile.am
new file mode 100644
index 0000000000..2eb564d127
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/bfin/Makefile.am
@@ -0,0 +1,22 @@
+# $Id$
+
+TARGET = bfin-rtems4.8
+
+include $(top_srcdir)/mkspec.am
+
+BINUTILS_VERS = 2.17
+BINUTILS_RPMREL = 1
+include ../binutils.am
+
+GCC_VERS = 4.1.1
+GCC_RPMREL = 1
+NEWLIB_VERS = 1.14.0
+include ../gcc.am
+## GCC_OPTS += --languages=cxx
+## I really would like to get these options passed through but do not
+## know how yet. So I am building with this command.
+## optargs="--disable-libssp --disable-libstdcxx-pch" rpmbuild -ba XXX.spec
+
+GDB_VERS = 6.5
+GDB_RPMREL = 1
+include ../gdb.am
diff --git a/contrib/crossrpms/rtems4.8/bfin/binutils-sources.add b/contrib/crossrpms/rtems4.8/bfin/binutils-sources.add
new file mode 100644
index 0000000000..b5b4c11b22
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/bfin/binutils-sources.add
@@ -0,0 +1,5 @@
+Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_version}.tar.bz2
+%{?_without_sources:NoSource: 0}
+%if "%{binutils_version}" == "2.16.1"
+Patch0: binutils-2.16.1-rtems-20050708.diff
+%endif
diff --git a/contrib/crossrpms/rtems4.8/bfin/gcc-sources.add b/contrib/crossrpms/rtems4.8/bfin/gcc-sources.add
new file mode 100644
index 0000000000..f5f263d5b4
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/bfin/gcc-sources.add
@@ -0,0 +1,41 @@
+Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2
+%if "%{gcc_version}" == "4.0.3"
+Patch0: gcc-core-4.0.3-rtems-20060822.diff
+%endif
+%if "%{gcc_version}" == "4.1.1"
+Patch0: gcc-core-4.1.1-rtems-20060909.diff
+%endif
+%{?_without_sources:NoSource: 0}
+
+%if %build_cxx
+Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2
+%{?_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.14.0"
+Patch50: newlib-1.14.0-rtems4.7-20061019.diff
+%endif
+%{?_without_sources:NoSource: 50}
+%endif
diff --git a/contrib/crossrpms/rtems4.8/bfin/gdb-sources.add b/contrib/crossrpms/rtems4.8/bfin/gdb-sources.add
new file mode 100644
index 0000000000..efe4af4a49
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/bfin/gdb-sources.add
@@ -0,0 +1,3 @@
+Source0: ftp://ftp.gnu.org/pub/gdb/gdb-%{gdb_version}.tar.bz2
+%{?_without_sources:NoSource: 0}
+Patch0: gdb-6.5-bfinrtems-20060810a.diff
diff --git a/contrib/crossrpms/rtems4.8/binutils.am b/contrib/crossrpms/rtems4.8/binutils.am
new file mode 100644
index 0000000000..eff8b9fad6
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/binutils.am
@@ -0,0 +1,28 @@
+EXTRA_DIST += binutils-sources.add
+
+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_RPMREL[@]/$(BINUTILS_RPMREL)/g" \
+ -e "/--with-sysroot/d" \
+ > $(TARGET)-binutils.spec.in
+CLEANFILES += $(TARGET)-binutils.spec.in
+
+@rpmprefix@$(TARGET)-binutils.spec: $(TARGET)-binutils.spec.in
+ $(MKSPEC) $(TARGET)-binutils.spec.in | $(SPECSTRIP) > $@
+CLEANFILES += @rpmprefix@$(TARGET)-binutils.spec
+noinst_DATA += @rpmprefix@$(TARGET)-binutils.spec
+
+EXTRA_DIST += $(BINUTILS_SUBPACKAGES)
diff --git a/contrib/crossrpms/rtems4.8/gcc-prep.add b/contrib/crossrpms/rtems4.8/gcc-prep.add
new file mode 100644
index 0000000000..9fa41305da
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/gcc-prep.add
@@ -0,0 +1,9 @@
+%if "%{gcc_version}" < "4.1.0"
+ sed -e 's/\(version_string.* = \"[^\"]*\)/\1 (RTEMS gcc-%{gcc_version}\/newlib-%{newlib_version}-%release)/' \
+ gcc-%{gcc_version}/gcc/version.c > gcc-%{gcc_version}/gcc/version.c~
+%else
+ sed -e 's/^#define VERSUFFIX.*$/#define VERSUFFIX \" (RTEMS gcc-%{gcc_version}\/newlib-%{newlib_version}-%{release})\"/' \
+ gcc-%{gcc_version}/gcc/version.c > gcc-%{gcc_version}/gcc/version.c~
+%endif
+ mv gcc-%{gcc_version}/gcc/version.c~ gcc-%{gcc_version}/gcc/version.c
+
diff --git a/contrib/crossrpms/rtems4.8/gcc.am b/contrib/crossrpms/rtems4.8/gcc.am
new file mode 100644
index 0000000000..75e441129d
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/gcc.am
@@ -0,0 +1,42 @@
+EXTRA_DIST += $(srcdir)/../gcc-prep.add
+EXTRA_DIST += $(srcdir)/gcc-sources.add
+
+GCC_OPTS = --languages=c --newlib
+
+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
+GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-newlib.add
+GCC_SUBPACKAGES += $(top_srcdir)/gcc/base-newlib.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_RPMREL[@]/$(GCC_RPMREL)/g" \
+ -e "s/[@]NEWLIB_VERS[@]/$(NEWLIB_VERS)/g" \
+ -e "/--with-sysroot/d" \
+ -e "/[@]tool_target[@]-sys-root/d" \
+ -e "/[@]tool_target[@]-w32api-sys-root/d" \
+ > $(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)
diff --git a/contrib/crossrpms/rtems4.8/gdb.am b/contrib/crossrpms/rtems4.8/gdb.am
new file mode 100644
index 0000000000..de0fe5fc90
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/gdb.am
@@ -0,0 +1,28 @@
+EXTRA_DIST += gdb-sources.add
+
+GDB_SUBPACKAGES = $(top_srcdir)/common/common.add
+GDB_SUBPACKAGES += $(top_srcdir)/gdb/gdb.add
+GDB_SUBPACKAGES += $(top_srcdir)/gdb/prep.add
+GDB_SUBPACKAGES += $(top_srcdir)/gdb/build.add
+GDB_SUBPACKAGES += $(top_srcdir)/gdb/install.add
+GDB_SUBPACKAGES += $(top_srcdir)/gdb/rpm-install.add
+GDB_SUBPACKAGES += $(top_srcdir)/common/clean.add
+GDB_SUBPACKAGES += $(top_srcdir)/gdb/target-gdb.add
+GDB_SUBPACKAGES += $(top_srcdir)/gdb/base-gdb.add
+
+$(TARGET)-gdb.spec.in: $(GDB_SUBPACKAGES) Makefile.am $(srcdir)/gdb-sources.add
+ cat $(GDB_SUBPACKAGES) | sed \
+ -e "/[@]SOURCES[@]/r $(srcdir)/gdb-sources.add" \
+ -e "/[@]SOURCES[@]/d" \
+ -e "s/[@]GDB_VERS[@]/$(GDB_VERS)/g" \
+ -e "s/[@]GDB_RPMREL[@]/$(GDB_RPMREL)/g" \
+ -e "/--with-sysroot/d" \
+ > $(TARGET)-gdb.spec.in
+CLEANFILES += $(TARGET)-gdb.spec.in
+
+@rpmprefix@$(TARGET)-gdb.spec: $(TARGET)-gdb.spec.in
+ $(MKSPEC) $(TARGET)-gdb.spec.in | $(SPECSTRIP) > $@
+CLEANFILES += @rpmprefix@$(TARGET)-gdb.spec
+noinst_DATA += @rpmprefix@$(TARGET)-gdb.spec
+
+EXTRA_DIST += $(GDB_SUBPACKAGES)
diff --git a/contrib/crossrpms/rtems4.8/h8300/.cvsignore b/contrib/crossrpms/rtems4.8/h8300/.cvsignore
new file mode 100644
index 0000000000..c3dcdce8bd
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/h8300/.cvsignore
@@ -0,0 +1,4 @@
+Makefile
+Makefile.in
+*.spec
+*.spec.in
diff --git a/contrib/crossrpms/rtems4.8/h8300/Makefile.am b/contrib/crossrpms/rtems4.8/h8300/Makefile.am
new file mode 100644
index 0000000000..0650afa8ec
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/h8300/Makefile.am
@@ -0,0 +1,19 @@
+# $Id$
+
+TARGET = h8300-rtems4.8
+
+include $(top_srcdir)/mkspec.am
+
+BINUTILS_VERS = 2.17
+BINUTILS_RPMREL = 3
+include ../binutils.am
+
+GCC_VERS = 4.1.1
+GCC_RPMREL = 6
+NEWLIB_VERS = 1.14.0
+include ../gcc.am
+GCC_OPTS += --languages=cxx
+
+GDB_VERS = 6.5
+GDB_RPMREL = 2
+include ../gdb.am
diff --git a/contrib/crossrpms/rtems4.8/h8300/binutils-sources.add b/contrib/crossrpms/rtems4.8/h8300/binutils-sources.add
new file mode 100644
index 0000000000..c49426298c
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/h8300/binutils-sources.add
@@ -0,0 +1,8 @@
+Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_version}.tar.bz2
+%{?_without_sources:NoSource: 0}
+%if "%{binutils_version}" == "2.16.1"
+Patch0: binutils-2.16.1-rtems-20050708.diff
+%endif
+%if "%{binutils_version}" == "2.17"
+Patch0: binutils-2.17-rtems-20060815.diff
+%endif
diff --git a/contrib/crossrpms/rtems4.8/h8300/gcc-sources.add b/contrib/crossrpms/rtems4.8/h8300/gcc-sources.add
new file mode 100644
index 0000000000..f5f263d5b4
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/h8300/gcc-sources.add
@@ -0,0 +1,41 @@
+Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2
+%if "%{gcc_version}" == "4.0.3"
+Patch0: gcc-core-4.0.3-rtems-20060822.diff
+%endif
+%if "%{gcc_version}" == "4.1.1"
+Patch0: gcc-core-4.1.1-rtems-20060909.diff
+%endif
+%{?_without_sources:NoSource: 0}
+
+%if %build_cxx
+Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2
+%{?_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.14.0"
+Patch50: newlib-1.14.0-rtems4.7-20061019.diff
+%endif
+%{?_without_sources:NoSource: 50}
+%endif
diff --git a/contrib/crossrpms/rtems4.8/h8300/gdb-sources.add b/contrib/crossrpms/rtems4.8/h8300/gdb-sources.add
new file mode 100644
index 0000000000..a338562c71
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/h8300/gdb-sources.add
@@ -0,0 +1,3 @@
+Source0: ftp://ftp.gnu.org/pub/gdb/gdb-%{gdb_version}.tar.bz2
+%{?_without_sources:NoSource: 0}
+Patch0: gdb-6.5-rtems-20060713.diff
diff --git a/contrib/crossrpms/rtems4.8/i386/.cvsignore b/contrib/crossrpms/rtems4.8/i386/.cvsignore
new file mode 100644
index 0000000000..c3dcdce8bd
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/i386/.cvsignore
@@ -0,0 +1,4 @@
+Makefile
+Makefile.in
+*.spec
+*.spec.in
diff --git a/contrib/crossrpms/rtems4.8/i386/Makefile.am b/contrib/crossrpms/rtems4.8/i386/Makefile.am
new file mode 100644
index 0000000000..fefe20a621
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/i386/Makefile.am
@@ -0,0 +1,19 @@
+# $Id$
+
+TARGET = i386-rtems4.8
+
+include $(top_srcdir)/mkspec.am
+
+BINUTILS_VERS = 2.17
+BINUTILS_RPMREL = 3
+include ../binutils.am
+
+GCC_VERS = 4.1.1
+GCC_RPMREL = 5
+NEWLIB_VERS = 1.14.0
+include ../gcc.am
+GCC_OPTS += --languages=cxx
+
+GDB_VERS = 6.5
+GDB_RPMREL = 2
+include ../gdb.am
diff --git a/contrib/crossrpms/rtems4.8/i386/binutils-sources.add b/contrib/crossrpms/rtems4.8/i386/binutils-sources.add
new file mode 100644
index 0000000000..b5b4c11b22
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/i386/binutils-sources.add
@@ -0,0 +1,5 @@
+Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_version}.tar.bz2
+%{?_without_sources:NoSource: 0}
+%if "%{binutils_version}" == "2.16.1"
+Patch0: binutils-2.16.1-rtems-20050708.diff
+%endif
diff --git a/contrib/crossrpms/rtems4.8/i386/gcc-sources.add b/contrib/crossrpms/rtems4.8/i386/gcc-sources.add
new file mode 100644
index 0000000000..f5f263d5b4
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/i386/gcc-sources.add
@@ -0,0 +1,41 @@
+Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2
+%if "%{gcc_version}" == "4.0.3"
+Patch0: gcc-core-4.0.3-rtems-20060822.diff
+%endif
+%if "%{gcc_version}" == "4.1.1"
+Patch0: gcc-core-4.1.1-rtems-20060909.diff
+%endif
+%{?_without_sources:NoSource: 0}
+
+%if %build_cxx
+Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2
+%{?_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.14.0"
+Patch50: newlib-1.14.0-rtems4.7-20061019.diff
+%endif
+%{?_without_sources:NoSource: 50}
+%endif
diff --git a/contrib/crossrpms/rtems4.8/i386/gdb-sources.add b/contrib/crossrpms/rtems4.8/i386/gdb-sources.add
new file mode 100644
index 0000000000..a338562c71
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/i386/gdb-sources.add
@@ -0,0 +1,3 @@
+Source0: ftp://ftp.gnu.org/pub/gdb/gdb-%{gdb_version}.tar.bz2
+%{?_without_sources:NoSource: 0}
+Patch0: gdb-6.5-rtems-20060713.diff
diff --git a/contrib/crossrpms/rtems4.8/m68k/.cvsignore b/contrib/crossrpms/rtems4.8/m68k/.cvsignore
new file mode 100644
index 0000000000..c3dcdce8bd
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/m68k/.cvsignore
@@ -0,0 +1,4 @@
+Makefile
+Makefile.in
+*.spec
+*.spec.in
diff --git a/contrib/crossrpms/rtems4.8/m68k/Makefile.am b/contrib/crossrpms/rtems4.8/m68k/Makefile.am
new file mode 100644
index 0000000000..293880ab33
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/m68k/Makefile.am
@@ -0,0 +1,19 @@
+# $Id$
+
+TARGET = m68k-rtems4.8
+
+include $(top_srcdir)/mkspec.am
+
+BINUTILS_VERS = 2.17
+BINUTILS_RPMREL = 3
+include ../binutils.am
+
+GCC_VERS = 4.1.1
+GCC_RPMREL = 5
+NEWLIB_VERS = 1.14.0
+include ../gcc.am
+GCC_OPTS += --languages=cxx
+
+GDB_VERS = 6.5
+GDB_RPMREL = 2
+include ../gdb.am
diff --git a/contrib/crossrpms/rtems4.8/m68k/binutils-sources.add b/contrib/crossrpms/rtems4.8/m68k/binutils-sources.add
new file mode 100644
index 0000000000..c49426298c
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/m68k/binutils-sources.add
@@ -0,0 +1,8 @@
+Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_version}.tar.bz2
+%{?_without_sources:NoSource: 0}
+%if "%{binutils_version}" == "2.16.1"
+Patch0: binutils-2.16.1-rtems-20050708.diff
+%endif
+%if "%{binutils_version}" == "2.17"
+Patch0: binutils-2.17-rtems-20060815.diff
+%endif
diff --git a/contrib/crossrpms/rtems4.8/m68k/gcc-sources.add b/contrib/crossrpms/rtems4.8/m68k/gcc-sources.add
new file mode 100644
index 0000000000..f5f263d5b4
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/m68k/gcc-sources.add
@@ -0,0 +1,41 @@
+Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2
+%if "%{gcc_version}" == "4.0.3"
+Patch0: gcc-core-4.0.3-rtems-20060822.diff
+%endif
+%if "%{gcc_version}" == "4.1.1"
+Patch0: gcc-core-4.1.1-rtems-20060909.diff
+%endif
+%{?_without_sources:NoSource: 0}
+
+%if %build_cxx
+Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2
+%{?_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.14.0"
+Patch50: newlib-1.14.0-rtems4.7-20061019.diff
+%endif
+%{?_without_sources:NoSource: 50}
+%endif
diff --git a/contrib/crossrpms/rtems4.8/m68k/gdb-sources.add b/contrib/crossrpms/rtems4.8/m68k/gdb-sources.add
new file mode 100644
index 0000000000..a338562c71
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/m68k/gdb-sources.add
@@ -0,0 +1,3 @@
+Source0: ftp://ftp.gnu.org/pub/gdb/gdb-%{gdb_version}.tar.bz2
+%{?_without_sources:NoSource: 0}
+Patch0: gdb-6.5-rtems-20060713.diff
diff --git a/contrib/crossrpms/rtems4.8/mips/.cvsignore b/contrib/crossrpms/rtems4.8/mips/.cvsignore
new file mode 100644
index 0000000000..c3dcdce8bd
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/mips/.cvsignore
@@ -0,0 +1,4 @@
+Makefile
+Makefile.in
+*.spec
+*.spec.in
diff --git a/contrib/crossrpms/rtems4.8/mips/Makefile.am b/contrib/crossrpms/rtems4.8/mips/Makefile.am
new file mode 100644
index 0000000000..fd521f305f
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/mips/Makefile.am
@@ -0,0 +1,19 @@
+# $Id$
+
+TARGET = mips-rtems4.8
+
+include $(top_srcdir)/mkspec.am
+
+BINUTILS_VERS = 2.17
+BINUTILS_RPMREL = 3
+include ../binutils.am
+
+GCC_VERS = 4.1.1
+GCC_RPMREL = 5
+NEWLIB_VERS = 1.14.0
+include ../gcc.am
+GCC_OPTS += --languages=cxx
+
+GDB_VERS = 6.5
+GDB_RPMREL = 2
+include ../gdb.am
diff --git a/contrib/crossrpms/rtems4.8/mips/binutils-sources.add b/contrib/crossrpms/rtems4.8/mips/binutils-sources.add
new file mode 100644
index 0000000000..b5b4c11b22
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/mips/binutils-sources.add
@@ -0,0 +1,5 @@
+Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_version}.tar.bz2
+%{?_without_sources:NoSource: 0}
+%if "%{binutils_version}" == "2.16.1"
+Patch0: binutils-2.16.1-rtems-20050708.diff
+%endif
diff --git a/contrib/crossrpms/rtems4.8/mips/gcc-sources.add b/contrib/crossrpms/rtems4.8/mips/gcc-sources.add
new file mode 100644
index 0000000000..f5f263d5b4
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/mips/gcc-sources.add
@@ -0,0 +1,41 @@
+Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2
+%if "%{gcc_version}" == "4.0.3"
+Patch0: gcc-core-4.0.3-rtems-20060822.diff
+%endif
+%if "%{gcc_version}" == "4.1.1"
+Patch0: gcc-core-4.1.1-rtems-20060909.diff
+%endif
+%{?_without_sources:NoSource: 0}
+
+%if %build_cxx
+Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2
+%{?_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.14.0"
+Patch50: newlib-1.14.0-rtems4.7-20061019.diff
+%endif
+%{?_without_sources:NoSource: 50}
+%endif
diff --git a/contrib/crossrpms/rtems4.8/mips/gdb-sources.add b/contrib/crossrpms/rtems4.8/mips/gdb-sources.add
new file mode 100644
index 0000000000..a338562c71
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/mips/gdb-sources.add
@@ -0,0 +1,3 @@
+Source0: ftp://ftp.gnu.org/pub/gdb/gdb-%{gdb_version}.tar.bz2
+%{?_without_sources:NoSource: 0}
+Patch0: gdb-6.5-rtems-20060713.diff
diff --git a/contrib/crossrpms/rtems4.8/mipstx39/.cvsignore b/contrib/crossrpms/rtems4.8/mipstx39/.cvsignore
new file mode 100644
index 0000000000..c3dcdce8bd
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/mipstx39/.cvsignore
@@ -0,0 +1,4 @@
+Makefile
+Makefile.in
+*.spec
+*.spec.in
diff --git a/contrib/crossrpms/rtems4.8/mipstx39/Makefile.am b/contrib/crossrpms/rtems4.8/mipstx39/Makefile.am
new file mode 100644
index 0000000000..aec29da761
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/mipstx39/Makefile.am
@@ -0,0 +1,10 @@
+# $Id$
+
+TARGET = mipstx39-rtems4.8
+
+include $(top_srcdir)/mkspec.am
+
+# We only want a gdb with a tx39 simulator in it. We share the other tools
+GDB_VERS = 6.5
+GDB_RPMREL = 2
+include ../gdb.am
diff --git a/contrib/crossrpms/rtems4.8/mipstx39/gdb-sources.add b/contrib/crossrpms/rtems4.8/mipstx39/gdb-sources.add
new file mode 100644
index 0000000000..a338562c71
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/mipstx39/gdb-sources.add
@@ -0,0 +1,3 @@
+Source0: ftp://ftp.gnu.org/pub/gdb/gdb-%{gdb_version}.tar.bz2
+%{?_without_sources:NoSource: 0}
+Patch0: gdb-6.5-rtems-20060713.diff
diff --git a/contrib/crossrpms/rtems4.8/powerpc/.cvsignore b/contrib/crossrpms/rtems4.8/powerpc/.cvsignore
new file mode 100644
index 0000000000..c3dcdce8bd
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/powerpc/.cvsignore
@@ -0,0 +1,4 @@
+Makefile
+Makefile.in
+*.spec
+*.spec.in
diff --git a/contrib/crossrpms/rtems4.8/powerpc/Makefile.am b/contrib/crossrpms/rtems4.8/powerpc/Makefile.am
new file mode 100644
index 0000000000..06d4ac76d9
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/powerpc/Makefile.am
@@ -0,0 +1,19 @@
+# $Id$
+
+TARGET = powerpc-rtems4.8
+
+include $(top_srcdir)/mkspec.am
+
+BINUTILS_VERS = 2.17
+BINUTILS_RPMREL = 3
+include ../binutils.am
+
+GCC_VERS = 4.1.1
+GCC_RPMREL = 5
+NEWLIB_VERS = 1.14.0
+include ../gcc.am
+GCC_OPTS += --languages=cxx
+
+GDB_VERS = 6.5
+GDB_RPMREL = 2
+include ../gdb.am
diff --git a/contrib/crossrpms/rtems4.8/powerpc/binutils-sources.add b/contrib/crossrpms/rtems4.8/powerpc/binutils-sources.add
new file mode 100644
index 0000000000..b5b4c11b22
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/powerpc/binutils-sources.add
@@ -0,0 +1,5 @@
+Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_version}.tar.bz2
+%{?_without_sources:NoSource: 0}
+%if "%{binutils_version}" == "2.16.1"
+Patch0: binutils-2.16.1-rtems-20050708.diff
+%endif
diff --git a/contrib/crossrpms/rtems4.8/powerpc/gcc-sources.add b/contrib/crossrpms/rtems4.8/powerpc/gcc-sources.add
new file mode 100644
index 0000000000..f5f263d5b4
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/powerpc/gcc-sources.add
@@ -0,0 +1,41 @@
+Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2
+%if "%{gcc_version}" == "4.0.3"
+Patch0: gcc-core-4.0.3-rtems-20060822.diff
+%endif
+%if "%{gcc_version}" == "4.1.1"
+Patch0: gcc-core-4.1.1-rtems-20060909.diff
+%endif
+%{?_without_sources:NoSource: 0}
+
+%if %build_cxx
+Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2
+%{?_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.14.0"
+Patch50: newlib-1.14.0-rtems4.7-20061019.diff
+%endif
+%{?_without_sources:NoSource: 50}
+%endif
diff --git a/contrib/crossrpms/rtems4.8/powerpc/gdb-sources.add b/contrib/crossrpms/rtems4.8/powerpc/gdb-sources.add
new file mode 100644
index 0000000000..a338562c71
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/powerpc/gdb-sources.add
@@ -0,0 +1,3 @@
+Source0: ftp://ftp.gnu.org/pub/gdb/gdb-%{gdb_version}.tar.bz2
+%{?_without_sources:NoSource: 0}
+Patch0: gdb-6.5-rtems-20060713.diff
diff --git a/contrib/crossrpms/rtems4.8/sh/.cvsignore b/contrib/crossrpms/rtems4.8/sh/.cvsignore
new file mode 100644
index 0000000000..c3dcdce8bd
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/sh/.cvsignore
@@ -0,0 +1,4 @@
+Makefile
+Makefile.in
+*.spec
+*.spec.in
diff --git a/contrib/crossrpms/rtems4.8/sh/Makefile.am b/contrib/crossrpms/rtems4.8/sh/Makefile.am
new file mode 100644
index 0000000000..383f74330c
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/sh/Makefile.am
@@ -0,0 +1,19 @@
+# $Id$
+
+TARGET = sh-rtems4.8
+
+include $(top_srcdir)/mkspec.am
+
+BINUTILS_VERS = 2.17
+BINUTILS_RPMREL = 3
+include ../binutils.am
+
+GCC_VERS = 4.1.1
+GCC_RPMREL = 5
+NEWLIB_VERS = 1.14.0
+include ../gcc.am
+GCC_OPTS += --languages=cxx
+
+GDB_VERS = 6.5
+GDB_RPMREL = 2
+include ../gdb.am
diff --git a/contrib/crossrpms/rtems4.8/sh/binutils-sources.add b/contrib/crossrpms/rtems4.8/sh/binutils-sources.add
new file mode 100644
index 0000000000..b5b4c11b22
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/sh/binutils-sources.add
@@ -0,0 +1,5 @@
+Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_version}.tar.bz2
+%{?_without_sources:NoSource: 0}
+%if "%{binutils_version}" == "2.16.1"
+Patch0: binutils-2.16.1-rtems-20050708.diff
+%endif
diff --git a/contrib/crossrpms/rtems4.8/sh/gcc-sources.add b/contrib/crossrpms/rtems4.8/sh/gcc-sources.add
new file mode 100644
index 0000000000..f5f263d5b4
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/sh/gcc-sources.add
@@ -0,0 +1,41 @@
+Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2
+%if "%{gcc_version}" == "4.0.3"
+Patch0: gcc-core-4.0.3-rtems-20060822.diff
+%endif
+%if "%{gcc_version}" == "4.1.1"
+Patch0: gcc-core-4.1.1-rtems-20060909.diff
+%endif
+%{?_without_sources:NoSource: 0}
+
+%if %build_cxx
+Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2
+%{?_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.14.0"
+Patch50: newlib-1.14.0-rtems4.7-20061019.diff
+%endif
+%{?_without_sources:NoSource: 50}
+%endif
diff --git a/contrib/crossrpms/rtems4.8/sh/gdb-sources.add b/contrib/crossrpms/rtems4.8/sh/gdb-sources.add
new file mode 100644
index 0000000000..a338562c71
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/sh/gdb-sources.add
@@ -0,0 +1,3 @@
+Source0: ftp://ftp.gnu.org/pub/gdb/gdb-%{gdb_version}.tar.bz2
+%{?_without_sources:NoSource: 0}
+Patch0: gdb-6.5-rtems-20060713.diff
diff --git a/contrib/crossrpms/rtems4.8/sparc/.cvsignore b/contrib/crossrpms/rtems4.8/sparc/.cvsignore
new file mode 100644
index 0000000000..c3dcdce8bd
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/sparc/.cvsignore
@@ -0,0 +1,4 @@
+Makefile
+Makefile.in
+*.spec
+*.spec.in
diff --git a/contrib/crossrpms/rtems4.8/sparc/Makefile.am b/contrib/crossrpms/rtems4.8/sparc/Makefile.am
new file mode 100644
index 0000000000..520834b077
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/sparc/Makefile.am
@@ -0,0 +1,19 @@
+# $Id$
+
+TARGET = sparc-rtems4.8
+
+include $(top_srcdir)/mkspec.am
+
+BINUTILS_VERS = 2.17
+BINUTILS_RPMREL = 3
+include ../binutils.am
+
+GCC_VERS = 4.1.1
+GCC_RPMREL = 5
+NEWLIB_VERS = 1.14.0
+include ../gcc.am
+GCC_OPTS += --languages=cxx
+
+GDB_VERS = 6.5
+GDB_RPMREL = 2
+include ../gdb.am
diff --git a/contrib/crossrpms/rtems4.8/sparc/binutils-sources.add b/contrib/crossrpms/rtems4.8/sparc/binutils-sources.add
new file mode 100644
index 0000000000..b5b4c11b22
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/sparc/binutils-sources.add
@@ -0,0 +1,5 @@
+Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_version}.tar.bz2
+%{?_without_sources:NoSource: 0}
+%if "%{binutils_version}" == "2.16.1"
+Patch0: binutils-2.16.1-rtems-20050708.diff
+%endif
diff --git a/contrib/crossrpms/rtems4.8/sparc/gcc-sources.add b/contrib/crossrpms/rtems4.8/sparc/gcc-sources.add
new file mode 100644
index 0000000000..f5f263d5b4
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/sparc/gcc-sources.add
@@ -0,0 +1,41 @@
+Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2
+%if "%{gcc_version}" == "4.0.3"
+Patch0: gcc-core-4.0.3-rtems-20060822.diff
+%endif
+%if "%{gcc_version}" == "4.1.1"
+Patch0: gcc-core-4.1.1-rtems-20060909.diff
+%endif
+%{?_without_sources:NoSource: 0}
+
+%if %build_cxx
+Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2
+%{?_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.14.0"
+Patch50: newlib-1.14.0-rtems4.7-20061019.diff
+%endif
+%{?_without_sources:NoSource: 50}
+%endif
diff --git a/contrib/crossrpms/rtems4.8/sparc/gdb-sources.add b/contrib/crossrpms/rtems4.8/sparc/gdb-sources.add
new file mode 100644
index 0000000000..a338562c71
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/sparc/gdb-sources.add
@@ -0,0 +1,3 @@
+Source0: ftp://ftp.gnu.org/pub/gdb/gdb-%{gdb_version}.tar.bz2
+%{?_without_sources:NoSource: 0}
+Patch0: gdb-6.5-rtems-20060713.diff
diff --git a/contrib/crossrpms/rtems4.8/tic4x/.cvsignore b/contrib/crossrpms/rtems4.8/tic4x/.cvsignore
new file mode 100644
index 0000000000..c3dcdce8bd
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/tic4x/.cvsignore
@@ -0,0 +1,4 @@
+Makefile
+Makefile.in
+*.spec
+*.spec.in
diff --git a/contrib/crossrpms/rtems4.8/tic4x/Makefile.am b/contrib/crossrpms/rtems4.8/tic4x/Makefile.am
new file mode 100644
index 0000000000..2dc2e598c7
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/tic4x/Makefile.am
@@ -0,0 +1,19 @@
+# $Id$
+
+TARGET = tic4x-rtems4.8
+
+include $(top_srcdir)/mkspec.am
+
+BINUTILS_VERS = 2.17
+BINUTILS_RPMREL = 3
+include ../binutils.am
+
+GCC_VERS = 3.4.6
+GCC_RPMREL = 2
+NEWLIB_VERS = 1.14.0
+include ../gcc.am
+GCC_OPTS +=
+
+### GDB-6.4 doesn't support the tic4x
+## GDB_VERS = 6.4
+## include ../gdb.am
diff --git a/contrib/crossrpms/rtems4.8/tic4x/binutils-sources.add b/contrib/crossrpms/rtems4.8/tic4x/binutils-sources.add
new file mode 100644
index 0000000000..b5b4c11b22
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/tic4x/binutils-sources.add
@@ -0,0 +1,5 @@
+Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_version}.tar.bz2
+%{?_without_sources:NoSource: 0}
+%if "%{binutils_version}" == "2.16.1"
+Patch0: binutils-2.16.1-rtems-20050708.diff
+%endif
diff --git a/contrib/crossrpms/rtems4.8/tic4x/gcc-sources.add b/contrib/crossrpms/rtems4.8/tic4x/gcc-sources.add
new file mode 100644
index 0000000000..f5f263d5b4
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/tic4x/gcc-sources.add
@@ -0,0 +1,41 @@
+Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2
+%if "%{gcc_version}" == "4.0.3"
+Patch0: gcc-core-4.0.3-rtems-20060822.diff
+%endif
+%if "%{gcc_version}" == "4.1.1"
+Patch0: gcc-core-4.1.1-rtems-20060909.diff
+%endif
+%{?_without_sources:NoSource: 0}
+
+%if %build_cxx
+Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2
+%{?_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.14.0"
+Patch50: newlib-1.14.0-rtems4.7-20061019.diff
+%endif
+%{?_without_sources:NoSource: 50}
+%endif
diff --git a/contrib/crossrpms/rtems4.8/tic4x/gdb-sources.add b/contrib/crossrpms/rtems4.8/tic4x/gdb-sources.add
new file mode 100644
index 0000000000..a338562c71
--- /dev/null
+++ b/contrib/crossrpms/rtems4.8/tic4x/gdb-sources.add
@@ -0,0 +1,3 @@
+Source0: ftp://ftp.gnu.org/pub/gdb/gdb-%{gdb_version}.tar.bz2
+%{?_without_sources:NoSource: 0}
+Patch0: gdb-6.5-rtems-20060713.diff