summaryrefslogtreecommitdiffstats
path: root/tools/releasetools/ota_from_target_files
diff options
context:
space:
mode:
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>2014-05-31 20:42:55 +0200
committerMartin Blumenstingl <martin.blumenstingl@googlemail.com>2014-06-11 23:03:44 +0200
commit374e114d1691a47918a3972dc287615f25650725 (patch)
tree429b39a688785280e17962738918cb2e5a6857af /tools/releasetools/ota_from_target_files
parent1a8f0d3b6dc316034e1e3b28702fead4108ec8d3 (diff)
downloadbuild-374e114d1691a47918a3972dc287615f25650725.zip
build-374e114d1691a47918a3972dc287615f25650725.tar.gz
build-374e114d1691a47918a3972dc287615f25650725.tar.bz2
Document the worker_threads option.
Change-Id: I44775493bedc0c7224c2c4ef06330bdb1430a1b6
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 8d3f6ce..e695218 100755
--- a/tools/releasetools/ota_from_target_files
+++ b/tools/releasetools/ota_from_target_files
@@ -57,6 +57,10 @@ Usage: ota_from_target_files [flags] input_target_files output_ota_package
first, so that any changes made to the system partition are done
using the new recovery (new kernel, etc.).
+ -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
@@ -965,8 +969,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 in ("--no_signing"):
@@ -976,7 +984,7 @@ def main(argv):
return True
args = common.ParseOptions(argv, __doc__,
- extra_opts="b:k:i:d:wne:a:2",
+ extra_opts="b:k:i:d:wne:t:a:2",
extra_long_opts=["board_config=",
"package_key=",
"incremental_from=",