summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Light <allight@google.com>2014-08-19 16:58:34 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-08-19 16:58:34 +0000
commit7ea26c73c609415bc03b1592b1e910ae3dbf6df7 (patch)
tree972ccc127b35f76d869f23472c3c9ce47ca8f714
parent2733c82f972011c5fab1962c9550c678a69ece65 (diff)
parente2e2214be83b74efbebca6eba45adf3690900bf8 (diff)
downloadmako-7ea26c73c609415bc03b1592b1e910ae3dbf6df7.tar.gz
am e2e2214b: Enable WITH_DEXPREOPT on devices where it is possible
* commit 'e2e2214be83b74efbebca6eba45adf3690900bf8': Enable WITH_DEXPREOPT on devices where it is possible
-rw-r--r--BoardConfig.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk
index a56770d..6d8072b 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -68,6 +68,14 @@ TARGET_USES_OVERLAY := true
TARGET_USES_SF_BYPASS := true
TARGET_USES_C2D_COMPOSITON := true
+# Enable dex-preoptimization to speed up first boot sequence
+ifeq ($(HOST_OS),linux)
+ ifeq ($(TARGET_BUILD_VARIANT),user)
+ ifeq ($(WITH_DEXPREOPT),)
+ WITH_DEXPREOPT := true
+ endif
+ endif
+endif
WITH_DEXPREOPT_BOOT_IMG_ONLY ?= true
TARGET_RECOVERY_FSTAB = device/lge/mako/fstab.mako