Add Moxie support.

Binutils and the compiler build how-ever gdb needs a tool called 'dtc'
to build the simulator. This is not present on my FreeBSD test box.
This commit is contained in:
Chris Johns 2013-02-14 12:32:03 +11:00
parent b991b35a88
commit 87fc7e021e
7 changed files with 73 additions and 1 deletions

View File

@ -0,0 +1,20 @@
#
# Tools Set for RTEMS Moxie 4.11 Stable
#
%define _target moxie-rtems4.11
%define release 1
#
# The RTEMS 4.11 base defines.
#
%include rtems-4.11-base.bset
#
# Tools configuration.
#
expat-2.1.0-1
tools/rtems-binutils-2.22-1
tools/rtems-gcc-4.7.2-newlib-1.20.0-1
tools/rtems-gdb-7.5.1-1

View File

@ -8,6 +8,7 @@
%define binutils_version 2.22
Patch0: binutils-2.22-rtems4.11-20120427.diff
Patch1: binutils-2.22-rtems4.11-moxie-20130214.diff
#
# The binutils build instructions. We use 2.xx Release 1.

View File

@ -7,7 +7,7 @@
%define gdb_version 7.5.1
# Patch0: gdb-7.5-rtems4.11-20121003.diff
Patch0: gdb-7.5.1-rtems4.11-moxie-20130214.diff
#
# The gdb build instructions. We use 7.xx Release 1.

View File

@ -0,0 +1,11 @@
--- binutils-2.22/bfd/config.bfd.orig 2011-07-29 08:35:13.000000000 +1000
+++ binutils-2.22/bfd/config.bfd 2013-02-14 11:30:43.000000000 +1100
@@ -380,7 +380,7 @@
targ_selvecs=bfd_elf32_frv_vec
;;
- moxie-*-elf | moxie-*-rtems | moxie-*-uclinux)
+ moxie-*-elf | moxie-*-rtems* | moxie-*-uclinux)
targ_defvec=bfd_elf32_moxie_vec
;;

View File

@ -0,0 +1,22 @@
--- gdb-7.5.1/bfd/config.bfd.orig 2013-02-14 11:47:19.000000000 +1100
+++ gdb-7.5.1/bfd/config.bfd 2013-02-14 11:47:37.000000000 +1100
@@ -397,7 +397,7 @@
targ_selvecs=bfd_elf32_frv_vec
;;
- moxie-*-elf | moxie-*-rtems | moxie-*-uclinux)
+ moxie-*-elf | moxie-*-rtems* | moxie-*-uclinux)
targ_defvec=bfd_elf32_moxie_vec
;;
--- gdb-7.5.1/gdb/configure.tgt.orig 2013-02-14 12:01:25.000000000 +1100
+++ gdb-7.5.1/gdb/configure.tgt 2013-02-14 12:02:07.000000000 +1100
@@ -127,7 +127,7 @@
gdb_sim=../sim/frv/libsim.a
;;
-moxie-*-elf)
+moxie-*-elf | moxie-*-rtems*)
gdb_target_obs="moxie-tdep.o"
gdb_sim=../sim/moxie/libsim.a
;;

View File

@ -29,6 +29,15 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
%setup -q -D -T -n %{name}-%{version} -a0
cd binutils-%{binutils_version}
%{?patch0:%patch0 -p1}
%{?patch1:%patch1 -p1}
%{?patch2:%patch2 -p1}
%{?patch3:%patch3 -p1}
%{?patch4:%patch4 -p1}
%{?patch5:%patch5 -p1}
%{?patch6:%patch6 -p1}
%{?patch7:%patch7 -p1}
%{?patch8:%patch8 -p1}
%{?patch9:%patch9 -p1}
cd ..
%build

View File

@ -28,6 +28,15 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
%setup -q -c -T -n %{name}-%{version}
cd gdb-%{gdb_version}
%{?patch0:%patch0 -p1}
%{?patch1:%patch1 -p1}
%{?patch2:%patch2 -p1}
%{?patch3:%patch3 -p1}
%{?patch4:%patch4 -p1}
%{?patch5:%patch5 -p1}
%{?patch6:%patch6 -p1}
%{?patch7:%patch7 -p1}
%{?patch8:%patch8 -p1}
%{?patch9:%patch9 -p1}
cd ..
%build