Linux 下如何 做patch 和打patch

1. 制作patch

diff -crN Component_org Component > 01_Component_xxx.patch

2. 打patch

patch -pl < ./01_Component_xxx.patch

3. 使用quilt 管理patch

# tar xvjf prj-0.1-patches.tar.bz2 Component/
# quilt push -a  <== 打series所有补丁

# quilt pop -a <== 退出补丁

# quilt diff > xxx.patch 合并所有补丁

你可能感兴趣的:(linux)