mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-25 22:07:15 +00:00
Apply patches in tool subdirs.
This commit is contained in:
@@ -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@)/' \
|
||||
|
||||
Reference in New Issue
Block a user