lineage: Don't error out when screen size isn't set

* Generic AOSP devices don't set it and we don't really
  want to fork them just to set the bootanimation size.

Change-Id: I684454ae07348ee29c832f86f56bcfbd4f627b4d
gugelfrei
LuK1337 6 years ago committed by Tom Powell
parent a3f97c75bf
commit 56030be8a5

@ -15,6 +15,15 @@
# limitations under the License.
#
ifeq ($(TARGET_SCREEN_WIDTH),)
$(warning TARGET_SCREEN_WIDTH is not set, using default value: 1080)
TARGET_SCREEN_WIDTH := 1080
endif
ifeq ($(TARGET_SCREEN_HEIGHT),)
$(warning TARGET_SCREEN_HEIGHT is not set, using default value: 1920)
TARGET_SCREEN_HEIGHT := 1920
endif
define build-bootanimation
sh vendor/lineage/bootanimation/generate-bootanimation.sh \
$(TARGET_SCREEN_WIDTH) \
@ -41,13 +50,6 @@ ifeq ($(TARGET_BOOTANIMATION),)
endif
endif
ifeq ($(TARGET_SCREEN_WIDTH),)
$(error TARGET_SCREEN_WIDTH must be set)
endif
ifeq ($(TARGET_SCREEN_HEIGHT),)
$(error TARGET_SCREEN_HEIGHT must be set)
endif
include $(CLEAR_VARS)
LOCAL_MODULE := bootanimation.zip
LOCAL_MODULE_CLASS := ETC

Loading…
Cancel
Save