Tuesday, August 21, 2007

Patching a Linux Kernel
I know that this might be easy, but, since I do not use this frequently, I tend to forget how to patch an existing kernel. :)


cd [kernel-directory]
cat [patch file] | patch -p1


For example:
cd /usr/src/linux-2.6.11
cat linux-2.6.11.patch | patch -p1

(in this case, linux-2.6.11.patch is inside /usr/src/linux-2.6.11 directory also)

No comments: