John Smith John Smith - 10 months ago 97
Android Question

Build kernel with AOSP

I would like to build AOSP code while integrating the kernel as well. I followed these instructions:

but they seem to be specific to hammerhead. How would I do a full AOSP build with my custom msm kernel source directory (using flo)?


Answer Source

I think you can follow the official guide to build your custom kernel, then move the binary file(zImage) into device/lge/mako-kernel/(this path is for Nexus 4) in android source code. This will replace the default kernel file.
Of course you need to change the path which is depends on your device.
Finally, build AOSP as usual.