I'm following Android_User's_Guide.pdf (Rev. M6.0.1_1.0.0, 04/2016) and I stuck at section 3.2 Patch core features code package.
When I execute:
$ c_patch /opt/android_M6.0.1_1.0.0_core_source/code/M6.0.1_1.0.0/ imx_M6.0.1_1.0.0
I got a lot of warnings, but eventualy there is an error message and it stops:
error: patch failed: libcopybit/copybit.cpp:224
error: libcopybit/copybit.cpp: patch does not apply
Error! Fail to apply patch from /opt/android_M6.0.1_1.0.0_core_source/code/M6.0.1_1.0.0/platform/hardware/imx.git to /home/user/workspace/myandroid/hardware/imx. Stop
How to fix it?