From 0576b5f24ee5499660f465a26c90d0298954291c Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Tue, 25 Apr 2017 12:25:33 +0100 Subject: [PATCH] Update build files to new compiler filters. bug:34715556 Test: build and boot aosp bullhead Change-Id: I95c7bbabd68a58206e8c79a017337a7f9a518569 --- target/product/core_minimal.mk | 21 --------------------- target/product/core_tiny.mk | 20 -------------------- target/product/runtime_libart.mk | 21 +++++++++++++++++++++ 3 files changed, 21 insertions(+), 41 deletions(-) diff --git a/target/product/core_minimal.mk b/target/product/core_minimal.mk index 701a69c9ed..14d4e6a7e7 100644 --- a/target/product/core_minimal.mk +++ b/target/product/core_minimal.mk @@ -128,27 +128,6 @@ PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \ system/core/rootdir/etc/ld.config.txt:system/etc/ld.config.txt -# Different dexopt types for different package update/install times. -# On eng builds, make "boot" reasons do pure JIT for faster turnaround. -ifeq (eng,$(TARGET_BUILD_VARIANT)) - PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ - pm.dexopt.first-boot=verify-at-runtime \ - pm.dexopt.boot=verify-at-runtime -else - PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ - pm.dexopt.first-boot=interpret-only \ - pm.dexopt.boot=verify-profile -endif -PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ - pm.dexopt.install=interpret-only \ - pm.dexopt.bg-dexopt=speed-profile \ - pm.dexopt.ab-ota=speed-profile \ - pm.dexopt.nsys-library=speed \ - pm.dexopt.shared-apk=speed \ - pm.dexopt.forced-dexopt=speed \ - pm.dexopt.core-app=speed - - # Enable boot.oat filtering of compiled classes to reduce boot.oat size. b/28026683 PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\ frameworks/base/compiled-classes-phone:system/etc/compiled-classes) diff --git a/target/product/core_tiny.mk b/target/product/core_tiny.mk index ef8794d806..319a1060d8 100644 --- a/target/product/core_tiny.mk +++ b/target/product/core_tiny.mk @@ -113,26 +113,6 @@ PRODUCT_COPY_FILES += \ PRODUCT_PROPERTY_OVERRIDES += \ ro.carrier=unknown -# Different dexopt types for different package update/install times. -# On eng builds, make "boot" reasons do pure JIT for faster turnaround. -ifeq (eng,$(TARGET_BUILD_VARIANT)) - PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ - pm.dexopt.first-boot=verify-at-runtime \ - pm.dexopt.boot=verify-at-runtime -else - PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ - pm.dexopt.first-boot=interpret-only \ - pm.dexopt.boot=verify-profile -endif -PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ - pm.dexopt.install=interpret-only \ - pm.dexopt.bg-dexopt=speed-profile \ - pm.dexopt.ab-ota=speed-profile \ - pm.dexopt.nsys-library=speed \ - pm.dexopt.shared-apk=speed \ - pm.dexopt.forced-dexopt=speed \ - pm.dexopt.core-app=speed - $(call inherit-product, $(SRC_TARGET_DIR)/product/runtime_libart.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/base.mk) $(call inherit-product-if-exists, frameworks/base/data/fonts/fonts.mk) diff --git a/target/product/runtime_libart.mk b/target/product/runtime_libart.mk index fb52d67e5c..ffdd9040a8 100644 --- a/target/product/runtime_libart.mk +++ b/target/product/runtime_libart.mk @@ -82,3 +82,24 @@ PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ dalvik.vm.usejitprofiles=true \ dalvik.vm.dexopt.secondary=true \ dalvik.vm.appimageformat=lz4 + +# Different dexopt types for different package update/install times. +# On eng builds, make "boot" reasons only extract for faster turnaround. +ifeq (eng,$(TARGET_BUILD_VARIANT)) + PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ + pm.dexopt.first-boot=extract \ + pm.dexopt.boot=extract +else + PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ + pm.dexopt.first-boot=quicken \ + pm.dexopt.boot=verify +endif + +PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ + pm.dexopt.install=quicken \ + pm.dexopt.bg-dexopt=speed-profile \ + pm.dexopt.ab-ota=speed-profile \ + pm.dexopt.nsys-library=speed \ + pm.dexopt.shared-apk=speed \ + pm.dexopt.forced-dexopt=speed \ + pm.dexopt.core-app=speed