[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [linux-tr] Compiling w/o recompiling the kernel. *newbie* -Reply
The -p option is the option you probably should use, this is used to
set the base directory from which you apply your patches, from the
error message it looks like you are trying to patch into the wrong
( I got this before ).
When all else fails read the man pages.....
--- email@example.com wrote:
> Since I'd like to upgrade the kernel anyway, any
> ideas why 'patch <
> Makefille.diff' would choke? I get the error
> [root@sjfox net]# patch < Makefile.diff
> can't find file to patch at input line 3
> Perhaps you should have used the -p or --strip
> The text leading up to this was:
> |--- Makefile.orig Tue Apr 27 09:58:01 1999
> |+++ Makefile.mik Tue Apr 27 10:00:39 1999
> File to patch:
> I'm running it in the <linux source>/drivers/net
> directory. Are there some
> options I'm missing on the patch command?
> Steve Fox 8?)
> http://w3.rchland.ibm.com/~sjfox (IBM Intranet)
> http://pcxtreme.org (External)
> "Mike Phillips" <firstname.lastname@example.org> on 05/11/99
> 01:24:31 PM
> Please respond to email@example.com
> To: firstname.lastname@example.org
> cc: (bcc: Steve Fox/Rochester/IBM)
> Subject: [linux-tr] Compiling w/o recompiling the
> kernel. *newbie* -Reply
> I use the line below to compile the driver:
> gcc -D__KERNEL__ -DMODULE -Wall -Wstrict-prototypes
> -I/usr/src/linux/include -O2
> -m486 -c olympic.c -o olympic.o
> But this won't install the module in the correct
> place, won't set up module
> aliases, etc.
> Although RH6.0 is kernel 2.2.5 (I think) the patches
> should definately work.
> They need to be applied from the
> /usr/src/linux/drivers/net directory. I would
> recommend getting the driver compiled in at least
> once as a module. This helps
> to set up system maps and symbols.
> In fact I would recommend getting a copy of 2.2.7
> and using that instead. You
> *will* need to re-compile your kernel at some point,
> might as well start
> learning howto now. (and use make xconfig - it is by
> far the easiest way.)
Do You Yahoo!?
Free instant messaging and more at http://messenger.yahoo.com