diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-04-12 06:37:51 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-04-12 06:37:51 +0000 |
commit | b64edb5b07c6f65a84982b260b1b2a1cb7a4e917 (patch) | |
tree | 3ef5c870e5599f51ee376bfba2e120ddffcfff92 /scripts | |
parent | 2005-04-12 Ralf Corsepius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-b64edb5b07c6f65a84982b260b1b2a1cb7a4e917.tar.bz2 |
Apply patches in tool subdirs.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/binutils/binutils.add | 6 | ||||
-rw-r--r-- | scripts/gcc3newlib/gccnewlib.add | 9 | ||||
-rw-r--r-- | scripts/gdb/gdb.add | 1 |
3 files changed, 13 insertions, 3 deletions
diff --git a/scripts/binutils/binutils.add b/scripts/binutils/binutils.add index 00e23bcd28..8ccab2eaff 100644 --- a/scripts/binutils/binutils.add +++ b/scripts/binutils/binutils.add @@ -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 diff --git a/scripts/gcc3newlib/gccnewlib.add b/scripts/gcc3newlib/gccnewlib.add index ccae5ffcb7..21af5572ca 100644 --- a/scripts/gcc3newlib/gccnewlib.add +++ b/scripts/gcc3newlib/gccnewlib.add @@ -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@)/' \ diff --git a/scripts/gdb/gdb.add b/scripts/gdb/gdb.add index b25edcc644..2f571ea1e6 100644 --- a/scripts/gdb/gdb.add +++ b/scripts/gdb/gdb.add @@ -64,6 +64,7 @@ cd gdb-%{gdb_version} %{?PATCH0:%patch0 -p1} %{?PATCH1:%patch1 -p1} %{?PATCH2:%patch2 -p1} +cd .. %build %if "%_sim" == "1" |