I am currently working on the Linux kernel for an Android phone. My workflow:
- Make kernel code changes
- Build with
make bootimage - Flash with
fastboot flash boot
It works great. However, building takes unnecessary time because make bootimage first goes through the whole tree and includes all the Android.mk files. This takes longer than compiling the kernel itself and creating a boot image. Inclusion of these files is not required since there are no changes to them. To reduce the processing time in my workflow, I would like to speed up the build step.
When creating other other projects, there are ways to not create dependencies and thus skip reading all Android.mk files (for example, mm ).
There is a goal to make bootimage-nodeps , which seems to do the right thing: it creates a new boot image without going through all the Android.mk files. Unfortunately, dependencies also include a kernel (which is therefore not created, although there are changes).
My question is: is there a way to build a kernel and create a boot image with the need to read all Android.mk files.
source share