Merge "Allow more than one '=' in avb_extra_custom_image_extra_args." into rvc-dev

This commit is contained in:
Hongguang Chen 2020-05-26 23:46:13 +00:00 committed by Android (Google) Code Review
commit 4217f575c3
1 changed files with 4 additions and 1 deletions

View File

@ -1234,7 +1234,10 @@ def main(argv):
partition, algorithm = a.split("=")
OPTIONS.avb_algorithms[partition] = algorithm
elif o == "--avb_extra_custom_image_extra_args":
partition, extra_args = a.split("=")
# Setting the maxsplit parameter to one, which will return a list with
# two elements. e.g., the second '=' should not be splitted for
# 'oem=--signing_helper_with_files=/tmp/avbsigner.sh'.
partition, extra_args = a.split("=", 1)
OPTIONS.avb_extra_args[partition] = extra_args
else:
return False