This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Creating Android Patch file

Hi,

We downloaded and installed TI-Android-ICS-4.0.3-DevKit-EVM-SK-3.0.1.bin.
We made our modifications for our Custom Am335x board in order to run Android ICS.
When we want to create a patch file using command below,

diff -Nur sourcefolder changedfolder >changes.patch

it gives below outputs,i just take a snapshot.

diff: TI-Android-ICS-4.0.3-DevKit-EVM-SK-3.0.1/abi/cpp/.git/svn: No such file or directory
diff: rowboat/abi/cpp/.git/svn: No such file or directory
diff: TI-Android-ICS-4.0.3-DevKit-EVM-SK-3.0.1/bionic/.git/svn: No such file or directory
diff: rowboat/bionic/.git/svn: No such file or directory

How can we creat a clean patch file? We are not familiar with Git or SVN.
If it is possible,can you explain step by step?

Best Regards,

FERHAT

  • If you are using GIT you can run next commands in order to create a patch

    # cd <to your modified repository>

    # git commit -a

    # git format-patch -o output_directory -1

    then to apply the patch you can do

    # cd <to your modified repository>

    # git am my_generate_patch.patch

    Android source code is divided in repositories, for each one that was modified you need to create a patch.