diff --git a/core/Makefile b/core/Makefile index 1c53459312..7e62ad4bb3 100644 --- a/core/Makefile +++ b/core/Makefile @@ -4016,8 +4016,10 @@ ifdef BOARD_BPT_DISK_SIZE endif $(call generate-userimage-prop-dictionary, $(zip_root)/META/misc_info.txt) ifneq ($(INSTALLED_RECOVERYIMAGE_TARGET),) +ifdef BUILDING_SYSTEM_IMAGE $(hide) PATH=$(foreach p,$(INTERNAL_USERIMAGES_BINARY_PATHS),$(p):)$$PATH MKBOOTIMG=$(MKBOOTIMG) \ build/make/tools/releasetools/make_recovery_patch $(zip_root) $(zip_root) +endif # BUILDING_SYSTEM_IMAGE endif ifeq ($(AB_OTA_UPDATER),true) @# When using the A/B updater, include the updater config files in the zip.