This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: patches for c4x


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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]