Install preloaded-classes as a standalone configuration file
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
This commit is contained in:
@@ -16,7 +16,9 @@ DEX2OAT_DEPENDENCY += $(DEX2OAT)
|
|||||||
DEX2OATD_DEPENDENCY := $(DEX2OAT_DEPENDENCY)
|
DEX2OATD_DEPENDENCY := $(DEX2OAT_DEPENDENCY)
|
||||||
DEX2OATD_DEPENDENCY += $(DEX2OATD)
|
DEX2OATD_DEPENDENCY += $(DEX2OATD)
|
||||||
|
|
||||||
PRELOADED_CLASSES := frameworks/base/preloaded-classes
|
# Use the first preloaded-classes file in PRODUCT_COPY_FILES.
|
||||||
|
PRELOADED_CLASSES := $(call word-colon,1,$(firstword \
|
||||||
|
$(filter %system/etc/preloaded-classes,$(PRODUCT_COPY_FILES))))
|
||||||
|
|
||||||
# start of image reserved address space
|
# start of image reserved address space
|
||||||
LIBART_IMG_HOST_BASE_ADDRESS := 0x60000000
|
LIBART_IMG_HOST_BASE_ADDRESS := 0x60000000
|
||||||
|
@@ -115,4 +115,8 @@ PRODUCT_PACKAGES += \
|
|||||||
wm
|
wm
|
||||||
|
|
||||||
|
|
||||||
|
PRODUCT_COPY_FILES := \
|
||||||
|
frameworks/base/preloaded-classes:system/etc/preloaded-classes
|
||||||
|
|
||||||
|
|
||||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/embedded.mk)
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/embedded.mk)
|
||||||
|
Reference in New Issue
Block a user