build_image.py recognize BOARD_PRODUCT_SERVICESIMAGE_PARTITION_RESERVED_SIZE

Test: builds
Bug: 79106666
Change-Id: I00c1a96c09cf7bd9274b65ac0afc47462686171d
This commit is contained in:
Yifan Hong
2018-07-20 15:33:47 -07:00
parent 56a6c3bb34
commit 9c35a022e1
4 changed files with 17 additions and 2 deletions

View File

@@ -897,6 +897,7 @@ def ImagePropFromGlobalDict(glob_dict, mount_point):
copy_prop("productservices_extfs_inode_count", "extfs_inode_count")
if not copy_prop("productservices_extfs_rsv_pct", "extfs_rsv_pct"):
d["extfs_rsv_pct"] = "0"
copy_prop("productservices_reserved_size", "partition_reserved_size")
elif mount_point == "oem":
copy_prop("fs_type", "fs_type")
copy_prop("oem_size", "partition_size")
@@ -938,6 +939,8 @@ def GlobalDictFromImageProp(image_prop, mount_point):
copy_prop("partition_size", "vendor_size")
elif mount_point == "product":
copy_prop("partition_size", "product_size")
elif mount_point == "product-services":
copy_prop("partition_size", "productservices_size")
return d