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

Re: How to make a kernel patch



On Fri, 03 Jan 2003 22:22:53 +0000
D Qi <dqi@freenet.co.uk> wrote:

>Hi, Fellows,
>
>I made some changes on the kernel source tree (2.4.10) and want to make 
>a patch file for it. So I can apply the changes later on rather than 
>make an archive for whole thing. But, how can I do it?

Really simple.
Rename your kernel source tree (for example linux-2.4.10-dqi) then 

cd linux-2.4.10
make distclean
cd ../linux-2.4.10-dqi
make distclean
cd ..
diff -Naur linux-2.4.10 linux-2.4.10-dqi > patch
(optional) gzip patch

..that's all!

Regards,

Angelo Dell'Aera 'buffer' 
<buffer@users.sourceforge.net>

PGP information in e-mail header

PGP signature