NOTE: This step is required if building BINUTILS, GCC, and NEWLIB using the procedures described in Using configure and make. It is NOT required if using the procedure described in Using RPM to Build BINUTILS GCC and NEWLIB.
This section describes the process of applying the RTEMS patches to GCC, NEWLIB, and BINUTILS.
Apply the patch using the following command sequence:
cd tools/gcc-4.1.1 cat ../../archive/gcc-4.1.1-rtems-20060909.diff | \ patch -p1
If the patch was compressed with the gzip
program, it will
have a suffix of .gz
and you should use zcat
instead
of cat
as shown above. If the patch was compressed with
the gzip
program, it will have a suffix of .bz2
and
you should use bzcat
instead of cat
as shown above.
Check to see if any of these patches have been rejected using the following sequence:
cd tools/gcc-4.1.1 find . -name "*.rej" -print
If any files are found with the .rej extension, a patch has been rejected. This should not happen with a good patch file which is properly applied.
Apply the patch using the following command sequence:
cd tools/binutils-2.17 cat ../../archive/binutils-2.17-rtems4.8-20061021.diff | \ patch -p1
If the patch was compressed with the gzip
program, it will
have a suffix of .gz
and you should use zcat
instead
of cat
as shown above. If the patch was compressed with
the gzip
program, it will have a suffix of .bz2
and
you should use bzcat
instead of cat
as shown above.
Check to see if any of these patches have been rejected using the following sequence:
cd tools/binutils-2.17 find . -name "*.rej" -print
If any files are found with the .rej extension, a patch has been rejected. This should not happen with a good patch file which is properly applied.
Apply the patch using the following command sequence:
cd tools/newlib-1.15.0 cat ../../archive/newlib-1.15.0-rtems4.8-20061027.diff | \ patch -p1
If the patch was compressed with the gzip
program, it will
have a suffix of .gz
and you should use zcat
instead
of cat
as shown above. If the patch was compressed with
the gzip
program, it will have a suffix of .bz2
and
you should use bzcat
instead of cat
as shown above.
Check to see if any of these patches have been rejected using the following sequence:
cd tools/newlib-1.15.0 find . -name "*.rej" -print
If any files are found with the .rej extension, a patch has been rejected. This should not happen with a good patch file which is properly applied.
Copyright © 1988-2004 OAR Corporation