diff options
author | Chris Johns <chrisj@rtems.org> | 2013-02-14 16:14:38 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2013-02-14 16:14:38 +1100 |
commit | b1202fcbc423ab8d8179992d9e0504f434d69016 (patch) | |
tree | 3fb811149d29ddec2b73789484955ba63bfa2dce | |
parent | Add Microblaze. (diff) | |
download | rtems-source-builder-b1202fcbc423ab8d8179992d9e0504f434d69016.tar.bz2 |
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.
-rw-r--r-- | rtems/config/4.11/rtems-moxie.bset | 1 | ||||
-rw-r--r-- | source-builder/config/dtc-1-1.cfg | 54 | ||||
-rw-r--r-- | source-builder/config/dtc-1.2.0.cfg | 16 |
3 files changed, 71 insertions, 0 deletions
diff --git a/rtems/config/4.11/rtems-moxie.bset b/rtems/config/4.11/rtems-moxie.bset index d7b2543..9fb1315 100644 --- a/rtems/config/4.11/rtems-moxie.bset +++ b/rtems/config/4.11/rtems-moxie.bset @@ -15,6 +15,7 @@ # Tools configuration. # expat-2.1.0-1 +dtc-1.2.0 tools/rtems-binutils-2.22-1 tools/rtems-gcc-4.7.2-newlib-1.20.0-1 tools/rtems-gdb-7.5.1-1 diff --git a/source-builder/config/dtc-1-1.cfg b/source-builder/config/dtc-1-1.cfg new file mode 100644 index 0000000..6894243 --- /dev/null +++ b/source-builder/config/dtc-1-1.cfg @@ -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 .. diff --git a/source-builder/config/dtc-1.2.0.cfg b/source-builder/config/dtc-1.2.0.cfg new file mode 100644 index 0000000..8116b1e --- /dev/null +++ b/source-builder/config/dtc-1.2.0.cfg @@ -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 |