NOTE: This step is required if building any of the tools IF they have a patch currently required and you are building the tools without using RPM. is NOT required if using the procedure described in Using RPM to Build Tools. This section describes the process of applying the RTEMS patches to any of the tools.
If a patch is required for a particular tool source tree, then you will perform a command similar to the following to apply the patch. In this example, <TOOL> should be replaced by the appropriate tool directory and <TOOL_PATCH> with the appropriate patch file.
cd tools/<TOOL> cat ../../archive/<TOOL_PATCH> | patch -p1
NOTE: If you add the --dry-run
option to the patch
command
in the above commands, it will attempt to apply the patch and report
any issues without actually modifying any files.
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/<TOOL> 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-2008 OAR Corporation