diff options
author | Tianjie Xu <xunchang@google.com> | 2019-08-29 13:27:20 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-08-29 13:27:20 -0700 |
commit | 8b106fd2bc85dd34aacfd6db3041ceb2b612da31 (patch) | |
tree | 35955b29a2296158fa5ca05a57835e77a5d53a90 | |
parent | ee276acce859bae1335861f378cbc646407c32cf (diff) | |
parent | 9c9993c706c45d4cf9e056b66199a6cd23e9cc76 (diff) | |
download | build-8b106fd2bc85dd34aacfd6db3041ceb2b612da31.tar.gz |
Merge "Add a new flag "--disable_fec_computation" for OTA generation"
am: 9c9993c706
Change-Id: Ic077215542e20c2bc9fbaaaa2fa602f15d3f4a87
-rwxr-xr-x | tools/releasetools/ota_from_target_files.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/releasetools/ota_from_target_files.py b/tools/releasetools/ota_from_target_files.py index 60b73e7981..67cec1c8b7 100755 --- a/tools/releasetools/ota_from_target_files.py +++ b/tools/releasetools/ota_from_target_files.py @@ -139,6 +139,9 @@ Non-A/B OTA specific options A/B OTA specific options + --disable_fec_computation + Disable the on device FEC data computation for incremental updates. + --include_secondary Additionally include the payload for secondary slot images (default: False). Only meaningful when generating A/B OTAs. @@ -235,6 +238,7 @@ OPTIONS.skip_postinstall = False OPTIONS.retrofit_dynamic_partitions = False OPTIONS.skip_compatibility_check = False OPTIONS.output_metadata_path = None +OPTIONS.disable_fec_computation = False METADATA_NAME = 'META-INF/com/android/metadata' @@ -571,6 +575,8 @@ class Payload(object): "--target_image", target_file] if source_file is not None: cmd.extend(["--source_image", source_file]) + if OPTIONS.disable_fec_computation: + cmd.extend(["--disable_fec_computation", "true"]) cmd.extend(additional_args) self._Run(cmd) @@ -2147,6 +2153,8 @@ def main(argv): OPTIONS.skip_compatibility_check = True elif o == "--output_metadata_path": OPTIONS.output_metadata_path = a + elif o == "--disable_fec_computation": + OPTIONS.disable_fec_computation = True else: return False return True @@ -2181,6 +2189,7 @@ def main(argv): "retrofit_dynamic_partitions", "skip_compatibility_check", "output_metadata_path=", + "disable_fec_computation", ], extra_option_handler=option_handler) if len(args) != 2: |