summaryrefslogtreecommitdiffstats
path: root/config/common.mk
diff options
context:
space:
mode:
Diffstat (limited to 'config/common.mk')
-rw-r--r--config/common.mk34
1 files changed, 3 insertions, 31 deletions
diff --git a/config/common.mk b/config/common.mk
index 70ab777..66d1834 100644
--- a/config/common.mk
+++ b/config/common.mk
@@ -1,36 +1,8 @@
PRODUCT_BRAND ?= replicant
-ifneq ($(TARGET_SCREEN_WIDTH) $(TARGET_SCREEN_HEIGHT),$(space))
-# determine the smaller dimension
-TARGET_BOOTANIMATION_SIZE := $(shell \
- if [ $(TARGET_SCREEN_WIDTH) -lt $(TARGET_SCREEN_HEIGHT) ]; then \
- echo $(TARGET_SCREEN_WIDTH); \
- else \
- echo $(TARGET_SCREEN_HEIGHT); \
- fi )
-
-# get a sorted list of the sizes
-bootanimation_sizes := $(subst .zip,, $(shell ls vendor/replicant/prebuilt/common/bootanimation))
-bootanimation_sizes := $(shell echo -e $(subst $(space),'\n',$(bootanimation_sizes)) | sort -rn)
-
-# find the appropriate size and set
-define check_and_set_bootanimation
-$(eval TARGET_BOOTANIMATION_NAME := $(shell \
- if [ -z "$(TARGET_BOOTANIMATION_NAME)" ]; then
- if [ $(1) -le $(TARGET_BOOTANIMATION_SIZE) ]; then \
- echo $(1); \
- exit 0; \
- fi;
- fi;
- echo $(TARGET_BOOTANIMATION_NAME); ))
-endef
-$(foreach size,$(bootanimation_sizes), $(call check_and_set_bootanimation,$(size)))
-
-ifeq ($(TARGET_BOOTANIMATION_HALF_RES),true)
-PRODUCT_BOOTANIMATION := vendor/replicant/prebuilt/common/bootanimation/halfres/$(TARGET_BOOTANIMATION_NAME).zip
-else
-PRODUCT_BOOTANIMATION := vendor/replicant/prebuilt/common/bootanimation/$(TARGET_BOOTANIMATION_NAME).zip
-endif
+ifneq ($(TARGET_BOOTANIMATION_NAME),)
+ PRODUCT_COPY_FILES += \
+ vendor/replicant/prebuilt/common/bootanimation/$(TARGET_BOOTANIMATION_NAME).zip:system/media/bootanimation.zip
endif
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0