From: Tao Bao Date: Wed, 19 Aug 2015 01:03:56 +0000 (-0700) Subject: build: Don't call make_recovery_patch if there's no recovery. X-Git-Tag: android-x86-7.1-r1~608^2~19^2~147^2~70^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=cbc6dc29d6ac0f42db2176177fd2d2ad74923133;p=android-x86%2Fbuild.git build: Don't call make_recovery_patch if there's no recovery. Change-Id: Iea1bd529eca9cd607da3b420bc4287f95c18219d --- diff --git a/core/Makefile b/core/Makefile index 2f755680d..89d04318d 100644 --- a/core/Makefile +++ b/core/Makefile @@ -1527,8 +1527,10 @@ ifeq ($(BOARD_USES_FULL_RECOVERY_IMAGE),true) $(hide) echo "full_recovery_image=true" >> $(zip_root)/META/misc_info.txt endif $(call generate-userimage-prop-dictionary, $(zip_root)/META/misc_info.txt) +ifneq ($(INSTALLED_RECOVERYIMAGE_TARGET),) $(hide) PATH=$(foreach p,$(INTERNAL_USERIMAGES_BINARY_PATHS),$(p):)$$PATH MKBOOTIMG=$(MKBOOTIMG) \ ./build/tools/releasetools/make_recovery_patch $(zip_root) $(zip_root) +endif @# Zip everything up, preserving symlinks $(hide) (cd $(zip_root) && zip -qry ../$(notdir $@) .) @# Run fs_config on all the system, vendor, boot ramdisk,