summaryrefslogtreecommitdiffstats
path: root/source-builder/config/dtc-1-1.cfg
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2013-02-14 16:14:38 +1100
committerChris Johns <chrisj@rtems.org>2013-02-14 16:14:38 +1100
commitb1202fcbc423ab8d8179992d9e0504f434d69016 (patch)
tree3fb811149d29ddec2b73789484955ba63bfa2dce /source-builder/config/dtc-1-1.cfg
parentAdd Microblaze. (diff)
downloadrtems-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.
Diffstat (limited to 'source-builder/config/dtc-1-1.cfg')
-rw-r--r--source-builder/config/dtc-1-1.cfg54
1 files changed, 54 insertions, 0 deletions
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 ..