target_files: copy to PRODUCT-SERVICES instead

The add_img_to_target_files.py script uses upper() to determine
the name of sub-directory under target_files_intermediates. The
name of the image is product-services.img but the sub-directory
name was PRODUCT_SERVICES. Change it to PRODUCT-SERVICES so that
'm dist' works.

Test: m dist
Change-Id: I8cad841c674b5d62c1d803d0383fc3aee14f272a
This commit is contained in:
Yifan Hong
2018-08-01 16:44:43 -07:00
parent c0213682b3
commit 4d6b38c47a
2 changed files with 3 additions and 3 deletions

View File

@@ -2999,7 +2999,7 @@ endif
ifdef BOARD_PRODUCT_SERVICESIMAGE_FILE_SYSTEM_TYPE ifdef BOARD_PRODUCT_SERVICESIMAGE_FILE_SYSTEM_TYPE
@# Contents of the product-services image @# Contents of the product-services image
$(hide) $(call package_files-copy-root, \ $(hide) $(call package_files-copy-root, \
$(TARGET_OUT_PRODUCT_SERVICES),$(zip_root)/PRODUCT_SERVICES) $(TARGET_OUT_PRODUCT_SERVICES),$(zip_root)/PRODUCT-SERVICES)
endif endif
ifdef INSTALLED_SYSTEMOTHERIMAGE_TARGET ifdef INSTALLED_SYSTEMOTHERIMAGE_TARGET
@# Contents of the system_other image @# Contents of the system_other image

View File

@@ -197,7 +197,7 @@ def AddProduct(output_zip):
def AddProductServices(output_zip): def AddProductServices(output_zip):
"""Turn the contents of PRODUCT_SERVICES into a product-services image and """Turn the contents of PRODUCT-SERVICES into a product-services image and
store it in output_zip.""" store it in output_zip."""
img = OutputFile(output_zip, OPTIONS.input_tmp, "IMAGES", img = OutputFile(output_zip, OPTIONS.input_tmp, "IMAGES",
@@ -654,7 +654,7 @@ def AddImagesToTargetFiles(filename):
os.path.exists(os.path.join(OPTIONS.input_tmp, "IMAGES", os.path.exists(os.path.join(OPTIONS.input_tmp, "IMAGES",
"product.img"))) "product.img")))
has_product_services = (os.path.isdir(os.path.join(OPTIONS.input_tmp, has_product_services = (os.path.isdir(os.path.join(OPTIONS.input_tmp,
"PRODUCT_SERVICES")) or "PRODUCT-SERVICES")) or
os.path.exists(os.path.join(OPTIONS.input_tmp, os.path.exists(os.path.join(OPTIONS.input_tmp,
"IMAGES", "IMAGES",
"product-services.img"))) "product-services.img")))