From fdc26cd560c2cd870f73fb44302dcff174048dbf Mon Sep 17 00:00:00 2001 From: Khalid Zubair Date: Wed, 21 Oct 2015 12:43:14 -0700 Subject: 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 --- core/main.mk | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core/main.mk') 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 -- cgit v1.1