2006-08-11 Joel Sherrill <joel@oarcorp.com>

* configure.ac, gcc/build.add, gcc/target-gcc.add: Add bfin target
	prior to merge. Add ability to disable libssp and libstdcxx-pch which
	apparently are required to build the Blackfin port.
	* patches/binutils-2.17-rtems-bfin-20060810.diff,
	patches/gcc-4.1.1-bfinrtems-20060810a.diff,
	patches/gdb-6.5-bfinrtems-20060810a.diff,
	patches/newlib-1.14.0-bfinrtems-20060810a.diff,
	rtems4.7/bfin/.cvsignore, rtems4.7/bfin/Makefile.am,
	rtems4.7/bfin/binutils-sources.add, rtems4.7/bfin/gcc-sources.add,
	rtems4.7/bfin/gdb-sources.add: New files.
This commit is contained in:
Joel Sherrill
2006-08-11 21:37:40 +00:00
parent f239d988b7
commit 6d7e83670f
13 changed files with 22555 additions and 0 deletions

View File

@@ -1,3 +1,16 @@
2006-08-11 Joel Sherrill <joel@oarcorp.com>
* configure.ac, gcc/build.add, gcc/target-gcc.add: Add bfin target
prior to merge. Add ability to disable libssp and libstdcxx-pch which
apparently are required to build the Blackfin port.
* patches/binutils-2.17-rtems-bfin-20060810.diff,
patches/gcc-4.1.1-bfinrtems-20060810a.diff,
patches/gdb-6.5-bfinrtems-20060810a.diff,
patches/newlib-1.14.0-bfinrtems-20060810a.diff,
rtems4.7/bfin/.cvsignore, rtems4.7/bfin/Makefile.am,
rtems4.7/bfin/binutils-sources.add, rtems4.7/bfin/gcc-sources.add,
rtems4.7/bfin/gdb-sources.add: New files.
2006-08-09 Joel Sherrill <joel@OARcorp.com>
* .cvsignore: Add INSTALL.

View File

@@ -162,6 +162,7 @@ AC_CONFIG_FILES([freebsd6.1/i586/Makefile])
AC_CONFIG_FILES([rtems4.7/Makefile])
AC_CONFIG_FILES([rtems4.7/arm/Makefile])
AC_CONFIG_FILES([rtems4.7/avr/Makefile])
AC_CONFIG_FILES([rtems4.7/bfin/Makefile])
AC_CONFIG_FILES([rtems4.7/h8300/Makefile])
AC_CONFIG_FILES([rtems4.7/i386/Makefile])
AC_CONFIG_FILES([rtems4.7/m68k/Makefile])

View File

@@ -25,6 +25,12 @@
%if %build_libgcj
optargs="--enable-libgcj"
%endif
%if %disable_libssp
optargs="$optargs --disable-libssp"
%endif
%if %disable_libstcxx_pch
optargs="$optargs --disable-libstdcxx-pch"
%endif
%if "%{_prefix}" != "/usr"
export PATH="%{_bindir}:${PATH}"
%endif

View File

@@ -37,8 +37,10 @@ GNU cc compiler for @tool_target@.
%dir %{gcclib}/@tool_target@/%{gcc_version}/include
%if "%{gcc_version}" > "4.0.3"
%if "@tool_target@" != "bfin-rtems4.7"
%dir %{gcclib}/@tool_target@/%{gcc_version}/include/ssp
%endif
%endif
%dir %{gccexec}
%dir %{gccexec}/@tool_target@

View File

@@ -0,0 +1,13 @@
diff -uNr binutils-2.17/ld/configure.tgt /home2/distros/RH72/home/rtems/src/rtems/contrib//crossrpms/rtems4.7/binutils-2.17/ld/configure.tgt
--- binutils-2.17/ld/configure.tgt 2006-04-05 07:41:57.000000000 -0500
+++ /home2/distros/RH72/home/rtems/src/rtems/contrib//crossrpms/rtems4.7/binutils-2.17/ld/configure.tgt 2006-08-10 13:03:26.000000000 -0500
@@ -83,7 +83,8 @@
avr-*-*) targ_emul=avr2
targ_extra_emuls="avr1 avr3 avr4 avr5"
;;
-bfin-*-elf) targ_emul=elf32bfin; targ_extra_emuls="elf32bfinfd" ;;
+bfin-*-elf | bfin-*-rtems*)
+ targ_emul=elf32bfin; targ_extra_emuls="elf32bfinfd" ;;
bfin-*-uclinux*) targ_emul=elf32bfin; targ_extra_emuls="elf32bfinfd" ;;
cr16c-*-elf*) targ_emul=elf32cr16c
;;

View File

@@ -0,0 +1,24 @@
diff -urN gcc-4.1.1-orig/configure gcc-4.1.1/configure
--- gcc-4.1.1-orig/configure 2005-12-16 06:57:40.000000000 -0600
+++ gcc-4.1.1/configure 2006-08-11 11:10:29.000000000 -0500
@@ -1293,7 +1293,7 @@
noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
;;
bfin-*-*)
- noconfigdirs="$noconfigdirs target-libgloss gdb"
+ noconfigdirs="$noconfigdirs target-libgloss gdb target-libssp"
if test x${is_cross_compiler} != xno ; then
target_configdirs="${target_configdirs} target-bsp target-cygmon"
fi
diff -urN gcc-4.1.1-orig/configure.in gcc-4.1.1/configure.in
--- gcc-4.1.1-orig/configure.in 2005-12-16 06:57:40.000000000 -0600
+++ gcc-4.1.1/configure.in 2006-08-11 11:09:48.000000000 -0500
@@ -501,7 +501,7 @@
noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
;;
bfin-*-*)
- noconfigdirs="$noconfigdirs target-libgloss gdb"
+ noconfigdirs="$noconfigdirs target-libgloss gdb target-libssp"
if test x${is_cross_compiler} != xno ; then
target_configdirs="${target_configdirs} target-bsp target-cygmon"
fi

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

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

View File

@@ -0,0 +1,22 @@
# $Id$
TARGET = bfin-rtems4.7
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
## 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 = 2
include ../gdb.am

View File

@@ -0,0 +1,8 @@
Source0: ftp://ftp.gnu.org/pub/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-bfin-20060810a.diff
%endif

View File

@@ -0,0 +1,41 @@
%define disable_libssp 1
%define disable_libstcxx_pch 1
Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_pkgvers}.tar.bz2
%if "%{gcc_version}" == "4.1.1"
# Patch0: gcc-core-4.1.1-rtems-20060720.diff
Patch0: gcc-4.1.1-bfinrtems-20060810a.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-bfinrtems-20060810a.diff
%endif
%{?_without_sources:NoSource: 50}
%endif

View File

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