summaryrefslogtreecommitdiffstats
path: root/core/Makefile
diff options
context:
space:
mode:
authorTom Marshall <tdm@cyngn.com>2014-11-22 08:43:59 -0800
committerGerrit Code Review <gerrit@cyanogenmod.org>2015-11-07 01:20:47 -0800
commit8113a248b00bfa031f6f7f74f0df25723ef1b67b (patch)
tree438da8fbaf07a53d9c40185c42f20e8793b44d3e /core/Makefile
parent121ca4946a5f3ef1a8da3a5c2bdb2a852dd6a0ce (diff)
downloadbuild-8113a248b00bfa031f6f7f74f0df25723ef1b67b.zip
build-8113a248b00bfa031f6f7f74f0df25723ef1b67b.tar.gz
build-8113a248b00bfa031f6f7f74f0df25723ef1b67b.tar.bz2
build: Add option to disable block-based ota
While block-based is great when building on a local machine, it kills rsync performance when syncing rebuilds from remote machines. Provide an option to disable it for those whose network bandwidth is less than their device's emmc bandwidth. Usage: export BLOCK_BASED_OTA=false Change-Id: I1dfaa5478a87dad286014dbe57cd5a03da4d1980
Diffstat (limited to 'core/Makefile')
-rw-r--r--core/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/Makefile b/core/Makefile
index c1a3cf3..61ab5bb 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -1874,13 +1874,17 @@ ifneq ($(TARGET_UNIFIED_DEVICE),)
endif
endif
+ifneq ($(BLOCK_BASED_OTA),false)
+ $(INTERNAL_OTA_PACKAGE_TARGET): block_based := --block
+endif
+
$(INTERNAL_OTA_PACKAGE_TARGET): $(BUILT_TARGET_FILES_PACKAGE) $(DISTTOOLS)
@echo "$(OTA_FROM_TARGET_SCRIPT)" > $(PRODUCT_OUT)/ota_script_path
@echo "$(override_device)" > $(PRODUCT_OUT)/ota_override_device
@echo -e ${CL_YLW}"Package OTA:"${CL_RST}" $@"
$(hide) PATH=$(foreach p,$(INTERNAL_USERIMAGES_BINARY_PATHS),$(p):)$$PATH MKBOOTIMG=$(MKBOOTIMG) \
$(OTA_FROM_TARGET_SCRIPT) -v \
- --block \
+ $(block_based) \
-p $(HOST_OUT) \
-k $(KEY_CERT_PAIR) \
--backup=$(backuptool) \