First page Back Continue Last page Overview Graphics
How to create Linux patches
The old school way
- Before making your changes, make sure you have two kernel trees
cp -a linux-2.6.37/ linux-2.6.37-patch/
- Make your changes in linux-2.6.37-patch/
- Run make distclean to keep only source files.
- Create a patch file:
diff -Nur linux-2.6.37/ \
linux-2.6.37-patch/ > patchfile
- Not practical, does not scale to multiple patches
The new school ways
- Use quilt (tool to manage a stack of patches)
- Use git (revision control system used by the Linux kernel developers)