diff --git a/contrib/crossrpms/patches/binutils-2.18.91-rtems4.10-20081003.diff b/contrib/crossrpms/patches/binutils-2.18.91-rtems4.10-20081003.diff new file mode 100644 index 0000000000..dba3801771 --- /dev/null +++ b/contrib/crossrpms/patches/binutils-2.18.91-rtems4.10-20081003.diff @@ -0,0 +1,44 @@ +diff -Naur binutils-2.18.91.orig/bfd/config.bfd binutils-2.18.91/bfd/config.bfd +--- binutils-2.18.91.orig/bfd/config.bfd 2008-04-16 20:02:01.000000000 +0200 ++++ binutils-2.18.91/bfd/config.bfd 2008-10-03 04:25:43.000000000 +0200 +@@ -721,7 +721,7 @@ + targ_defvec=bfd_elf32_iq2000_vec + ;; + +- m32c-*-elf) ++ m32c-*-elf | m32c-*-rtems*) + targ_defvec=bfd_elf32_m32c_vec + ;; + +diff -Naur binutils-2.18.91.orig/gas/configure.tgt binutils-2.18.91/gas/configure.tgt +--- binutils-2.18.91.orig/gas/configure.tgt 2008-07-07 18:43:06.000000000 +0200 ++++ binutils-2.18.91/gas/configure.tgt 2008-10-03 04:25:43.000000000 +0200 +@@ -244,9 +244,10 @@ + + iq2000-*-elf) fmt=elf ;; + +- m32c-*-elf) fmt=elf ;; ++ m32c-*-elf | m32c-*-rtems*) fmt=elf ;; + + m32r-*-elf*) fmt=elf ;; ++ m32r-*-rtems*) fmt=elf ;; + m32r-*-linux*) fmt=elf em=linux;; + + m68hc11-*-* | m6811-*-*) fmt=elf ;; +diff -Naur binutils-2.18.91.orig/ld/configure.tgt binutils-2.18.91/ld/configure.tgt +--- binutils-2.18.91.orig/ld/configure.tgt 2008-08-09 07:35:13.000000000 +0200 ++++ binutils-2.18.91/ld/configure.tgt 2008-10-03 04:25:43.000000000 +0200 +@@ -301,10 +301,12 @@ + ;; + iq2000-*-elf) targ_emul=elf32iq2000 ; targ_extra_emuls="elf32iq10" + ;; +-m32c-*-elf) targ_emul=elf32m32c ++m32c-*-elf|m32c-*-rtems*) ++ targ_emul=elf32m32c + ;; + m32r*le-*-elf*) targ_emul=m32rlelf ;; + m32r*-*-elf*) targ_emul=m32relf ;; ++m32r*-*-rtems*) targ_emul=m32relf ;; + m32r*le-*-linux-*) targ_emul=m32rlelf_linux ;; + m32r*-*-linux-*) targ_emul=m32relf_linux + ;; diff --git a/contrib/crossrpms/rtems4.10/m32c/.cvsignore b/contrib/crossrpms/rtems4.10/m32c/.cvsignore new file mode 100644 index 0000000000..11289e9f57 --- /dev/null +++ b/contrib/crossrpms/rtems4.10/m32c/.cvsignore @@ -0,0 +1,3 @@ +Makefile +Makefile.in +*.spec.in diff --git a/contrib/crossrpms/rtems4.10/m32c/Makefile.am b/contrib/crossrpms/rtems4.10/m32c/Makefile.am new file mode 100644 index 0000000000..5aef569ea9 --- /dev/null +++ b/contrib/crossrpms/rtems4.10/m32c/Makefile.am @@ -0,0 +1,30 @@ +# $Id$ + +TARGET = m32c-rtems4.10 + +include $(top_srcdir)/mkspec.am + +BINUTILS_VERS = 2.18.91 +BINUTILS_PKGVERS = $(BINUTILS_VERS) +BINUTILS_RPMREL = 2%{?dist} +include ../binutils.am +BINUTILS_OPTS += --disable-infos + +GCC_VERS = 4.3.2 +GCC_PKGVERS = $(GCC_VERS) +GCC_RPMREL = 3%{?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 = 1%{?dist} +include ../cpukit.am +CPUKIT_OPTS += diff --git a/contrib/crossrpms/rtems4.10/m32c/binutils-sources.add b/contrib/crossrpms/rtems4.10/m32c/binutils-sources.add new file mode 100644 index 0000000000..d9f43a32be --- /dev/null +++ b/contrib/crossrpms/rtems4.10/m32c/binutils-sources.add @@ -0,0 +1,2 @@ +Source0: ftp://sourceware.redhat.com/pub/binutils/snapshots/binutils-2.18.91.tar.bz2 +Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.18.91-rtems4.10-20081003.diff diff --git a/contrib/crossrpms/rtems4.10/m32c/cpukit-sources.add b/contrib/crossrpms/rtems4.10/m32c/cpukit-sources.add new file mode 100644 index 0000000000..763e672840 --- /dev/null +++ b/contrib/crossrpms/rtems4.10/m32c/cpukit-sources.add @@ -0,0 +1,2 @@ +Source0: ftp://ftp.rtems.org/pub/rtems/SOURCES/rtems-%{cpukit_pkgvers}.tar.bz2 +%{?_without_sources:NoSource: 0} diff --git a/contrib/crossrpms/rtems4.10/m32c/gcc-sources.add b/contrib/crossrpms/rtems4.10/m32c/gcc-sources.add new file mode 100644 index 0000000000..f581c5730d --- /dev/null +++ b/contrib/crossrpms/rtems4.10/m32c/gcc-sources.add @@ -0,0 +1,40 @@ +%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.10/gcc-core-4.3.2-rtems4.10-20080828.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 +%{?_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.10/newlib-1.16.0-rtems4.10-20080827.diff +%endif +%{?_without_sources:NoSource: 50} +%endif diff --git a/contrib/crossrpms/rtems4.10/m32c/gdb-sources.add b/contrib/crossrpms/rtems4.10/m32c/gdb-sources.add new file mode 100644 index 0000000000..7ba2f39325 --- /dev/null +++ b/contrib/crossrpms/rtems4.10/m32c/gdb-sources.add @@ -0,0 +1,5 @@ +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.10/gdb-6.8-rtems4.10-20080917.diff +%endif diff --git a/contrib/crossrpms/rtems4.10/m32r/.cvsignore b/contrib/crossrpms/rtems4.10/m32r/.cvsignore new file mode 100644 index 0000000000..11289e9f57 --- /dev/null +++ b/contrib/crossrpms/rtems4.10/m32r/.cvsignore @@ -0,0 +1,3 @@ +Makefile +Makefile.in +*.spec.in diff --git a/contrib/crossrpms/rtems4.10/m32r/Makefile.am b/contrib/crossrpms/rtems4.10/m32r/Makefile.am new file mode 100644 index 0000000000..dc30561da2 --- /dev/null +++ b/contrib/crossrpms/rtems4.10/m32r/Makefile.am @@ -0,0 +1,30 @@ +# $Id$ + +TARGET = m32r-rtems4.10 + +include $(top_srcdir)/mkspec.am + +BINUTILS_VERS = 2.18.91 +BINUTILS_PKGVERS = $(BINUTILS_VERS) +BINUTILS_RPMREL = 2%{?dist} +include ../binutils.am +BINUTILS_OPTS += --disable-infos + +GCC_VERS = 4.3.2 +GCC_PKGVERS = $(GCC_VERS) +GCC_RPMREL = 3%{?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 = 1%{?dist} +include ../cpukit.am +CPUKIT_OPTS += diff --git a/contrib/crossrpms/rtems4.10/m32r/binutils-sources.add b/contrib/crossrpms/rtems4.10/m32r/binutils-sources.add new file mode 100644 index 0000000000..d9f43a32be --- /dev/null +++ b/contrib/crossrpms/rtems4.10/m32r/binutils-sources.add @@ -0,0 +1,2 @@ +Source0: ftp://sourceware.redhat.com/pub/binutils/snapshots/binutils-2.18.91.tar.bz2 +Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.18.91-rtems4.10-20081003.diff diff --git a/contrib/crossrpms/rtems4.10/m32r/cpukit-sources.add b/contrib/crossrpms/rtems4.10/m32r/cpukit-sources.add new file mode 100644 index 0000000000..763e672840 --- /dev/null +++ b/contrib/crossrpms/rtems4.10/m32r/cpukit-sources.add @@ -0,0 +1,2 @@ +Source0: ftp://ftp.rtems.org/pub/rtems/SOURCES/rtems-%{cpukit_pkgvers}.tar.bz2 +%{?_without_sources:NoSource: 0} diff --git a/contrib/crossrpms/rtems4.10/m32r/gcc-sources.add b/contrib/crossrpms/rtems4.10/m32r/gcc-sources.add new file mode 100644 index 0000000000..f581c5730d --- /dev/null +++ b/contrib/crossrpms/rtems4.10/m32r/gcc-sources.add @@ -0,0 +1,40 @@ +%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.10/gcc-core-4.3.2-rtems4.10-20080828.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 +%{?_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.10/newlib-1.16.0-rtems4.10-20080827.diff +%endif +%{?_without_sources:NoSource: 50} +%endif diff --git a/contrib/crossrpms/rtems4.10/m32r/gdb-sources.add b/contrib/crossrpms/rtems4.10/m32r/gdb-sources.add new file mode 100644 index 0000000000..7ba2f39325 --- /dev/null +++ b/contrib/crossrpms/rtems4.10/m32r/gdb-sources.add @@ -0,0 +1,5 @@ +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.10/gdb-6.8-rtems4.10-20080917.diff +%endif