I got the following error when applying the patch in section 5.2 of AN12195.
$ git apply 0002-Add-remote-core-share-memory-driver.patch
0002-Add-remote-core-share-memory-driver.patch:1277: trailing whitespace.
error: patch failed: drivers/mxc/Makefile:10
error: drivers/mxc/Makefile: patch does not apply
$
The target Linux version is L4.9.51.
I used the file attached to AN12195SW for the patch.
已解决! 转到解答。
Troubleshoot Git Patch Error: patch does not apply
This error occurs when Git can not determine how to apply your patch. Below is a command you can use to fix this error.
git apply --reject --whitespace=fix mychanges.patch
Note the --reject argument. We use it to instruct Git to patch the files it can and create a .rej file containing what it cannot figure out how to patch.
Then, you can manually resolve the conflicts. Alternatively, you can use the command below.
git apply --ignore-space-change --ignore-whitespace mypatch.patch
Regards,
Rachel Gomez
Hi Joanxie,
thank you for your reply.
Build passed with imx_4.9.88_2.0.0_ga.
In AN12195, chapter 5.1.1, the linux-imx branch is now imx_4.9.51_imx8m_ga, but is it correct imx_4.9.88_2.0.0_ga?
Best Regards