###### update package with huanglong images ###### ifeq ($(strip $(PRODUCT_TYPE)),tablet) UPDATE_IMAGES ?= bootargs.bin panel.img logo.img pq_param.bin preload.img\ recovery_$(CHIP_REVISION).img dtbo_$(CHIP_REVISION).img \ fastboot_$(CHIP_REVISION).bin sbl_$(CHIP_REVISION).bin slaveboot_$(CHIP_REVISION).bin \ trustedcore_$(CHIP_REVISION).img else UPDATE_IMAGES ?= bootargs.bin panel.img logo.img pq_param.bin\ recovery_$(CHIP_REVISION).img dtbo_$(CHIP_REVISION).img \ fastboot_$(CHIP_REVISION).bin sbl_$(CHIP_REVISION).bin slaveboot_$(CHIP_REVISION).bin \ trustedcore_$(CHIP_REVISION).img endif INSTALLED_IMAGES_TARGET := $(addprefix $(PRODUCT_OUT)/, $(UPDATE_IMAGES)) TARGET_RELEASETOOLS_EXTENSIONS := $(SOC_PLATFORM_PATH)/minorimages/recovery/releasetools name := $(TARGET_PRODUCT) ifeq ($(TARGET_BUILD_TYPE), debug) name := $(name)_debug endif otaname := $(name)-ota-$(FILE_NAME_TAG) name := $(name)-target_files-$(FILE_NAME_TAG) intermediates := $(call intermediates-dir-for,PACKAGING,target_files) $(PRODUCT_OUT)/$(otaname).zip: $(intermediates)/$(name).zip.huanglong BUILT_TARGET_FILES_PACKAGE := $(intermediates)/$(name).zip.huanglong $(BUILT_TARGET_FILES_PACKAGE): intermediates := $(intermediates) $(BUILT_TARGET_FILES_PACKAGE): zip_root := $(intermediates)/$(name) $(BUILT_TARGET_FILES_PACKAGE): $(intermediates)/$(name).zip $(IMAGES_OUT)/recovery_$(CHIP_REVISION).img $(hide) mkdir -p $(zip_root)/IMAGES $(foreach update_image,$(UPDATE_IMAGES),$(ACP) $(PRODUCT_OUT)/images/$(update_image) \ $(zip_root)/IMAGES/$(subst _$(CHIP_REVISION),,$(update_image));) ifeq ($(strip $(BOARD_AVB_ENABLE)), true) $(hide) $(AVBTOOL) append_vbmeta_image --image $(zip_root)/IMAGES/boot.img \ --partition_size $(BOARD_BOOTIMAGE_PARTITION_SIZE) --vbmeta_image $(zip_root)/IMAGES/vbmeta.img endif $(hide) find $(zip_root)/META | sort >$(zip_root).zip.list $(hide) find $(zip_root) -path $(zip_root)/META -prune -o -print | sort >>$(zip_root).zip.list ifeq ($(strip $(PLATFORM_VERSION)), 12) $(hide) $(SOONG_ZIP) -d -o $(zip_root).zip -C $(zip_root) -r $(zip_root).zip.list else $(hide) $(SOONG_ZIP) -d -o $(zip_root).zip -C $(zip_root) -l $(zip_root).zip.list endif $(hide) find $(zip_root)/IMAGES | sort >$@ $(hide) $(ACP) $(zip_root)/IMAGES/system.img $(PRODUCT_OUT) $(hide) $(ACP) $(zip_root)/IMAGES/vendor.img $(PRODUCT_OUT) $(hide) [ ! -f $(zip_root)/IMAGES/odm.img ] || $(ACP) $(zip_root)/IMAGES/odm.img $(IMAGES_OUT)/odm_$(CHIP_REVISION).img $(hide) [ ! -f $(zip_root)/IMAGES/product.img ] || $(ACP) $(zip_root)/IMAGES/product.img $(PRODUCT_OUT) ifeq ($(strip $(BOARD_AVB_ENABLE)), true) $(hide) $(ACP) $(zip_root)/IMAGES/vbmeta_system.img $(PRODUCT_OUT) $(hide) $(ACP) $(zip_root)/IMAGES/vbmeta_vendor.img $(PRODUCT_OUT) $(hide) $(ACP) $(zip_root)/IMAGES/vbmeta.img $(PRODUCT_OUT) $(hide) $(ACP) $(zip_root)/IMAGES/boot.img $(IMAGES_OUT)/boot_$(CHIP_REVISION).img endif ifeq ($(strip $(PRODUCT_USE_DYNAMIC_PARTITIONS)), true) $(call build-superimage-target,$(INSTALLED_SUPERIMAGE_TARGET),\ $(call intermediates-dir-for,PACKAGING,superimage_debug)/misc_info.txt) endif ifeq (,$(filter true, $(TARGET_NO_KERNEL) $(TARGET_NO_RECOVERY))) ifneq ($(strip $(PRODUCT_SUPPORT_ASAN)), true) otapackage: droidcore endif endif