Merge "Handle virtual A/B defines during dynamic_partitions_info merge."

am: 9d4a90ef4b

Change-Id: I93659811499f3f2b8a3d2e88be08b9c9ec48aecf
This commit is contained in:
P Adarsh Reddy 2020-01-02 13:38:22 -08:00 committed by android-build-merger
commit d5e0c4761f

View file

@ -823,6 +823,12 @@ def MergeDynamicPartitionInfoDicts(framework_dict, vendor_dict):
merged_dict[key] = ( merged_dict[key] = (
"%s %s" % "%s %s" %
(framework_dict.get(key, ""), vendor_dict.get(key, ""))).strip() (framework_dict.get(key, ""), vendor_dict.get(key, ""))).strip()
# Pick virtual ab related flags from vendor dict, if defined.
if "virtual_ab" in vendor_dict.keys():
merged_dict["virtual_ab"] = vendor_dict["virtual_ab"]
if "virtual_ab_retrofit" in vendor_dict.keys():
merged_dict["virtual_ab_retrofit"] = vendor_dict["virtual_ab_retrofit"]
return merged_dict return merged_dict