Handle caremap for partial OTAs

When generating a partial OTA, filter care_map.pb to include only the
partial partitions, then generate OTA.

Test: Generate a partial OTA, make sure care map is included.

Change-Id: I0eaa12772eb1d06a57451e64f70689d3183f0115
This commit is contained in:
Kelvin Zhang
2021-06-03 09:36:08 -04:00
parent 041770b553
commit 766eea72ef
4 changed files with 150 additions and 1 deletions

View File

@@ -276,6 +276,9 @@ def Run(args, verbose=None, **kwargs):
args = args[:]
args[0] = FindHostToolPath(args[0])
if verbose is None:
verbose = OPTIONS.verbose
# Don't log any if caller explicitly says so.
if verbose:
logger.info(" Running: \"%s\"", " ".join(args))