Merge "Generate partial ota update package if the board defines it" am: f692346758
am: 8d70b61202
Original change: https://android-review.googlesource.com/c/platform/build/+/1464827 Change-Id: I98ab96f893e1187b8297e35dc86c66ffde3bbbeb
This commit is contained in:
commit
3b2ec594f0
2 changed files with 20 additions and 9 deletions
|
@ -4836,7 +4836,7 @@ ifeq ($(build_ota_package),true)
|
||||||
# $(1): output file
|
# $(1): output file
|
||||||
# $(2): additional args
|
# $(2): additional args
|
||||||
define build-ota-package-target
|
define build-ota-package-target
|
||||||
PATH=$(INTERNAL_USERIMAGES_BINARY_PATHS):$$PATH \
|
PATH=$(INTERNAL_USERIMAGES_BINARY_PATHS):$(dir $(ZIP2ZIP)):$$PATH \
|
||||||
$(OTA_FROM_TARGET_FILES) \
|
$(OTA_FROM_TARGET_FILES) \
|
||||||
--verbose \
|
--verbose \
|
||||||
--extracted_input_target_files $(patsubst %.zip,%,$(BUILT_TARGET_FILES_PACKAGE)) \
|
--extracted_input_target_files $(patsubst %.zip,%,$(BUILT_TARGET_FILES_PACKAGE)) \
|
||||||
|
@ -4846,11 +4846,11 @@ PATH=$(INTERNAL_USERIMAGES_BINARY_PATHS):$$PATH \
|
||||||
$(BUILT_TARGET_FILES_PACKAGE) $(1)
|
$(BUILT_TARGET_FILES_PACKAGE) $(1)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
name := $(TARGET_PRODUCT)
|
product_name := $(TARGET_PRODUCT)
|
||||||
ifeq ($(TARGET_BUILD_TYPE),debug)
|
ifeq ($(TARGET_BUILD_TYPE),debug)
|
||||||
name := $(name)_debug
|
product_name := $(product_name)_debug
|
||||||
endif
|
endif
|
||||||
name := $(name)-ota-$(FILE_NAME_TAG)
|
name := $(product_name)-ota-$(FILE_NAME_TAG)
|
||||||
|
|
||||||
INTERNAL_OTA_PACKAGE_TARGET := $(PRODUCT_OUT)/$(name).zip
|
INTERNAL_OTA_PACKAGE_TARGET := $(PRODUCT_OUT)/$(name).zip
|
||||||
INTERNAL_OTA_METADATA := $(PRODUCT_OUT)/ota_metadata
|
INTERNAL_OTA_METADATA := $(PRODUCT_OUT)/ota_metadata
|
||||||
|
@ -4865,11 +4865,7 @@ $(INTERNAL_OTA_PACKAGE_TARGET): $(BUILT_TARGET_FILES_PACKAGE) $(OTA_FROM_TARGET_
|
||||||
otapackage: $(INTERNAL_OTA_PACKAGE_TARGET)
|
otapackage: $(INTERNAL_OTA_PACKAGE_TARGET)
|
||||||
|
|
||||||
ifeq ($(BOARD_BUILD_RETROFIT_DYNAMIC_PARTITIONS_OTA_PACKAGE),true)
|
ifeq ($(BOARD_BUILD_RETROFIT_DYNAMIC_PARTITIONS_OTA_PACKAGE),true)
|
||||||
name := $(TARGET_PRODUCT)
|
name := $(product_name)-ota-retrofit-$(FILE_NAME_TAG)
|
||||||
ifeq ($(TARGET_BUILD_TYPE),debug)
|
|
||||||
name := $(name)_debug
|
|
||||||
endif
|
|
||||||
name := $(name)-ota-retrofit-$(FILE_NAME_TAG)
|
|
||||||
|
|
||||||
INTERNAL_OTA_RETROFIT_DYNAMIC_PARTITIONS_PACKAGE_TARGET := $(PRODUCT_OUT)/$(name).zip
|
INTERNAL_OTA_RETROFIT_DYNAMIC_PARTITIONS_PACKAGE_TARGET := $(PRODUCT_OUT)/$(name).zip
|
||||||
$(INTERNAL_OTA_RETROFIT_DYNAMIC_PARTITIONS_PACKAGE_TARGET): KEY_CERT_PAIR := $(DEFAULT_KEY_CERT_PAIR)
|
$(INTERNAL_OTA_RETROFIT_DYNAMIC_PARTITIONS_PACKAGE_TARGET): KEY_CERT_PAIR := $(DEFAULT_KEY_CERT_PAIR)
|
||||||
|
@ -4886,6 +4882,20 @@ otapackage otardppackage: $(INTERNAL_OTA_RETROFIT_DYNAMIC_PARTITIONS_PACKAGE_TAR
|
||||||
|
|
||||||
endif # BOARD_BUILD_RETROFIT_DYNAMIC_PARTITIONS_OTA_PACKAGE
|
endif # BOARD_BUILD_RETROFIT_DYNAMIC_PARTITIONS_OTA_PACKAGE
|
||||||
|
|
||||||
|
ifneq ($(BOARD_PARTIAL_OTA_UPDATE_PARTITIONS_LIST),)
|
||||||
|
name := $(product_name)-partial-ota-$(FILE_NAME_TAG)
|
||||||
|
|
||||||
|
INTERNAL_OTA_PARTIAL_PACKAGE_TARGET := $(PRODUCT_OUT)/$(name).zip
|
||||||
|
$(INTERNAL_OTA_PARTIAL_PACKAGE_TARGET): KEY_CERT_PAIR := $(DEFAULT_KEY_CERT_PAIR)
|
||||||
|
$(INTERNAL_OTA_PARTIAL_PACKAGE_TARGET): $(BUILT_TARGET_FILES_PACKAGE) $(OTA_FROM_TARGET_FILES) $(INTERNAL_OTATOOLS_FILES)
|
||||||
|
@echo "Package partial OTA: $@"
|
||||||
|
$(call build-ota-package-target,$@,-k $(KEY_CERT_PAIR) --partial "$(BOARD_PARTIAL_OTA_UPDATE_PARTITIONS_LIST)")
|
||||||
|
|
||||||
|
.PHONY: partialotapackage
|
||||||
|
partialotapackage: $(INTERNAL_OTA_PARTIAL_PACKAGE_TARGET)
|
||||||
|
|
||||||
|
endif # BOARD_PARTIAL_OTA_UPDATE_PARTITIONS_LIST
|
||||||
|
|
||||||
endif # build_ota_package
|
endif # build_ota_package
|
||||||
|
|
||||||
# -----------------------------------------------------------------
|
# -----------------------------------------------------------------
|
||||||
|
|
|
@ -1715,6 +1715,7 @@ else ifeq (,$(TARGET_BUILD_UNBUNDLED))
|
||||||
$(INTERNAL_UPDATE_PACKAGE_TARGET) \
|
$(INTERNAL_UPDATE_PACKAGE_TARGET) \
|
||||||
$(INTERNAL_OTA_PACKAGE_TARGET) \
|
$(INTERNAL_OTA_PACKAGE_TARGET) \
|
||||||
$(INTERNAL_OTA_METADATA) \
|
$(INTERNAL_OTA_METADATA) \
|
||||||
|
$(INTERNAL_OTA_PARTIAL_PACKAGE_TARGET) \
|
||||||
$(INTERNAL_OTA_RETROFIT_DYNAMIC_PARTITIONS_PACKAGE_TARGET) \
|
$(INTERNAL_OTA_RETROFIT_DYNAMIC_PARTITIONS_PACKAGE_TARGET) \
|
||||||
$(BUILT_OTATOOLS_PACKAGE) \
|
$(BUILT_OTATOOLS_PACKAGE) \
|
||||||
$(SYMBOLS_ZIP) \
|
$(SYMBOLS_ZIP) \
|
||||||
|
|
Loading…
Reference in a new issue