[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: kernel patch question



Hello Richard!

On Sun, Nov 16, 2003 at 06:45:13PM +0000, Richard Kimber wrote:
http://newbiedoc.sourceforge.net/system/kernel-pkg.html
says that after the kernel is built, make-kpkg reverses the patches you
applied, so that each new build starts with an unpatched source tree.

However, whenever I try to re-build a kernel, the patch application always
fails the second time round (i.e. it works from a newly installed
tree but not if make-kpkg has been run already) with the message
" ... patch for 2.4.22 does not apply cleanly"

Is the above document correct? How can I tell whether the patches have in
fact been removed properly? And how should I proceed?  Do I really have to
delete the tree and start over again?

Patches won't be automatically uninstalled, quoting 'man make-kpkg':
|Please note that the patches are UN-installed from the source when you
|run the clean target.  This cleanup can be prevented by setting the
|environment variable NO_UNPATCH_BY_DEFAULT

So don't forget to run 'make-kpkg clean' before attempting a
recompile, which incidentally is just what '5.6. Making the kernel
image' from above doc recommends.

HTH,
Flo

Attachment: pgp5uil936gXN.pgp
Description: PGP signature


Reply to: