summaryrefslogtreecommitdiffstats
path: root/core/dex_preopt_libart.mk
Commit message (Collapse)AuthorAgeFilesLines
* Pass --no-generate-debug-info to dex2oat.David Srbecky2015-06-191-1/+1
| | | | | | | | | The two flags have been merged and renamed in ART. (cherry picked from commit d8fae9a6a64dfa910d68d57fc820c1b1e4150f88) Bug: 21924613 Change-Id: Iffc1dcc6764367239d6f45a3598cdb2c5d5d5013
* Add --include-cfi compiler option.David Srbecky2015-04-131-1/+1
| | | | | | | | | | | | Decouple generation of CFI from the rest of debug symbols. This makes it possible to generate oat with CFI but without the rest of debug symbols. This is in line with intention of the .eh_frame section. The section does not have the .debug_ prefix because it is considered somewhat different to the rest of debug symbols. Change-Id: I32816ecd4f30ac4e0dc69d69a4993e349c737f96
* Store odex files in oat/<isa>/ directory.Richard Uhler2015-03-181-1/+1
| | | | | | | | | | | | | | | | Previously odex files were stored alongside the dex location as: dex location: /foo/bar/base.apk odex location: /foo/bar/<isa>/base.odex This changes where odex files are stored, adding an "oat" directory: dex location: /foo/bar/base.apk odex location: /foo/bar/oat/<isa>/base.odex See also the corresponding change in platform/art and platform/frameworks/native. Bug: 19550105 Change-Id: I4c6be4f0c41ff175904846db8e360c4af815b265
* Build: Fail preopting apps when there are verifier errorsAndreas Gampe2015-03-051-0/+1
| | | | | | | | Expectation is that classes in pre-compiled apps should be structurally sound and not cause a hard failure. Bug: 19606409 Change-Id: Idc9da4d4c6bd259555671c657d3414a97940717f
* [MIPS64] Set ART base address for mips64Nikola Veljkovic2014-12-231-1/+1
| | | | | | Set ART base address for mips64 to the same value as for mips32. Change-Id: Idd3a05c87867bce9eb769cfec412102944703a43
* Build: Support for compiled-classes fileAndreas Gampe2014-11-181-0/+4
| | | | | | | | | | Allow a compiled-classes file for pre-opting. Bug: 18410571 (cherry picked from commit 4fec0bb265ac8cdbe883b8868abfcb56713db170) Change-Id: I8c69dd0fb8c04aaae0c4f062049cc9cce7d755c7
* Install preloaded-classes as a standalone configuration fileYing Wang2014-11-171-1/+3
| | | | | | | | | | | | | Install preloaded-classes as a standalone configuration file /system/etc/preloaded-classes, so we can configure different file per product. To override the default frameworks/base/preloaded-classes, just override in your product configuration makefile with PRODUCT_COPY_FILES before it inherits from build/target/product/base.mk: if there are multiple items in PRODUCT_COPY_FILES with the same destination, the first one takes precedence. Bug: 18305157 Change-Id: I937632b4a1aa73310ec90e73fd708fbd0c704a21
* Pass instruction set variant to dex2oat.Ian Rogers2014-11-081-0/+1
| | | | | | | | Also, add it to the ANDROID_BUILD_PROPERTIES. Remove non-default instruction set features. Bug: 18056890 Change-Id: I9169cdfecbb176f62b941852948222edc3f511fd
* Introduce per-product per-module dex-preopt configYing Wang2014-10-081-1/+2
| | | | | | | | | | | | | | | | | | | | | - 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
* Fix typo.Nicolas Geoffray2014-10-071-1/+1
| | | | Change-Id: I738ad878a2961d118b5a89bf7d434606df2fad92
* Make which dex2oat version to use configurable.Nicolas Geoffray2014-10-071-1/+8
| | | Change-Id: Ic13cf6f9dfb117193a5101781945c501d138955c
* Add --no-include-debug-symbols to avoid bloat in user buildsBrian Carlstrom2014-08-281-1/+1
| | | | | | | | Bug: 16938924 (cherry picked from commit 91b9d01b6ba2d3ea37928febce67d13c005a2336) Change-Id: I0b744e0aaacc11fe8983f22f56ffc546a07ae764
* Make system use patchoat to relocate during runtime.Alex Light2014-08-051-1/+2
| | | | | | | | | Change DexPreOpt to include patch information of all compiled files so we can relocate at runtime. Bug: 15358152 Change-Id: Ibe92d8b55a24bbf718b0416a21b76e5df7a2de26
* Vary non-image Xmx for dex2oat on MIPS.Ian Rogers2014-07-161-1/+1
| | | | | | The image Xmx is already fixed at 64m. The issue is in the non boot image case. Change-Id: Idd508187ce8ac3d3c8dbe357c74bc33a5c8185dd
* Fix the MIPS build.Ian Rogers2014-07-161-5/+11
| | | | | | | Use an override for the dex2oat Xmx value when cross-compiling. Bug: 16221224 Change-Id: Iaeac95cd50a0bae7817ee7da23b3cf25246f1d6d
* build: fix host dex2oat runtime argsColin Cross2014-07-091-7/+7
| | | | | | | | | | | | | The dalvik.vm.* properties are in PRODUCT_DEFAULT_PROPERTY_OVERRIDES, not PRODUCT_PROPERTY_OVERRIDES. Use $(call func,args) for user defined functions Prepend the property contents with -Xms or -Xmx when passing to dex2oat. This only worked before because DEX2OAT_XMS, etc. were blank due to the first two bugs, which resulted in --runtime-arg --runtime-arg and anything starting with -- as the argument to --runtime-arg is silently ignored. Change-Id: Ifa30038b397355171fefcc5248eea033bb634036
* Make dex2oat heap size product configurable [build]Brian Carlstrom2014-07-081-1/+10
| | | | | Bug: 15919420 Change-Id: If92318a6e3d5b9c8c6a2d08a3371386fa5ad8f45
* Add HOST_PREFER_32_BIT to support 32-bit-by-default multilib buildYing Wang2014-05-201-5/+0
| | | | | | | | | | We already support pure 32-bit and 64-bit-by-default multilib build. With HOST_PREFER_32_BIT we can build 32-bit-by-default multilib build. This will be lest disruptive during the period we transition to 64-bit-by-default. Bug: 13751317 Change-Id: I0d56ce4abbe4afeaacfd70d709f6a349791c0722
* Multilib support for odexYing Wang2014-05-181-44/+32
| | | | | | | | | | | | | 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
* Place ISA in ART boot image name.Ian Rogers2014-05-121-2/+2
| | | | | | | Depends upon: https://android-review.googlesource.com/#/c/94096/2 Change-Id: I79bec60a17ea7cf9214e56f8035d4a1b80b0eeb6
* For 64-bit, use 32-bit DEXPREOPT if zygote64 isn't enabled.Ian Rogers2014-04-181-2/+3
| | | | Change-Id: Ia95d74517f8182031d6044ae55559010a98ec5ca
* Merge "Use debug versions of dex2oat explicitly."Nicolas Geoffray2014-04-021-7/+8
|\
| * Use debug versions of dex2oat explicitly.Nicolas Geoffray2014-04-011-7/+8
| | | | | | | | Change-Id: Ie7c238908a5739af752a08fec1a04914026a8f96
* | Merge "Change LIBART_IMG_TARGET_BASE_ADDRESS to 0x70000000"Mathieu Chartier2014-03-281-1/+1
|\ \ | |/ |/|
| * Change LIBART_IMG_TARGET_BASE_ADDRESS to 0x70000000Mathieu Chartier2014-03-191-1/+1
| | | | | | | | | | | | | | | | | | Required for getting ART with valgrind on device working since valgrind maps things in the 0x60000000 address range. Bug: 13323732 Change-Id: I05efdbf3fe5acd1418e1d4ced5844154fb4c5d37
* | Fix embedded buildYing Wang2014-03-201-5/+0
|/ | | | | | | | | 1) Disable dexpreopt if DALVIK_VM_LIB isn't set up by the product. 2) DEX2OAT_TARGET_INSTRUCTION_SET_FEATURES is moved to config.mk, for it's only decided by target arch. 3) Move Java module input from embedded.mk to base.mk. Change-Id: Ife70b0cd8cee2e5c92f356c808affa56f494b49a
* Remove host-prefix command line argument to dex2oat.Nicolas Geoffray2014-03-041-2/+1
| | | | Change-Id: If4a962976d1e8a283d6b682112a1b12d328d8dbb
* build: PRODUCT_DEX_PREOPT_IMAGE_IN_DATABrian Carlstrom2014-01-281-0/+4
| | | | | | (cherry-picked from commit cd337c71ee65b17529a67af34d4c0b2824a4f175) Change-Id: I6d8ab3b3cf52f6a6b15f1c8e8d00cdf59042436b
* Add DEXPREOPT support for ARTBrian Carlstrom2013-12-171-0/+96
Change-Id: I24d0d7b2a23a769f5d69bd4dc14be22e1475b759