summaryrefslogtreecommitdiffstats
path: root/target/board/generic_x86
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@android.com>2011-06-16 01:32:20 +0200
committerDavid 'Digit' Turner <digit@android.com>2011-06-22 23:23:46 +0200
commit456d16cb897ec4af3472e4ccdb9a825f42055a73 (patch)
tree54a5062fb8da7f10cc6a2709e274dfbb63eb8252 /target/board/generic_x86
parent04b963a1c037a7e9e8b5fb46603e009965293d9d (diff)
downloadbuild-456d16cb897ec4af3472e4ccdb9a825f42055a73.zip
build-456d16cb897ec4af3472e4ccdb9a825f42055a73.tar.gz
build-456d16cb897ec4af3472e4ccdb9a825f42055a73.tar.bz2
emulator: Enable dex-preoptimization
This enables the Dex pre-optimization for emulator-specific builds. The idea is to speed up the initial boot sequence of an SDK AVD by avoiding the costly on-device preopt pass that is performed otherwise the first time the AVD is launched. Benchmarking shows reductions in first boot time from 1m30s to 40s on a 2.4GHz Xeon when emulating the AOSP master ToT. Change-Id: I67a9ce9791220c202817864c6e83dc8fd9cbc027
Diffstat (limited to 'target/board/generic_x86')
-rw-r--r--target/board/generic_x86/BoardConfig.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/target/board/generic_x86/BoardConfig.mk b/target/board/generic_x86/BoardConfig.mk
index 1bad20d..0206434 100644
--- a/target/board/generic_x86/BoardConfig.mk
+++ b/target/board/generic_x86/BoardConfig.mk
@@ -21,3 +21,8 @@ USE_CAMERA_STUB := true
# Set /system/bin/sh to mksh, not ash, to test the transition.
TARGET_SHELL := mksh
+# Enable dex-preoptimization to speed up the first boot sequence
+# of an SDK AVD. Note that this operation only works on Linux for now
+ifeq ($(HOST_OS),linux)
+WITH_DEXPREOPT := true
+endif