summaryrefslogtreecommitdiffstats
path: root/core/dex_preopt_odex_install.mk
Commit message (Collapse)AuthorAgeFilesLines
* Colorize more target file outputScott Mertz2015-10-091-1/+1
| | | | Change-Id: I25aee19e9a5a06eeeaa4040803c064a140a86778
* Build only 64-bit odex for system server jars.Ying Wang2015-03-101-1/+10
| | | | | | | | | | | | By default we build both 64-bit and 32-bit odex files for a Java library. With this change: - For system server jars (PRODUCT_SYSTEM_SERVER_JARS), we build only 64-bit odex; - A library can opt to build only 64-bit odex with "LOCAL_MULTILIB := first". Bug: 19650934 Change-Id: Ic0b7fd381396ed276e6129f883881c5c41c6e154
* Merge "Remove libdvm support from the core build system."Ying Wang2014-12-161-15/+0
|\
| * Remove libdvm support from the core build system.Ying Wang2014-12-161-15/+0
| | | | | | | | | | | | | | | | | | Now libart is the only supported runtime and we don't need the build variables PRODUCT_RUNTIMES and DALVIK_VM_LIB. Bug: 18465297 Change-Id: Ibfda931cde0649163d79b584fb5ccad927a9bc2b
* | Remove obsolete PRODUCT_DEX_PREOPT_.*_IN_DATABrian Carlstrom2014-12-151-4/+0
|/ | | | | Bug: 18673991 Change-Id: I64261ef6a37df92eeef8552b8fd0a67157e4a034
* core: Use WITH_DEXPREOPT_PIC=true to have dex2oat build pic oat filesIgor Murashkin2014-11-181-0/+6
| | | | | | | | | | | | | | | When WITH_DEXPREOPT=true is set, if we also set WITH_DEXPREOPT_PIC=true then the build will generate position-independent OAT images. This means that all the system applications no longer need to be relocated into /data/dalvik-cache and this can achieve saving disk space at the cost of slightly slower running code. Bug: 18035729 (cherry picked from commit da9f1a7e82b7e6d0677553f211835625078347f2) Change-Id: Ifd517c842f48bf31568bf5ff56667298d422c2c0
* resolved conflicts for merge of 3907c03e to lmp-dev-plus-aospYing Wang2014-10-091-1/+14
|\ | | | | | | Change-Id: I580ab0693609ff506da7346548a45322000114d1
| * Introduce per-product per-module dex-preopt configYing Wang2014-10-081-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added LOCAL_DEX_PREOPT_FLAGS to pass extra flags to dex2oat. - Added macro add-product-dex-preopt-module-config to specify almost arbitrary dex-preopt config/flags to modules in product configuration: $(call \ add-product-dex-preopt-module-config,<module_name_list>,<config_or_flags>) How <config_or_flags> is interpreted is decided by dex_preopt_odex_install.mk and dex2oat. For now if it's "disable" we disable dexpreopt for the given modules; otherwise pass it to dex2oat as command line flags. - If there are multiple configs for the same module in the product inheritance, the first takes precedence. - Added PRODUCT_DEX_PREOPT_DEFAULT_FLAGS so you can specify default dex2oat flags in product configuration. - Added PRODUCT_DEX_PREOPT_BOOT_FLAGS to specify flags of building boot.oat. Bug: 17791867 Change-Id: I1b2955e8e51039e94d1ff43a3265a8d03598632c
| * Enable multilib odex only if TARGET_2ND_ARCH is defined.Ying Wang2014-09-151-2/+4
| | | | | | | | | | | | Bug: 17507247 Bug: 14694978 Change-Id: I160a37bc0970315054606829aa112b67eaee7d49
| * Support to build apk odex for both arch.Ying Wang2014-09-151-49/+12
| | | | | | | | | | | | | | | | | | | | Build odex for both arch in multilib build if an app has LOCAL_MULTILIB := both. Refactored the common setup code to a separate file setup_one_odex.mk. Bug: 17409149 Bug: 14694978 Change-Id: I74c9426cd74fe0b0cb4811368f740a88ac2ae022
| * Add a WITH_DEXOPT_BOOT_IMG_ONLY configuration option.Alex Light2014-08-111-0/+6
| | | | | | | | | | | | | | | | | | | | | | If WITH_DEXOPT_BOOT_IMG_ONLY=true and WITH_DEXPREOPT=true then we will only preopt the boot.art and boot.oat files, leaving everything else to be compiled at first boot. This has fast startup times of WITH_DEXPREOPT but has a smaller space usage and allows one to update the non-image parts of /system without reflashing. Bug: 16938924 Change-Id: Ib366b6b5ad80f7078f01bf51f9fbc29ea7e5d777
* | Check $(built_dex) to determine if we can run dex-preopt.Ying Wang2014-10-081-1/+1
| | | | | | | | Change-Id: Icfed37f50671ec041f2cfdcec9175cb094b572fc
* | Enable multilib odex only if TARGET_2ND_ARCH is defined.Ying Wang2014-09-151-2/+4
| | | | | | | | | | | | Bug: 17507247 Bug: 14694978 Change-Id: I160a37bc0970315054606829aa112b67eaee7d49
* | Support to build apk odex for both arch.Ying Wang2014-09-131-49/+12
| | | | | | | | | | | | | | | | | | | | Build odex for both arch in multilib build if an app has LOCAL_MULTILIB := both. Refactored the common setup code to a separate file setup_one_odex.mk. Bug: 17409149 Bug: 14694978 Change-Id: I74c9426cd74fe0b0cb4811368f740a88ac2ae022
* | Add a WITH_DEXOPT_BOOT_IMG_ONLY configuration option.Alex Light2014-08-111-0/+6
|/ | | | | | | | | | | | | | If WITH_DEXOPT_BOOT_IMG_ONLY=true and WITH_DEXPREOPT=true then we will only preopt the boot.art and boot.oat files, leaving everything else to be compiled at first boot. This has fast startup times of WITH_DEXPREOPT but has a smaller space usage and allows one to update the non-image parts of /system without reflashing. Bug: 16938924 (cherry picked from commit 440cc769a3617bf99546bdc7599c949e1e858943) Change-Id: Ib366b6b5ad80f7078f01bf51f9fbc29ea7e5d777
* Don't enable LOCAL_DEX_PREOPT for apks outside system.imgYing Wang2014-07-091-5/+7
| | | | | Bug: 15621103 Change-Id: If267a4aaad17b66d9779169237e06d65d67f088f
* Explicit record the modules' built-file:installed-fileYing Wang2014-06-161-3/+11
| | | | | | | | | | - This simplifies the logic to get the mapping of built-file to installed-file. Previously we used file suffix matching which is error prone and not scalable. - With this change the .odex files will be included automatically. Bug: 13585955 Change-Id: I4599abf93b9d501bac7aca7758d7f3aee21b3e36
* Fix pattern rules for $(installed_odex) for libdvm.Ying Wang2014-05-281-2/+2
| | | | | | | | | | | | When the VM is libdvm, we don't put the odex files in an arch specific subdirectory. The previous pattern rules don't work because of the extra "/". With this change, % evaluates to empty string when it's built for libdvm; % evaluates to "<arch_name>/" when it's built for libart. Also removed use of $(create-empty-package), which may causes file name (dummy) conflict with the rule of package.apk. Bug: 15311527 Change-Id: I9f9089bc1896b78c1f47834afdb28a3a51d34480
* Split the rules to build the odex fileYing Wang2014-05-211-8/+5
| | | | | | | | | | | | Previously the odex file is byproduct generated by the package.apk rule. Though we have the odex file depend on the package.apk it doesn't have its own build recipe. In case package.apk isn't updated but we still need to update the odex file (such as changed LOCAL_MULTILIB), the odex file will never be rebuilt. This change split out the rules to build the odex file and make sure the build recipe get executed if the odex file needs rebuild. Change-Id: I60c2f32b536b3d59045301ee863aae1451734aad
* Multilib support for odexYing Wang2014-05-181-4/+68
| | | | | | | | | | | | | If the VM is libart and DEXPREOPT is enabled, - For a Java library and the boot image, we build for both 1st arch and 2nd arch. - For an app, we build for the multilib arch the module is targeted for. The odex file will be in <arch_name>/<module_name>.odex inside the same dir where the jar/apk file gets installed. Nothing changed if it's built for libdvm. Bug: 14694978 Change-Id: I45118a83758b41d52d6c9e38f93f0ba2775a6c74
* Make sure to install the .odex when running "make <module_name>"Ying Wang2014-01-241-0/+3
| | | | Change-Id: I64195294dad15b7d379d667f4c4738c2808fd384
* Remove LOCAL_SRC_FILES as precondition of enabling dexpreoptYing Wang2014-01-031-9/+7
| | | | | | | | | | | | | | Because a library or app can be built from mere static libraries, or generated java files. For example, framework is built from only static library framework-base but without LOCAL_SRC_FILES. Also added framework2 to PRODUCT_PACKAGES. Previously framework2.jar was installed by dependency explicitly established in frameworks/base/Android.mk. That's not enough for the .odex file. This fixed the boot failure reported in bug 12382916. Bug: 12382916 Change-Id: If1a70261ab2bb7fef77cf7b7b995bdc029be0fc3
* Add DEXPREOPT support for ARTBrian Carlstrom2013-12-171-0/+70
Change-Id: I24d0d7b2a23a769f5d69bd4dc14be22e1475b759