Skip to content

Commit

Permalink
Only build a subset of android
Browse files Browse the repository at this point in the history
  • Loading branch information
siteshwar committed Jun 11, 2014
1 parent 078a5cd commit ac574b7
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions core/main.mk
Expand Up @@ -280,7 +280,7 @@ TARGET_BUILD_JAVA_SUPPORT_LEVEL := platform

# -----------------------------------------------------------------
# The pdk (Platform Development Kit) build
include build/core/pdk_config.mk
# include build/core/pdk_config.mk

# -----------------------------------------------------------------
###
Expand Down Expand Up @@ -489,10 +489,33 @@ ifneq ($(dont_bother),true)
# Include all of the makefiles in the system
#

subdir_makefile_dirs := bionic bootable build device external hardware hybris libcore system

# Can't use first-makefiles-under here because
# --mindepth=2 makes the prunes not work.

subdir_makefiles := \
$(shell build/tools/findleaves.py --prune=$(OUT_DIR) --prune=.repo --prune=.git $(subdirs) Android.mk)
./frameworks/base/Android.mk \
./frameworks/native/cmds/dumpstate/Android.mk \
./frameworks/native/cmds/dumpsys/Android.mk \
./frameworks/native/libs/binder/Android.mk \
./frameworks/native/libs/gui/Android.mk \
./frameworks/native/libs/ui/Android.mk \
./frameworks/native/opengl/libagl/Android.mk \
./frameworks/native/opengl/libs/Android.mk \
./frameworks/native/services/powermanager/Android.mk \
./frameworks/native/services/sensorservice/Android.mk \
./frameworks/native/services/surfaceflinger/Android.mk \
./frameworks/native/services/batteryservice/Android.mk \
./frameworks/native/cmds/servicemanager/Android.mk \
./frameworks/opt/emoji/Android.mk \
./prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.6/Android.mk \
./prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/Android.mk \
./prebuilts/ndk/Android.mk \
./prebuilts/tools/Android.mk \
$(shell build/tools/findleaves.py --prune=out --prune=.repo --prune=.git $(subdir_makefile_dirs) Android.mk)

# End of hybris mods

$(foreach mk, $(subdir_makefiles), $(eval include $(mk)))

Expand Down

0 comments on commit ac574b7

Please sign in to comment.