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?
I tried 3 times with the same result. But when I redownloaded android_M6.0.1_1.0.0_core_source.tar.gz it worked.
Thanks for confirmation that I'm the problem :smileyhappy:, not source code.
I follow the Android User's Guide and build the M6.0.1_1.0.0 without any error. You may try to remove all the things and build it again.