MM command to quickly compile a module, the general use of ADB push to the phone to see the effect, if the environment is not allowed to use ADB push or the module does not change often, want to directly put in the image, you can use./MK Snod, This command simply packages the system directory into system.img and then facilitates direct download, but the command is still slow (slow searching for all android.mk), and there is a way to speed up the compilation to less than 1 minutes
Modify ALPS/BUILD/CORE/MAIN.MK:
Subdir_makefiles: =\
$ (Shell build/tools/findleaves.py--prune=out--prune=.repo--prune=.git $ (subdirs) android.mk)
Modified to:
Ifneq ($ (makecmdgoals), Snod)
Subdir_makefiles: =\
$ (Shell build/tools/findleaves.py--prune=out--prune=.repo--prune=.git $ (subdirs) android.mk)
endif
The above avoids unnecessary time-consuming operations and accelerates./MK Snod Compilation
How Android accelerates./MK Snod Pack