forked from openkylin/platform_build
Use predefined macros instead of hardcoding the path
There are predefined macros image targets that are already checked in dependencies, use them instead of hardcoding the same path again. Bug: 79601115 Test: make -j Change-Id: I12b64a646df038de017ba2ef18f3d0e4274f7caa Signed-off-by: Roman Kiryanov <rkir@google.com>
This commit is contained in:
parent
e64998fe3b
commit
4985cc829d
|
@ -4319,7 +4319,7 @@ ifdef INSTALLED_SYSTEMIMAGE_TARGET
|
|||
INSTALLED_QEMU_SYSTEMIMAGE := $(PRODUCT_OUT)/system-qemu.img
|
||||
$(INSTALLED_QEMU_SYSTEMIMAGE): $(INSTALLED_SYSTEMIMAGE_TARGET) $(MK_QEMU_IMAGE_SH) $(SGDISK_HOST) $(SIMG2IMG)
|
||||
@echo Create system-qemu.img
|
||||
(export SGDISK=$(SGDISK_HOST) SIMG2IMG=$(SIMG2IMG); $(MK_QEMU_IMAGE_SH) ${PRODUCT_OUT}/system.img)
|
||||
(export SGDISK=$(SGDISK_HOST) SIMG2IMG=$(SIMG2IMG); $(MK_QEMU_IMAGE_SH) $(INSTALLED_SYSTEMIMAGE_TARGET))
|
||||
|
||||
systemimage: $(INSTALLED_QEMU_SYSTEMIMAGE)
|
||||
droidcore: $(INSTALLED_QEMU_SYSTEMIMAGE)
|
||||
|
@ -4328,7 +4328,7 @@ ifdef INSTALLED_VENDORIMAGE_TARGET
|
|||
INSTALLED_QEMU_VENDORIMAGE := $(PRODUCT_OUT)/vendor-qemu.img
|
||||
$(INSTALLED_QEMU_VENDORIMAGE): $(INSTALLED_VENDORIMAGE_TARGET) $(MK_QEMU_IMAGE_SH) $(SGDISK_HOST) $(SIMG2IMG)
|
||||
@echo Create vendor-qemu.img
|
||||
(export SGDISK=$(SGDISK_HOST) SIMG2IMG=$(SIMG2IMG); $(MK_QEMU_IMAGE_SH) ${PRODUCT_OUT}/vendor.img)
|
||||
(export SGDISK=$(SGDISK_HOST) SIMG2IMG=$(SIMG2IMG); $(MK_QEMU_IMAGE_SH) $(INSTALLED_VENDORIMAGE_TARGET))
|
||||
|
||||
vendorimage: $(INSTALLED_QEMU_VENDORIMAGE)
|
||||
droidcore: $(INSTALLED_QEMU_VENDORIMAGE)
|
||||
|
@ -4337,7 +4337,7 @@ ifdef INSTALLED_PRODUCTIMAGE_TARGET
|
|||
INSTALLED_QEMU_PRODUCTIMAGE := $(PRODUCT_OUT)/product-qemu.img
|
||||
$(INSTALLED_QEMU_PRODUCTIMAGE): $(INSTALLED_PRODUCTIMAGE_TARGET) $(MK_QEMU_IMAGE_SH) $(SGDISK_HOST) $(SIMG2IMG)
|
||||
@echo Create product-qemu.img
|
||||
(export SGDISK=$(SGDISK_HOST) SIMG2IMG=$(SIMG2IMG); $(MK_QEMU_IMAGE_SH) ${PRODUCT_OUT}/product.img)
|
||||
(export SGDISK=$(SGDISK_HOST) SIMG2IMG=$(SIMG2IMG); $(MK_QEMU_IMAGE_SH) $(INSTALLED_PRODUCTIMAGE_TARGET))
|
||||
|
||||
productimage: $(INSTALLED_QEMU_PRODUCTIMAGE)
|
||||
droidcore: $(INSTALLED_QEMU_PRODUCTIMAGE)
|
||||
|
@ -4346,7 +4346,7 @@ ifdef INSTALLED_PRODUCT_SERVICESIMAGE_TARGET
|
|||
INSTALLED_QEMU_PRODUCT_SERVICESIMAGE := $(PRODUCT_OUT)/product_services-qemu.img
|
||||
$(INSTALLED_QEMU_PRODUCT_SERVICESIMAGE): $(INSTALLED_PRODUCT_SERVICESIMAGE_TARGET) $(MK_QEMU_IMAGE_SH) $(SGDISK_HOST) $(SIMG2IMG)
|
||||
@echo Create product_services-qemu.img
|
||||
(export SGDISK=$(SGDISK_HOST) SIMG2IMG=$(SIMG2IMG); $(MK_QEMU_IMAGE_SH) ${PRODUCT_OUT}/product_services.img)
|
||||
(export SGDISK=$(SGDISK_HOST) SIMG2IMG=$(SIMG2IMG); $(MK_QEMU_IMAGE_SH) $(INSTALLED_PRODUCT_SERVICESIMAGE_TARGET))
|
||||
|
||||
productservicesimage: $(INSTALLED_QEMU_PRODUCT_SERVICESIMAGE)
|
||||
droidcore: $(INSTALLED_QEMU_PRODUCT_SERVICESIMAGE)
|
||||
|
@ -4355,7 +4355,7 @@ ifdef INSTALLED_ODMIMAGE_TARGET
|
|||
INSTALLED_QEMU_ODMIMAGE := $(PRODUCT_OUT)/odm-qemu.img
|
||||
$(INSTALLED_QEMU_ODMIMAGE): $(INSTALLED_ODMIMAGE_TARGET) $(MK_QEMU_IMAGE_SH) $(SGDISK_HOST)
|
||||
@echo Create odm-qemu.img
|
||||
(export SGDISK=$(SGDISK_HOST); $(MK_QEMU_IMAGE_SH) ${PRODUCT_OUT}/odm.img)
|
||||
(export SGDISK=$(SGDISK_HOST); $(MK_QEMU_IMAGE_SH) $(INSTALLED_ODMIMAGE_TARGET))
|
||||
|
||||
odmimage: $(INSTALLED_QEMU_ODMIMAGE)
|
||||
droidcore: $(INSTALLED_QEMU_ODMIMAGE)
|
||||
|
|
Loading…
Reference in New Issue