Apply patches in tool subdirs.

This commit is contained in:
Ralf Corsepius
2005-04-12 06:37:51 +00:00
parent 6c8b7dba43
commit b64edb5b07
3 changed files with 13 additions and 3 deletions

View File

@@ -39,7 +39,11 @@ Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_version}@binutil
%prep %prep
%setup -c -n %{name}-%{version} %setup -c -n %{name}-%{version}
%{?PATCH0:%patch0 -p0}
cd binutils-%{version}
%{?PATCH0:%patch0 -p1}
cd ..
test -d build || mkdir build test -d build || mkdir build
%build %build

View File

@@ -159,8 +159,13 @@ This is gcc's and newlib C Library's sources with patches for RTEMS.
%prep %prep
# untar the sources inside %{gcc_target}-gcc-newlib # untar the sources inside %{gcc_target}-gcc-newlib
%setup -c -T -n %{name}-%{version} -a0 -a1 %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} cd gcc-%{gcc_version}
sed -e 's/\(version_string = \"[^\"]*\)/\1 (RTEMS gcc-%{gcc_version}-@gcc_patch_version@\/newlib-%{newlib_version}-@newlib_patch_version@-@Release@)/' \ sed -e 's/\(version_string = \"[^\"]*\)/\1 (RTEMS gcc-%{gcc_version}-@gcc_patch_version@\/newlib-%{newlib_version}-@newlib_patch_version@-@Release@)/' \

View File

@@ -64,6 +64,7 @@ cd gdb-%{gdb_version}
%{?PATCH0:%patch0 -p1} %{?PATCH0:%patch0 -p1}
%{?PATCH1:%patch1 -p1} %{?PATCH1:%patch1 -p1}
%{?PATCH2:%patch2 -p1} %{?PATCH2:%patch2 -p1}
cd ..
%build %build
%if "%_sim" == "1" %if "%_sim" == "1"