Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 56030be8 authored by LuK1337's avatar LuK1337 Committed by Tom Powell
Browse files

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
parent a3f97c75
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -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