blob: d42e91e6967ba8c491b2a3060c442d8658ab120a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
#
# 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: https://www.devicetree.org/
#
# Source
#
%source set dtc https://www.kernel.org/pub/software/utils/dtc/dtc-%{dtc_version}.tar.gz
#
# Prepare the source code.
#
%prep
build_top=$(pwd)
%source setup dtc -q -n dtc-%{dtc_version}
%patch setup dtc -p1
cd ${build_top}
%build
build_top=$(pwd)
cd dtc-%{dtc_version}
%{build_build_flags}
%{__make} PREFIX=%{_prefix} WARNINGS=
cd ${build_top}
%install
build_top=$(pwd)
rm -rf $SB_BUILD_ROOT
cd dtc-%{dtc_version}
%{__make} DESTDIR=$SB_BUILD_ROOT PREFIX=%{_prefix} WARNINGS= install
cd ${build_top}
|