Merge "Allow building super.img on targets without BOARD_BUILD_SUPER_IMAGE_BY_DEFAULT set."
This commit is contained in:
@@ -6531,22 +6531,22 @@ INSTALLED_SUPERIMAGE_DEPENDENCIES += $(INSTALLED_SYSTEMOTHERIMAGE_TARGET)
|
||||
endif
|
||||
endif
|
||||
|
||||
# If BOARD_BUILD_SUPER_IMAGE_BY_DEFAULT is set, super.img is built from images in the
|
||||
# $(PRODUCT_OUT) directory, and is built to $(PRODUCT_OUT)/super.img. Also, it will
|
||||
# be built for non-dist builds. This is useful for devices that uses super.img directly, e.g.
|
||||
# virtual devices.
|
||||
ifeq (true,$(BOARD_BUILD_SUPER_IMAGE_BY_DEFAULT))
|
||||
$(INSTALLED_SUPERIMAGE_TARGET): $(INSTALLED_SUPERIMAGE_DEPENDENCIES)
|
||||
$(call pretty,"Target super fs image for debug: $@")
|
||||
$(call build-superimage-target,$(INSTALLED_SUPERIMAGE_TARGET),\
|
||||
$(call intermediates-dir-for,PACKAGING,superimage_debug)/misc_info.txt)
|
||||
|
||||
droidcore-unbundled: $(INSTALLED_SUPERIMAGE_TARGET)
|
||||
|
||||
# For devices that uses super image directly, the superimage target points to the file in $(PRODUCT_OUT).
|
||||
.PHONY: superimage
|
||||
superimage: $(INSTALLED_SUPERIMAGE_TARGET)
|
||||
|
||||
# If BOARD_BUILD_SUPER_IMAGE_BY_DEFAULT is set, super.img is built from images in the
|
||||
# $(PRODUCT_OUT) directory, and is built to $(PRODUCT_OUT)/super.img. Also, it will
|
||||
# be built for non-dist builds. This is useful for devices that uses super.img directly, e.g.
|
||||
# virtual devices.
|
||||
ifeq (true,$(BOARD_BUILD_SUPER_IMAGE_BY_DEFAULT))
|
||||
droidcore-unbundled: $(INSTALLED_SUPERIMAGE_TARGET)
|
||||
|
||||
$(call dist-for-goals,dist_files,$(INSTALLED_MISC_INFO_TARGET):super_misc_info.txt)
|
||||
endif # BOARD_BUILD_SUPER_IMAGE_BY_DEFAULT
|
||||
|
||||
|
Reference in New Issue
Block a user