summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Roberts <wroberts@tresys.com>2013-08-20 16:02:53 -0700
committerAdnan Begovic <adnan@cyngn.com>2015-10-06 16:26:35 -0700
commit2c7341c5dd7c36c231ca18d927111cf5e2da57c1 (patch)
tree4eff73743413eec9852c6203c7a459cc688115db
parent3bc5cfd0c1629da7b44ce25fa8039870d4a05413 (diff)
downloadbuild-2c7341c5dd7c36c231ca18d927111cf5e2da57c1.zip
build-2c7341c5dd7c36c231ca18d927111cf5e2da57c1.tar.gz
build-2c7341c5dd7c36c231ca18d927111cf5e2da57c1.tar.bz2
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 <wroberts@tresys.com> Fix for build break when PRODUCT_BOOTANIMATION is unset Change-Id: I236c2dd35ba0e632ed327ed6dc36324c9e59587a Restore original behavior when PRODUCT_BOOTANIMATION is undefined Change-Id: I3ee7141f7c26cee033b8a30824caf38fcacec5a8
-rw-r--r--core/product.mk1
-rw-r--r--core/product_config.mk6
2 files changed, 7 insertions, 0 deletions
diff --git a/core/product.mk b/core/product.mk
index 83e64be..d0eaf83 100644
--- a/core/product.mk
+++ b/core/product.mk
@@ -65,6 +65,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 1cafc89..58437e9 100644
--- a/core/product_config.mk
+++ b/core/product_config.mk
@@ -342,6 +342,12 @@ endif
# The optional :<owner> 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 '='.