Handle virtual A/B defines during dynamic_partitions_info merge.
While merging the Dynamic Partition info Dicts in the case of split builds, pick the virtual-a/b flags like virtual_ab, virtual_ab_retrofit from the vendor half. Bug: 146811936 Test: Merged build contains the virtual a/b defines. Change-Id: I0171b074094e47cfd12dc6af2565acdcd1b65163
This commit is contained in:
committed by
Adarsh Reddy
parent
9de27595ec
commit
7e9b5c4204
@@ -823,6 +823,12 @@ def MergeDynamicPartitionInfoDicts(framework_dict, vendor_dict):
|
||||
merged_dict[key] = (
|
||||
"%s %s" %
|
||||
(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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user