Merge "Fix images-for-partitions() for 'init_boot'" am: 8beddf2e7e

Original change: https://android-review.googlesource.com/c/platform/build/+/1934174

Change-Id: Ib09c4b73cdcc1b4da56161f37b7dd8bdf4f029d0
This commit is contained in:
Treehugger Robot
2022-01-05 01:34:10 +00:00
committed by Automerger Merge Worker

View File

@@ -3546,7 +3546,10 @@ endif # BOARD_USES_PVMFWIMAGE
# $(INSTALLED_VENDORIMAGE_TARGET)" for "system vendor". # $(INSTALLED_VENDORIMAGE_TARGET)" for "system vendor".
# (1): list of partitions like "system", "vendor" or "system product system_ext". # (1): list of partitions like "system", "vendor" or "system product system_ext".
define images-for-partitions define images-for-partitions
$(strip $(foreach item,$(1),$(if $(filter $(item),system_other),$(INSTALLED_SYSTEMOTHERIMAGE_TARGET),$(INSTALLED_$(call to-upper,$(item))IMAGE_TARGET)))) $(strip $(foreach item,$(1),\
$(if $(filter $(item),system_other),$(INSTALLED_SYSTEMOTHERIMAGE_TARGET),\
$(if $(filter $(item),init_boot),$(INSTALLED_INIT_BOOT_IMAGE_TARGET),\
$(INSTALLED_$(call to-upper,$(item))IMAGE_TARGET)))))
endef endef
# ----------------------------------------------------------------- # -----------------------------------------------------------------