Linux 下如何 做patch 和打patch

时间:2021-11-18 01:05:59

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 合并所有补丁