$ ls
linux-2.6.26 patch-2.6.26.1 patch-2.6.26.1.bz2
$ linux-2.6.26/scripts/patch-kernel linux-2.6.26 patch-2.6.26.1
Current kernel version is 2.6.26 ( Rotary Wombat)
cannot find patch file: patch-2.6.27
$
can it be done by patch command on command line other than `patch-
kernel'. linux-2.6.26/README says patch `2.6.x.y' can be directly
applied to kernel `2.6.x':
" Unlike patches for the 2.6.x kernels, patches for the 2.6.x.y
kernels
(also known as the -stable kernels) are not incremental but instead
apply
directly to the base 2.6.x kernel.
"
I tried it, and it works. But don't know why patch-kernel can't do the
patching.
$ pwd
/home/jhl/working/tmp/linux-2.6.26
$ bzip2 -dc ../patch-2.6.26.1.bz2 | patch -p1
..
$ bzip2 -dc ../patch-2.6.26.1.bz2 | patch -p1 -R
..
$
The patch-kernel script is not the optimal tool for that.
You'd normally just do:
bzcat patch-2.6.26.1.bz2 | ( cd linux-2.6.26 ; patch -p1 )
If you absolutely want to do it with patch-kernel, have a
look at the usage text at the beginning of the script.
Hint: the second argument is "patchdir", not "patchfile".
HTH
T.