config: bootanimation: utilize bootanimation.zip module
Instead of copying everything ourselves, set TARGET_BOOTANIMATION,
which is used by vendor/lineage/bootanimation to override the
generated bootanimation.zip.
Change-Id: I23ad20385953675bd5220200b3fd39068516fe95
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
diff --git a/config/bootanimation.mk b/config/bootanimation.mk
index 7c76a1a..c2f850a 100644
--- a/config/bootanimation.mk
+++ b/config/bootanimation.mk
@@ -15,12 +15,9 @@
PRODUCT_SHUTANIMATION := $(wildcard vendor/shiftos/prebuilt/$(TARGET_SCREEN_RESOLUTION)/media/shutdownanimation.zip)
ifneq ($(PRODUCT_BOOTANIMATION),)
- PRODUCT_COPY_FILES += $(PRODUCT_BOOTANIMATION):$(TARGET_COPY_OUT_PRODUCT)/media/bootanimation.zip
+ TARGET_BOOTANIMATION := $(PRODUCT_BOOTANIMATION)
endif
ifneq ($(PRODUCT_SHUTANIMATION),)
- PRODUCT_COPY_FILES += $(PRODUCT_SHUTANIMATION):$(TARGET_COPY_OUT_PRODUCT)/media/shutdownanimation.zip
+ TARGET_SHUTANIMATION := $(PRODUCT_SHUTANIMATION)
endif
-
-# Remove existing bootanimation packages
-PRODUCT_PACKAGES_REMOVAL += bootanimation.zip