From 194418c3e19614cb9bcc5d550c20f597b44a4a1b Mon Sep 17 00:00:00 2001 From: Andrew Boie Date: Wed, 20 Aug 2014 14:43:06 -0700 Subject: [PATCH] the recovery image also needs to be signed with $(BOOT_SIGNER) Change-Id: Ie90976afdaada6410b1566fe497ce86ee935ad41 Signed-off-by: Andrew Boie Reviewed-on: https://android.intel.com/232319 --- core/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/Makefile b/core/Makefile index d3fc6cc61..7bef52e7c 100644 --- a/core/Makefile +++ b/core/Makefile @@ -849,6 +849,9 @@ $(INSTALLED_RECOVERYIMAGE_TARGET): $(MKBOOTFS) $(MKBOOTIMG) $(MINIGZIP) \ > $(TARGET_RECOVERY_ROOT_OUT)/default.prop $(hide) $(MKBOOTFS) $(TARGET_RECOVERY_ROOT_OUT) | $(MINIGZIP) > $(recovery_ramdisk) $(hide) $(MKBOOTIMG) $(INTERNAL_RECOVERYIMAGE_ARGS) $(BOARD_MKBOOTIMG_ARGS) --output $@ +ifeq (true,$(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_SUPPORTS_VERITY)) + $(BOOT_SIGNER) /recovery $@ $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_VERITY_SIGNING_KEY) $@ +endif $(hide) $(call assert-max-image-size,$@,$(BOARD_RECOVERYIMAGE_PARTITION_SIZE)) @echo ----- Made recovery image: $@ --------