mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
Add binutils support for snapshot builds.
This commit is contained in:
parent
9cce399150
commit
8f309979dc
@ -6,6 +6,14 @@
|
|||||||
|
|
||||||
%include %{_configdir}/checks.cfg
|
%include %{_configdir}/checks.cfg
|
||||||
|
|
||||||
|
#
|
||||||
|
# Select Snapshot Macro Maps
|
||||||
|
#
|
||||||
|
%select binutils-snapshot
|
||||||
|
|
||||||
|
#
|
||||||
|
# The description.
|
||||||
|
#
|
||||||
Name: %{_target}-binutils-%{binutils_version}-%{release}
|
Name: %{_target}-binutils-%{binutils_version}-%{release}
|
||||||
Summary: Binutils v%{binutils_version} for target %{_target} on host %{_host}
|
Summary: Binutils v%{binutils_version} for target %{_target} on host %{_host}
|
||||||
Version: %{binutils_version}
|
Version: %{binutils_version}
|
||||||
@ -30,8 +38,9 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
|
|||||||
# Prepare the source code.
|
# Prepare the source code.
|
||||||
#
|
#
|
||||||
%prep
|
%prep
|
||||||
|
source_dir_0="binutils-%{binutils_version}"
|
||||||
%setup -q -c -n %{name}-%{version}
|
%setup -q -c -n %{name}-%{version}
|
||||||
cd binutils-%{binutils_version}
|
cd ${source_dir_0}
|
||||||
%{?patch0:%patch0 %{?patch0_opts:%{patch0_opts}}%{!?patch0_opts:-p1}}
|
%{?patch0:%patch0 %{?patch0_opts:%{patch0_opts}}%{!?patch0_opts:-p1}}
|
||||||
%{?patch1:%patch1 %{?patch1_opts:%{patch1_opts}}%{!?patch1_opts:-p1}}
|
%{?patch1:%patch1 %{?patch1_opts:%{patch1_opts}}%{!?patch1_opts:-p1}}
|
||||||
%{?patch2:%patch2 %{?patch2_opts:%{patch2_opts}}%{!?patch2_opts:-p1}}
|
%{?patch2:%patch2 %{?patch2_opts:%{patch2_opts}}%{!?patch2_opts:-p1}}
|
||||||
@ -54,7 +63,7 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
|
|||||||
mkdir -p ${build_dir}
|
mkdir -p ${build_dir}
|
||||||
cd ${build_dir}
|
cd ${build_dir}
|
||||||
CFLAGS="$SB_OPT_FLAGS" \
|
CFLAGS="$SB_OPT_FLAGS" \
|
||||||
../binutils-%{binutils_version}/configure \
|
../${source_dir_0}/configure \
|
||||||
--build=%{_build} --host=%{_host} \
|
--build=%{_build} --host=%{_host} \
|
||||||
--target=%{_target} \
|
--target=%{_target} \
|
||||||
--verbose --disable-nls \
|
--verbose --disable-nls \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user