summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Light <allight@google.com>2014-08-11 10:46:02 -0700
committerAlex Light <allight@google.com>2014-08-19 16:45:06 +0000
commite2e2214be83b74efbebca6eba45adf3690900bf8 (patch)
tree972ccc127b35f76d869f23472c3c9ce47ca8f714
parent69c4f825690f9885bc46b6628b03ab53b1cb28f8 (diff)
downloadmako-e2e2214be83b74efbebca6eba45adf3690900bf8.tar.gz
Enable WITH_DEXPREOPT on devices where it is possible
Change-Id: I0ea9768f801865f95f2774b8377cc8f3d75e30bf (cherry picked from commit ecebdcb6773931f08ee6bb4fbcee2320b06bfb12)
-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