Merge "releasetools: Fallback to "mkbootimg_args" if "recovery_mkbootimg_args" not found." am: ec8abc0eb3 am: ec788a7f58

Change-Id: Id69aafe1eb55e2f126f53d302dfaf91740015f0f
This commit is contained in:
Treehugger Robot 2020-05-06 08:08:57 +00:00 committed by Automerger Merge Worker
commit aa887670ae
1 changed files with 4 additions and 0 deletions

View File

@ -1148,6 +1148,10 @@ def _BuildBootableImage(image_name, sourcedir, fs_config_file, info_dict=None,
if partition_name == "recovery":
args = info_dict.get("recovery_mkbootimg_args")
if not args:
# Fall back to "mkbootimg_args" for recovery image
# in case "recovery_mkbootimg_args" is not set.
args = info_dict.get("mkbootimg_args")
else:
args = info_dict.get("mkbootimg_args")
if args and args.strip():