forked from openkylin/platform_build
Create dist for boot and system jars
We need the jars on boot and system server classpath in order to symbolize profile information. Having the jars packed in a dist zip will help a lot with the tools. Test: m Bug: 73313191 Change-Id: I5b64268d240055282099e9b86a5e6869e6405968
This commit is contained in:
parent
96ec5a58ae
commit
8955a99f06
|
@ -89,3 +89,20 @@ DEXPREOPT_ONE_FILE_DEPENDENCY_BUILT_BOOT_PREOPT := $(DEFAULT_DEX_PREOPT_BUILT_IM
|
|||
ifdef TARGET_2ND_ARCH
|
||||
$(TARGET_2ND_ARCH_VAR_PREFIX)DEXPREOPT_ONE_FILE_DEPENDENCY_BUILT_BOOT_PREOPT := $($(TARGET_2ND_ARCH_VAR_PREFIX)DEFAULT_DEX_PREOPT_BUILT_IMAGE_FILENAME)
|
||||
endif # TARGET_2ND_ARCH
|
||||
|
||||
ifeq ($(PRODUCT_DIST_BOOT_AND_SYSTEM_JARS),true)
|
||||
boot_profile_jars_zip := $(PRODUCT_OUT)/boot_profile_jars.zip
|
||||
all_boot_jars := \
|
||||
$(foreach m,$(DEXPREOPT_BOOT_JARS_MODULES),$(PRODUCT_OUT)/system/framework/$(m).jar) \
|
||||
$(foreach m,$(PRODUCT_SYSTEM_SERVER_JARS),$(PRODUCT_OUT)/system/framework/$(m).jar)
|
||||
|
||||
$(boot_profile_jars_zip): PRIVATE_JARS := $(all_boot_jars)
|
||||
$(boot_profile_jars_zip): $(all_boot_jars) $(SOONG_ZIP)
|
||||
echo "Create boot profiles package: $@"
|
||||
rm -f $@
|
||||
$(SOONG_ZIP) -o $@ -C $(PRODUCT_OUT) $(PRIVATE_JARS)
|
||||
|
||||
droidcore: $(boot_profile_jars_zip)
|
||||
|
||||
$(call dist-for-goals, droidcore, $(boot_profile_jars_zip))
|
||||
endif
|
||||
|
|
|
@ -41,3 +41,5 @@ PRODUCT_PROPERTY_OVERRIDES += \
|
|||
|
||||
# Use speed compiler filter since system server doesn't have JIT.
|
||||
PRODUCT_DEX_PREOPT_BOOT_FLAGS += --compiler-filter=speed
|
||||
|
||||
PRODUCT_DIST_BOOT_AND_SYSTEM_JARS := true
|
||||
|
|
Loading…
Reference in New Issue