Merge "releasetools: Fallback to "mkbootimg_args" if "recovery_mkbootimg_args" not found." into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
60f3ee6406
@@ -1109,6 +1109,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():
|
||||
|
Reference in New Issue
Block a user