source: rtems-source-builder/source-builder/config/dtc-1-1.cfg @ e7cbf74

4.104.114.95
Last change on this file since e7cbf74 was e7cbf74, checked in by Chris Johns <chrisj@…>, on 12/12/14 at 00:21:29

rtems4.11: Update DTC for Moxie to it's new home path.

Add a suitable hash for the build to proceed.

Closes #2202.

  • Property mode set to 100644
File size: 953 bytes
Line 
1#
2# DTC 1.x.x Version 1.
3#
4# This configuration file configure's, make's and install's DTC.
5#
6
7%if %{release} == %{nil}
8%define release 1
9%endif
10
11Name:      dtc-%{dtc_version}-%{_host}-%{release}
12Summary:   Device Tree Compiler v%{dtc_version} for target %{_target} on host %{_host}
13Version:   %{dtc_version}
14Release:   %{release}
15URL:       http://www.jdl.com/software/
16BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
17
18#
19# Source
20#
21%source set dtc https://www.kernel.org/pub/software/utils/dtc/dtc-%{dtc_version}.tar.gz
22
23#
24# Prepare the source code.
25#
26%prep
27  build_top=$(pwd)
28
29  %source setup dtc -q -n dtc-%{dtc_version}
30  %patch setup dtc -p1
31
32  cd ${build_top}
33
34%build
35  build_top=$(pwd)
36
37  cd dtc-%{dtc_version}
38
39  %{build_build_flags}
40
41  %{__make} PREFIX=%{_prefix}
42
43  cd ${build_top}
44
45%install
46  build_top=$(pwd)
47
48  rm -rf $SB_BUILD_ROOT
49
50  cd dtc-%{dtc_version}
51  %{__make} DESTDIR=$SB_BUILD_ROOT PREFIX=%{_prefix} install
52
53  cd ${build_top}
Note: See TracBrowser for help on using the repository browser.