summaryrefslogtreecommitdiffstats
path: root/core/dex_preopt_odex_install.mk
diff options
context:
space:
mode:
authorAlex Light <allight@google.com>2014-08-04 17:09:41 -0700
committerAlex Light <allight@google.com>2014-08-11 16:40:23 +0000
commit440cc769a3617bf99546bdc7599c949e1e858943 (patch)
tree8870760119505930a6e3cb961f151ac9ea0b6b2d /core/dex_preopt_odex_install.mk
parentce06199a047f81d6afe522ab4e6f489deecb46f3 (diff)
downloadbuild-440cc769a3617bf99546bdc7599c949e1e858943.zip
build-440cc769a3617bf99546bdc7599c949e1e858943.tar.gz
build-440cc769a3617bf99546bdc7599c949e1e858943.tar.bz2
Add a WITH_DEXOPT_BOOT_IMG_ONLY configuration option.
If WITH_DEXOPT_BOOT_IMG_ONLY=true and WITH_DEXPREOPT=true then we will only preopt the boot.art and boot.oat files, leaving everything else to be compiled at first boot. This has fast startup times of WITH_DEXPREOPT but has a smaller space usage and allows one to update the non-image parts of /system without reflashing. Bug: 16938924 Change-Id: Ib366b6b5ad80f7078f01bf51f9fbc29ea7e5d777
Diffstat (limited to 'core/dex_preopt_odex_install.mk')
-rw-r--r--core/dex_preopt_odex_install.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/dex_preopt_odex_install.mk b/core/dex_preopt_odex_install.mk
index 613b058..10b41bd 100644
--- a/core/dex_preopt_odex_install.mk
+++ b/core/dex_preopt_odex_install.mk
@@ -32,6 +32,12 @@ endif
ifneq (,$(filter $(LOCAL_MODULE),$(PRODUCT_DEX_PREOPT_PACKAGES_IN_DATA)))
LOCAL_DEX_PREOPT :=
endif
+# if WITH_DEXPREOPT_BOOT_IMG_ONLY=true and module is not in boot class path skip
+ifeq (true,$(WITH_DEXPREOPT_BOOT_IMG_ONLY))
+ifeq ($(filter $(DEXPREOPT_BOOT_JARS_MODULES),$(LOCAL_MODULE)),)
+LOCAL_DEX_PREOPT :=
+endif
+endif
built_odex :=
installed_odex :=