I am currently working on the Linux kernel for an Android phone. My workflow is:
- Make changes to kernel code
- Build with
make bootimage
- Flash with
fastboot flash boot
This works fine. However building takes unnecessary long because make bootimage
first goes through the entire tree and includes all Android.mk
files. This takes longer than actually compiling the kernel and creating a boot image. Including these files should not be necessary since there are no changes to them. To decrease turnaround time in my workflow, I would like to speed up the build step.
When building other other projects, there are ways to to not build dependencies and thus skip reading all Android.mk
files (for instance mm
).
There is a make target bootimage-nodeps
which seems to do the right thing: It makes a new boot image without going through all Android.mk
files. Unfortunately dependencies also include the kernel itself (which therefore does not get built although there are changes).
My question is: Is there a way to build the kernel and create a boot image withouth having to read all Android.mk
files.