This commit is contained in:
Ralf Corsepius
2008-10-03 02:55:10 +00:00
parent b2fd3b7533
commit 175b145c05
13 changed files with 208 additions and 0 deletions

View File

@@ -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
;;

View File

@@ -0,0 +1,3 @@
Makefile
Makefile.in
*.spec.in

View File

@@ -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 +=

View File

@@ -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

View File

@@ -0,0 +1,2 @@
Source0: ftp://ftp.rtems.org/pub/rtems/SOURCES/rtems-%{cpukit_pkgvers}.tar.bz2
%{?_without_sources:NoSource: 0}

View File

@@ -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

View File

@@ -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

View File

@@ -0,0 +1,3 @@
Makefile
Makefile.in
*.spec.in

View File

@@ -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 +=

View File

@@ -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

View File

@@ -0,0 +1,2 @@
Source0: ftp://ftp.rtems.org/pub/rtems/SOURCES/rtems-%{cpukit_pkgvers}.tar.bz2
%{?_without_sources:NoSource: 0}

View File

@@ -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

View File

@@ -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