Git has many advantages over SVN, so I will not talk about it here. Here we mainly discuss the patch method.
1. Because someone else's comparison is usually used during the patch, you want to directly input the file to your own.
2. Use a web git server to view others' submission records:
For example:
Diff -- git a/mediatek/custom/common/hal/audioflinger/audio_customization_common.h B/mediatek/custom/common/hal/audioflinger/audio_customization_common.h
Index 3c6acb4 .. e8b83c7 100755 (executable)
--- A/mediatek/custom/common/hal/audioflinger/audio_customization_common.h
++ B/mediatek/custom/common/hal/audioflinger/audio_customization_common.h
@-25, 7 + 25, 7 @@
* Define this will enable audio compensation filter for loudspeaker
* Please see ACF document for detail.
**************************************** *************/
-// # Define enable_audio_compensation_filter
+ # Define enable_audio_compensation_filter
/*************************************** ************
* Define this will enable DRC for loudspeaker.
3. Copy the above information and save it to a file. You can name it by yourself. It is called patch.
4. Copy the patch to the project root directory. My root directory is/home/stonechen/SVN/aw598_0728/mt6572_cwet_kk.
5. Key: Execute patch-P1 <patch in the root directory.
5. If the patch is successful, the following message is displayed: patching file mediatek/custom/common/hal/audioflinger/audio_customization_common.h --------- success. Congratulations, you have successfully installed the patch.
This method is suitable for beginners.