pass correct -s and -m options to release tools
When building an OTA package, TARGET_RELEASETOOLS_EXTENSIONS can be set (in BoardConfig.mk) to specify where the device-specific releasetools code is located. (The default location is the common directory for the device's vendor.) The TARGET_OTA_SCRIPT_MODE can be used to override the default script mode ("auto") for a particular device.
This commit is contained in:
parent
e01100c7ac
commit
659fc55e44
|
@ -883,9 +883,24 @@ INTERNAL_OTA_PACKAGE_TARGET := $(PRODUCT_OUT)/$(name).zip
|
|||
|
||||
$(INTERNAL_OTA_PACKAGE_TARGET): KEY_CERT_PAIR := $(DEFAULT_KEY_CERT_PAIR)
|
||||
|
||||
ifeq ($(TARGET_RELEASETOOLS_EXTENSIONS),)
|
||||
# default to common dir for device vendor
|
||||
$(INTERNAL_OTA_PACKAGE_TARGET): extensions := $(TARGET_DEVICE_DIR)/../common
|
||||
else
|
||||
$(INTERNAL_OTA_PACKAGE_TARGET): extensions := $(TARGET_RELEASETOOLS_EXTENSIONS)
|
||||
endif
|
||||
|
||||
ifeq ($(TARGET_OTA_SCRIPT_MODE),)
|
||||
# default to "auto"
|
||||
$(INTERNAL_OTA_PACKAGE_TARGET): scriptmode := auto
|
||||
else
|
||||
$(INTERNAL_OTA_PACKAGE_TARGET): scriptmode := $(TARGET_OTA_SCRIPT_MODE)
|
||||
endif
|
||||
|
||||
$(INTERNAL_OTA_PACKAGE_TARGET): $(BUILT_TARGET_FILES_PACKAGE) otatools
|
||||
@echo "Package OTA: $@"
|
||||
$(hide) ./build/tools/releasetools/ota_from_target_files \
|
||||
-s $(extensions) -m $(scriptmode) \
|
||||
-p $(HOST_OUT) \
|
||||
-b $(TARGET_DEVICE_DIR)/BoardConfig.mk \
|
||||
-k $(KEY_CERT_PAIR) \
|
||||
|
@ -1009,9 +1024,17 @@ name := $(name)-img-$(FILE_NAME_TAG)
|
|||
|
||||
INTERNAL_UPDATE_PACKAGE_TARGET := $(PRODUCT_OUT)/$(name).zip
|
||||
|
||||
ifeq ($(TARGET_RELEASETOOLS_EXTENSIONS),)
|
||||
# default to common dir for device vendor
|
||||
$(INTERNAL_UPDATE_PACKAGE_TARGET): extensions := $(TARGET_DEVICE_DIR)/../common
|
||||
else
|
||||
$(INTERNAL_UPDATE_PACKAGE_TARGET): extensions := $(TARGET_RELEASETOOLS_EXTENSIONS)
|
||||
endif
|
||||
|
||||
$(INTERNAL_UPDATE_PACKAGE_TARGET): $(BUILT_TARGET_FILES_PACKAGE) otatools
|
||||
@echo "Package: $@"
|
||||
$(hide) ./build/tools/releasetools/img_from_target_files \
|
||||
-s $(extensions) \
|
||||
-p $(HOST_OUT) \
|
||||
-b $(TARGET_DEVICE_DIR)/BoardConfig.mk \
|
||||
$(BUILT_TARGET_FILES_PACKAGE) $@
|
||||
|
|
Loading…
Reference in New Issue