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

4.104.114.95
Last change on this file since 9a15c40 was 9a15c40, checked in by Chris Johns <chrisj@…>, on 05/13/14 at 13:26:09

sb: Implement %source and %patch to manage source and patches.

Remove the numbered source and patches and automatically manage
sources and patches. This removes the overhead in maintaining large
collections of patches.

  • Property mode set to 100644
File size: 936 bytes
RevLine 
[b1202fc]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#
[9a15c40]21%source set dtc http://www.jdl.com/software/dtc-v%{dtc_version}.tgz
[b1202fc]22
23#
24# Prepare the source code.
25#
26%prep
[b8b0f44]27  build_top=$(pwd)
28
[9a15c40]29  %source setup dtc -q -n dtc-v%{dtc_version}
30  %patch setup dtc -p1
[b8b0f44]31
32  cd ${build_top}
[b1202fc]33
34%build
[b8b0f44]35  build_top=$(pwd)
36
[b1202fc]37  cd dtc-v%{dtc_version}
38
[2626dba]39  %{build_build_flags}
[db65c6a]40
[b1202fc]41  %{__make} PREFIX=%{_prefix}
42
[b8b0f44]43  cd ${build_top}
[b1202fc]44
45%install
[b8b0f44]46  build_top=$(pwd)
47
[b1202fc]48  rm -rf $SB_BUILD_ROOT
49
50  cd dtc-v%{dtc_version}
51  %{__make} DESTDIR=$SB_BUILD_ROOT PREFIX=%{_prefix} install
52
[b8b0f44]53  cd ${build_top}
Note: See TracBrowser for help on using the repository browser.