Add support for building rtems-or1k tool-chain - fixed

Configuration files get the following releases:
- binutils-2.24
- newlib-2.1.0
- gcc-4.8.2
- gdb-7.7

Patches to tool-chain are mix of OpenRISC original patches and other
additions to build the previous releases for RTEMS.
This commit is contained in:
Hesham ALMatary 2014-05-26 03:40:22 +02:00 committed by Chris Johns
parent 396db466ac
commit 3a0e5615fa
2 changed files with 54 additions and 1 deletions

View File

@ -0,0 +1,49 @@
#
# Tools Set for RTEMS or1k 4.11 Stable
#
%define release 1
%define rtems_arch or1k
#
# The RTEMS 4.11 BSP to build and test
#
%define rtems_bsps all
#
# The RTEMS 4.11 base defines.
#
%include rtems-4.11-base.bset
#
# Tools configuration.
#
4.11/rtems-autotools
devel/expat-2.1.0-1
tools/rtems-binutils-2.24-1
tools/rtems-gcc-4.8.2-newlib-2.1.0-1
tools/rtems-gdb-7.7-1
#
# or1k specific patches
#
#binutils
%patch add binutils -p1 https://raw.githubusercontent.com/heshamelmatary/or1k-rtems/master/patches/binutils-2.24-or1k-rtems.diff
#newlib
%patch add newlib -p1 https://raw.githubusercontent.com/heshamelmatary/or1k-rtems/master/patches/newlib-cvs-or1k-rtems-29-4-2014.diff
#gcc
%patch add gcc -p1 https://raw.githubusercontent.com/heshamelmatary/or1k-rtems/master/patches/gcc-4.8.2-or1k-rtems-29-4-2014.diff
#gdb
%patch add gdb -p1 https://raw.githubusercontent.com/heshamelmatary/or1k-rtems/master/patches/gdb-7.7-or1k-rtems.diff
#
# or1k specific configurations
#
#gdb
%define gdb-disable-sim 1

View File

@ -4,6 +4,10 @@
# This configuration file configure's, make's and install's gdb.
#
%if %{gdb-disable-sim} == %{nil}
%define gdb-disable-sim 0
%endif
%include %{_configdir}/checks.cfg
#
@ -73,7 +77,7 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
--without-included-gettext \
--disable-win32-registry \
--disable-werror \
--enable-sim \
%{!?gdb-disable-sim:--enable-sim}%{?gdb-disable-sim:--disable-sim} \
--without-zlib \
--with-expat \
%{!?without_python:--with-python} \