Re: patching the kernel
scott thomason (scott-kernel@thomasons.org)
Sun, 9 Mar 2003 22:41:03 -0600
On Sunday 09 March 2003 04:11 pm, joe briggs wrote:
> My apologies for this question that is so basic to all of you,
> but can any of you please point me toward a howto or
> instructions for exactly how to 'patch a kernel'? For
> example, at kernel.org, the latest stable kernel is 2.4.20,
> and is actually a patch. I currently use 2.4.19 under Debian
> and routinely rebuild & install it no problem. If I download
> a kernel 'patch', do I apply it to the entire directory, or
> the compiled kernel, etc.? Thanks so much.
I usually use these patch commands, as they make finding any
errors so much easier:
bunzip patchfile.bz2 ## or...
gunzip patchfile.gz
cd linux-2.4.x
## To see if the patch is actually going to work
patch -p1 --batch --quiet --dry-run < ../patchfile
## To actually apply the patch
patch -p1 --batch --quiet < ../patchfile
---scott
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/