summaryrefslogtreecommitdiffstats
path: root/tools/releasetools/ota_from_target_files
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2014-06-19 10:32:35 -0700
committerYing Wang <wangying@google.com>2014-06-19 10:32:35 -0700
commitf5770d78da76ce49ca1ab8334874abdaa6cc7115 (patch)
tree2c4a132b70ecb49a90677573a420a8cb18f0bbda /tools/releasetools/ota_from_target_files
parent50f0eab1cd6087b742f78134a2aaa6e786187b6c (diff)
parent240e136efdd37b9a37df9e05d6996eb3232a9d22 (diff)
downloadbuild-f5770d78da76ce49ca1ab8334874abdaa6cc7115.zip
build-f5770d78da76ce49ca1ab8334874abdaa6cc7115.tar.gz
build-f5770d78da76ce49ca1ab8334874abdaa6cc7115.tar.bz2
resolved conflicts for merge of 240e136e to master
Change-Id: Ic6e2cbe593914ddb613454581964c5d3d443b9d5
Diffstat (limited to 'tools/releasetools/ota_from_target_files')
-rwxr-xr-xtools/releasetools/ota_from_target_files14
1 files changed, 11 insertions, 3 deletions
diff --git a/tools/releasetools/ota_from_target_files b/tools/releasetools/ota_from_target_files
index 85888f8..5f2354c 100755
--- a/tools/releasetools/ota_from_target_files
+++ b/tools/releasetools/ota_from_target_files
@@ -71,6 +71,10 @@ Usage: ota_from_target_files [flags] input_target_files output_ota_package
instead of the binary in the build's target_files. Use for
development only.
+ -t (--worker_threads) <int>
+ Specifies the number of worker-threads that will be used when
+ generating patches for incremental updates (defaults to 3).
+
"""
import sys
@@ -1421,8 +1425,12 @@ def main(argv):
OPTIONS.aslr_mode = True
else:
OPTIONS.aslr_mode = False
- elif o in ("--worker_threads"):
- OPTIONS.worker_threads = int(a)
+ elif o in ("-t", "--worker_threads"):
+ if a.isdigit():
+ OPTIONS.worker_threads = int(a)
+ else:
+ raise ValueError("Cannot parse value %r for option %r - only "
+ "integers are allowed." % (a, o))
elif o in ("-2", "--two_step"):
OPTIONS.two_step = True
elif o == "--no_signing":
@@ -1436,7 +1444,7 @@ def main(argv):
return True
args = common.ParseOptions(argv, __doc__,
- extra_opts="b:k:i:d:wne:a:2o:",
+ extra_opts="b:k:i:d:wne:t:a:2o:",
extra_long_opts=["board_config=",
"package_key=",
"incremental_from=",