In this third post, we shall look at the patching of the kernel sources for cm-11.
The kernel sources is located at /root/android/system/kernel// which in my case is root/android/system/kernel/htc/endeavoru.
Next we change to kernel source tree root location and get patches from the following
Now, we patch it.
Now we download the kernel patch from pelya repository at https://github.com/pelya/android-keyboard-gadget/blob/master/kernel-3.1.patch
Next we patch it as shown below:-
As we can see the patching worked apart from android.c in drivers/usb/gadget . Upon looking at the code, it became clear that it could be manually patched in android.c at line 1704 as shown below:-
Now that we have patched the kernel, we need to apply the eventdrc patch in /root/android/system/system/core/rootdir as shown below:-
Now head to the android/system and type ‘make clean’ to clean the build system. Now rebuilt the rom, as per the previous posts.