[ILUG] Patching a kernel
Paul Jakma
paulj at alphyra.ie
Tue Nov 13 13:42:36 GMT 2001
On Tue, 13 Nov 2001, Richard Eibrand wrote:
> - Apply the patch, but immediately after wards apply the patch for
> 2.4.12...?
yep.
apply but dont use.
> What does tha mean?
means the relative paths are wrong.
run patch from inside the linux src dir, and give it the -p1
parameter. ie:
cd .../src/linux
foocat patchfile.foo | patch -p1 --dry-run
if no errors, run previous command again, but without the --dry-run
parameter.
even easier, if you look in .../src/linux/scripts there's a script
called "patch-kernel", which will do all the hard work for you. just
point it at your linux tree, and at a directory containing your
patches. see the top of the script for precise usage instructions.
--paulj
More information about the ILUG
mailing list