forked from Imagelibrary/rtems
Apply patches in tool subdirs.
This commit is contained in:
@@ -39,7 +39,11 @@ Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_version}@binutil
|
||||
|
||||
%prep
|
||||
%setup -c -n %{name}-%{version}
|
||||
%{?PATCH0:%patch0 -p0}
|
||||
|
||||
cd binutils-%{version}
|
||||
%{?PATCH0:%patch0 -p1}
|
||||
cd ..
|
||||
|
||||
test -d build || mkdir build
|
||||
|
||||
%build
|
||||
|
||||
@@ -159,8 +159,13 @@ This is gcc's and newlib C Library's sources with patches for RTEMS.
|
||||
%prep
|
||||
# untar the sources inside %{gcc_target}-gcc-newlib
|
||||
%setup -c -T -n %{name}-%{version} -a0 -a1
|
||||
%{?PATCH0:%patch0 -p0}
|
||||
%{?PATCH1:%patch1 -p0}
|
||||
|
||||
cd gcc-%{gcc_version}
|
||||
%{?PATCH0:%patch0 -p1}
|
||||
cd ..
|
||||
cd newlib-%{newlib_version}
|
||||
%{?PATCH1:%patch1 -p1}
|
||||
cd ..
|
||||
|
||||
cd gcc-%{gcc_version}
|
||||
sed -e 's/\(version_string = \"[^\"]*\)/\1 (RTEMS gcc-%{gcc_version}-@gcc_patch_version@\/newlib-%{newlib_version}-@newlib_patch_version@-@Release@)/' \
|
||||
|
||||
@@ -64,6 +64,7 @@ cd gdb-%{gdb_version}
|
||||
%{?PATCH0:%patch0 -p1}
|
||||
%{?PATCH1:%patch1 -p1}
|
||||
%{?PATCH2:%patch2 -p1}
|
||||
cd ..
|
||||
|
||||
%build
|
||||
%if "%_sim" == "1"
|
||||
|
||||
Reference in New Issue
Block a user