Calin Juravle | 053a04f | 2018-05-03 00:12:54 -0700 | [diff] [blame] | 1 | # |
| 2 | # Copyright 2018 The Android Open Source Project |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | |
| 17 | # Use an empty profile to make non of the boot image be AOT compiled (for now). |
| 18 | # Note that we could use a previous profile but we will miss the opportunity to |
| 19 | # remove classes that are no longer in use. |
| 20 | # Ideally we would just generate an empty boot.art but we don't have the build |
| 21 | # support to separate the image from the compile code. |
Dan Willemsen | 0ab1be6 | 2019-04-09 21:35:37 -0700 | [diff] [blame^] | 22 | PRODUCT_DEX_PREOPT_BOOT_IMAGE_PROFILE_LOCATION := build/make/target/product/empty-profile |
Calin Juravle | 053a04f | 2018-05-03 00:12:54 -0700 | [diff] [blame] | 23 | PRODUCT_DEX_PREOPT_BOOT_FLAGS := --count-hotness-in-compiled-code |
| 24 | DEX_PREOPT_DEFAULT := nostripping |
| 25 | |
Mathieu Chartier | c0890b9 | 2018-05-04 16:01:01 -0700 | [diff] [blame] | 26 | # Disable uncompressing priv apps so that there is enough space to build the system partition. |
| 27 | DONT_UNCOMPRESS_PRIV_APPS_DEXS := true |
| 28 | |
Calin Juravle | 053a04f | 2018-05-03 00:12:54 -0700 | [diff] [blame] | 29 | # Use an empty preloaded-classes list. |
| 30 | PRODUCT_COPY_FILES += \ |
Dan Willemsen | 0ab1be6 | 2019-04-09 21:35:37 -0700 | [diff] [blame^] | 31 | build/make/target/product/empty-preloaded-classes:system/etc/preloaded-classes |
Calin Juravle | 053a04f | 2018-05-03 00:12:54 -0700 | [diff] [blame] | 32 | |
| 33 | # Boot image property overrides. |
| 34 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 35 | dalvik.vm.jitinitialsize=32m \ |
| 36 | dalvik.vm.jitmaxsize=32m \ |
| 37 | dalvik.vm.usejitprofiles=true \ |
| 38 | dalvik.vm.hot-startup-method-samples=256 \ |
Calin Juravle | 053a04f | 2018-05-03 00:12:54 -0700 | [diff] [blame] | 39 | dalvik.vm.profilesystemserver=true \ |
| 40 | dalvik.vm.profilebootimage=true |
Mathieu Chartier | c0890b9 | 2018-05-04 16:01:01 -0700 | [diff] [blame] | 41 | |
| 42 | # Use speed compiler filter since system server doesn't have JIT. |
| 43 | PRODUCT_DEX_PREOPT_BOOT_FLAGS += --compiler-filter=speed |
Calin Juravle | fae75af | 2019-01-31 00:00:10 -0800 | [diff] [blame] | 44 | # System server is speed compiled and doesn't have a separate preopt flag, |
| 45 | # so we enable hotness in compiled code for everything. |
| 46 | PRODUCT_DEX_PREOPT_DEFAULT_FLAGS := --count-hotness-in-compiled-code |
Calin Juravle | 8955a99 | 2018-05-10 11:33:27 -0700 | [diff] [blame] | 47 | |
| 48 | PRODUCT_DIST_BOOT_AND_SYSTEM_JARS := true |