Merge "Fix boot_profile_jars.zip"

This commit is contained in:
Treehugger Robot
2019-02-21 00:08:17 +00:00
committed by Gerrit Code Review

View File

@@ -15,19 +15,19 @@ endif
include $(BUILD_SYSTEM)/dex_preopt_libart.mk include $(BUILD_SYSTEM)/dex_preopt_libart.mk
ifeq ($(PRODUCT_DIST_BOOT_AND_SYSTEM_JARS),true)
boot_profile_jars_zip := $(PRODUCT_OUT)/boot_profile_jars.zip boot_profile_jars_zip := $(PRODUCT_OUT)/boot_profile_jars.zip
all_boot_jars := \ bootclasspath_jars := $(DEXPREOPT_BOOTCLASSPATH_DEX_FILES)
$(DEXPREOPT_BOOTCLASSPATH_DEX_FILES) \ system_server_jars := $(foreach m,$(PRODUCT_SYSTEM_SERVER_JARS),$(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): PRIVATE_BOOTCLASSPATH_JARS := $(bootclasspath_jars)
$(boot_profile_jars_zip): $(all_boot_jars) $(SOONG_ZIP) $(boot_profile_jars_zip): PRIVATE_SYSTEM_SERVER_JARS := $(system_server_jars)
echo "Create boot profiles package: $@" $(boot_profile_jars_zip): $(bootclasspath_jars) $(system_server_jars) $(SOONG_ZIP)
@echo "Create boot profiles package: $@"
rm -f $@ rm -f $@
$(SOONG_ZIP) -o $@ -C $(PRODUCT_OUT) $(addprefix -f ,$(PRIVATE_JARS)) $(SOONG_ZIP) -o $@ \
-C $(dir $(firstword $(PRIVATE_BOOTCLASSPATH_JARS)))/.. $(addprefix -f ,$(PRIVATE_BOOTCLASSPATH_JARS)) \
droidcore: $(boot_profile_jars_zip) -C $(PRODUCT_OUT) $(addprefix -f ,$(PRIVATE_SYSTEM_SERVER_JARS))
ifeq ($(PRODUCT_DIST_BOOT_AND_SYSTEM_JARS),true)
$(call dist-for-goals, droidcore, $(boot_profile_jars_zip)) $(call dist-for-goals, droidcore, $(boot_profile_jars_zip))
endif endif