From b2483ae08c00c42bd97f3b9e2ba5e841ec243d62 Mon Sep 17 00:00:00 2001 From: William Roberts Date: Tue, 20 Aug 2013 16:02:53 -0700 Subject: [PATCH] Add PRODUCT_BOOTANIMATION Just add PRODUCT_BOOTANIMATION in your product makefiles and point it to the zip file you would like to have used as the boot animation. The coresponsing build system handles picking the last one, which is the last product to set this. Change-Id: I8c95a515a8fbb92d363141eb79e254712dccc162 Signed-off-by: William Roberts Fix for build break when PRODUCT_BOOTANIMATION is unset Change-Id: I236c2dd35ba0e632ed327ed6dc36324c9e59587a Restore original behavior when PRODUCT_BOOTANIMATION is undefined Change-Id: I3ee7141f7c26cee033b8a30824caf38fcacec5a8 --- core/product.mk | 1 + core/product_config.mk | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/core/product.mk b/core/product.mk index adf56004c..da5c75489 100644 --- a/core/product.mk +++ b/core/product.mk @@ -73,6 +73,7 @@ endef # _product_var_list := \ + PRODUCT_BOOTANIMATION \ PRODUCT_BUILD_PROP_OVERRIDES \ PRODUCT_NAME \ PRODUCT_MODEL \ diff --git a/core/product_config.mk b/core/product_config.mk index d14a24a0d..9f3867625 100644 --- a/core/product_config.mk +++ b/core/product_config.mk @@ -355,6 +355,12 @@ endif # The optional : is used to indicate the owner of a vendor file. PRODUCT_COPY_FILES := \ $(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_COPY_FILES)) +_boot_animation := $(strip $(lastword $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_BOOTANIMATION))) +ifneq ($(_boot_animation),) +PRODUCT_COPY_FILES += \ + $(_boot_animation):system/media/bootanimation.zip +endif +_boot_animation := # A list of property assignments, like "key = value", with zero or more # whitespace characters on either side of the '='. -- 2.11.0