Moxie GDB DTC support added

The Moxie GDB simulator uses the DTC (device tree compiler) to
build a device tree. This is added and built before the gdb.
This commit is contained in:
Chris Johns 2013-02-14 16:14:38 +11:00
parent a25a19d730
commit b1202fcbc4
3 changed files with 71 additions and 0 deletions

View File

@ -15,6 +15,7 @@
# Tools configuration. # Tools configuration.
# #
expat-2.1.0-1 expat-2.1.0-1
dtc-1.2.0
tools/rtems-binutils-2.22-1 tools/rtems-binutils-2.22-1
tools/rtems-gcc-4.7.2-newlib-1.20.0-1 tools/rtems-gcc-4.7.2-newlib-1.20.0-1
tools/rtems-gdb-7.5.1-1 tools/rtems-gdb-7.5.1-1

View File

@ -0,0 +1,54 @@
#
# DTC 1.x.x Version 1.
#
# This configuration file configure's, make's and install's DTC.
#
%if %{release} == %{nil}
%define release 1
%endif
Name: dtc-%{dtc_version}-%{_host}-%{release}
Summary: Device Tree Compiler v%{dtc_version} for target %{_target} on host %{_host}
Version: %{dtc_version}
Release: %{release}
URL: http://www.jdl.com/software/
BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
#
# Source
#
Source0: http://www.jdl.com/software/dtc-v%{dtc_version}.tgz
#
# Prepare the source code.
#
%prep
%setup -q -c -T -n %{name}-%{version}
cd dtc-v%{dtc_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}
cd ..
%build
export PATH="%{_bindir}:${PATH}"
cd dtc-v%{dtc_version}
%{__make} PREFIX=%{_prefix}
cd ..
%install
export PATH="%{_bindir}:${PATH}"
rm -rf $SB_BUILD_ROOT
cd dtc-v%{dtc_version}
%{__make} DESTDIR=$SB_BUILD_ROOT PREFIX=%{_prefix} install
cd ..

View File

@ -0,0 +1,16 @@
#
# DTC (Device Tree Compiler) 1.3.0
#
%if %{release} == %{nil}
%define release 1
%endif
%include %{_configdir}/base.cfg
%define dtc_version 1.2.0
#
# The DTC build instructions. We use 1.x.x Release 1.
#
%include %{_configdir}/dtc-1-1.cfg