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 | |
---|
11 | Name: dtc-%{dtc_version}-%{_host}-%{release} |
---|
12 | Summary: Device Tree Compiler v%{dtc_version} for target %{_target} on host %{_host} |
---|
13 | Version: %{dtc_version} |
---|
14 | Release: %{release} |
---|
15 | URL: http://www.jdl.com/software/ |
---|
16 | BuildRoot: %{_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.