mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00

Remove the numbered source and patches and automatically manage sources and patches. This removes the overhead in maintaining large collections of patches.
54 lines
936 B
INI
54 lines
936 B
INI
#
|
|
# 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
|
|
#
|
|
%source set dtc http://www.jdl.com/software/dtc-v%{dtc_version}.tgz
|
|
|
|
#
|
|
# Prepare the source code.
|
|
#
|
|
%prep
|
|
build_top=$(pwd)
|
|
|
|
%source setup dtc -q -n dtc-v%{dtc_version}
|
|
%patch setup dtc -p1
|
|
|
|
cd ${build_top}
|
|
|
|
%build
|
|
build_top=$(pwd)
|
|
|
|
cd dtc-v%{dtc_version}
|
|
|
|
%{build_build_flags}
|
|
|
|
%{__make} PREFIX=%{_prefix}
|
|
|
|
cd ${build_top}
|
|
|
|
%install
|
|
build_top=$(pwd)
|
|
|
|
rm -rf $SB_BUILD_ROOT
|
|
|
|
cd dtc-v%{dtc_version}
|
|
%{__make} DESTDIR=$SB_BUILD_ROOT PREFIX=%{_prefix} install
|
|
|
|
cd ${build_top}
|