diff options
author | Khalid Zubair <kzubair@cyngn.com> | 2015-10-21 12:43:14 -0700 |
---|---|---|
committer | Ethan Chen <intervigil@gmail.com> | 2016-01-04 11:27:34 -0800 |
commit | fdc26cd560c2cd870f73fb44302dcff174048dbf (patch) | |
tree | bcf65ef10694480850bb332e0663788858e8cd0f /core/main.mk | |
parent | 2a70972835ad79349f60727a819879a59e532df0 (diff) | |
download | build-fdc26cd560c2cd870f73fb44302dcff174048dbf.zip build-fdc26cd560c2cd870f73fb44302dcff174048dbf.tar.gz build-fdc26cd560c2cd870f73fb44302dcff174048dbf.tar.bz2 |
mms: introduce a shortcut to quickly rebuild kernel/boot.img
Add a new shortcut to short circuit the long build process that walks
the entire tree collecting all Android.mks. The resulting dependency
list is sufficient to rebuild the kernel, copy product files and
repack the system image with updated modules.
This shortcut allows Kernel devs to rebuild just the boot.img and
kernel modules very quickly (20s vs 3min).
Change-Id: Ie0a69f241ea7b920859ff1e02c3542b79952462c
Diffstat (limited to 'core/main.mk')
-rw-r--r-- | core/main.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/main.mk b/core/main.mk index 8d8a9e8..8fabea6 100644 --- a/core/main.mk +++ b/core/main.mk @@ -475,7 +475,12 @@ endif ifneq ($(ONE_SHOT_MAKEFILE),) # We've probably been invoked by the "mm" shell function # with a subdirectory's makefile. + +# No Makefiles to include if we are performing a mms/short-circuit build. Only +# the targets mentioned by main.mk and tasks/* are built (kernel, boot.img etc) +ifneq ($(ONE_SHOT_MAKEFILE),__none__) include $(ONE_SHOT_MAKEFILE) +endif # Change CUSTOM_MODULES to include only modules that were # defined by this makefile; this will install all of those # modules as a side-effect. Do this after including ONE_SHOT_MAKEFILE |