Fix the MIPS build.
Use an override for the dex2oat Xmx value when cross-compiling.
Bug: 16221224
(cherry picked from commit 7d70f830bc
)
Change-Id: Ic13b471c74325e8145a0a9c93a417355505e484a
This commit is contained in:
parent
0ea63e0cbd
commit
16de128da1
1 changed files with 11 additions and 5 deletions
|
@ -20,12 +20,7 @@ PRELOADED_CLASSES := frameworks/base/preloaded-classes
|
||||||
|
|
||||||
# start of image reserved address space
|
# start of image reserved address space
|
||||||
LIBART_IMG_HOST_BASE_ADDRESS := 0x60000000
|
LIBART_IMG_HOST_BASE_ADDRESS := 0x60000000
|
||||||
|
|
||||||
ifeq ($(TARGET_ARCH),mips)
|
|
||||||
LIBART_IMG_TARGET_BASE_ADDRESS := 0x30000000
|
|
||||||
else
|
|
||||||
LIBART_IMG_TARGET_BASE_ADDRESS := 0x70000000
|
LIBART_IMG_TARGET_BASE_ADDRESS := 0x70000000
|
||||||
endif
|
|
||||||
|
|
||||||
define get-product-default-property
|
define get-product-default-property
|
||||||
$(strip $(patsubst $(1)=%,%,$(filter $(1)=%,$(PRODUCT_DEFAULT_PROPERTY_OVERRIDES))))
|
$(strip $(patsubst $(1)=%,%,$(filter $(1)=%,$(PRODUCT_DEFAULT_PROPERTY_OVERRIDES))))
|
||||||
|
@ -36,6 +31,17 @@ DEX2OAT_IMAGE_XMX := $(call get-product-default-property,dalvik.vm.image-dex2oat
|
||||||
DEX2OAT_XMS := $(call get-product-default-property,dalvik.vm.dex2oat-Xms)
|
DEX2OAT_XMS := $(call get-product-default-property,dalvik.vm.dex2oat-Xms)
|
||||||
DEX2OAT_XMX := $(call get-product-default-property,dalvik.vm.dex2oat-Xmx)
|
DEX2OAT_XMX := $(call get-product-default-property,dalvik.vm.dex2oat-Xmx)
|
||||||
|
|
||||||
|
ifeq ($(TARGET_ARCH),mips)
|
||||||
|
# MIPS specific overrides.
|
||||||
|
# For MIPS the ART image is loaded at a lower address. This causes issues
|
||||||
|
# with the image overlapping with memory on the host cross-compiling and
|
||||||
|
# building the image. We therefore limit the Xmx value. This isn't done
|
||||||
|
# via a property as we want the larger Xmx value if we're running on a
|
||||||
|
# MIPS device.
|
||||||
|
LIBART_IMG_TARGET_BASE_ADDRESS := 0x30000000
|
||||||
|
DEX2OAT_IMAGE_XMX := 128m
|
||||||
|
endif
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
# The full system boot classpath
|
# The full system boot classpath
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue