This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: patches for c4x
- From: Nick Clifton <nickc at cambridge dot redhat dot com>
- To: Danish Samad <danishsamad at yahoo dot com>
- Cc: binutils at sources dot redhat dot com
- Date: 02 Jan 2002 15:12:40 +0000
- Subject: Re: patches for c4x
- References: <20020102141330.66134.qmail@web13202.mail.yahoo.com>
Hi Danish,
> Iam facing problems applying c4x patches to binutils. I have
> downloaded binutils-2.11.2.tar.gz and
> binutils-2_11_1-c4x-20010623.patch. When I give the command
> "patch binutils-2.11.2.tar.gz
> binutils-2_11_1-c4x-20010623.patch"
> it generates some files and asks for a file to patch.
> what file do I have to enter here. infact is this how you add a
> patch? this is my first attempt so please help me out
Did you uncompress and de-tar the binutils archive ? Patch does not
work on compressed archives...
The filename to enter is the name of the file that the patch should be
applied to. Since there are multiple files that need to be patched by
the binutils_2_11_1-c4x-20010623.patch you will have answer this
question lots of times.
To avoid all of this, try the following procedure:
1. Create a source directory. (eg 'mkdir src')
2. Go into this source directory. (eg 'cd src')
3. Uncompress the sources. (eg 'tar xvfz binutils-2.11.2.tar.gz')
4. Load the patch file into ypur favorite editor and split it up
into multiple files. Put all the patches to files in the "bfd"
directory into one file, all the patches to files in the "ld"
directory in another file, and so on.
5. For each of the new patch files that you have created go to the
appropriate source directory and run the patch program there.
(eg 'cd bfd; patch -i c4x.patch.bfd')
Now proceed with step 3 on the c4x binutils web site.
Cheers
Nick