summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbigbiff bigbiff <bigbiff@teamw.in>2013-11-16 19:25:27 +0100
committerbigbiff bigbiff <bigbiff@teamw.in>2013-11-16 19:47:30 +0100
commit163d47480312bef2ed7be5c46f0e3d6bde05966b (patch)
treed970c7047c320ff7791b7a29c49a0b80e2f1f5b7
parentAdd warning if DEVICE_RESOLUTION is not set in BoardConfig.mk (diff)
downloadandroid_bootable_recovery-163d47480312bef2ed7be5c46f0e3d6bde05966b.tar
android_bootable_recovery-163d47480312bef2ed7be5c46f0e3d6bde05966b.tar.gz
android_bootable_recovery-163d47480312bef2ed7be5c46f0e3d6bde05966b.tar.bz2
android_bootable_recovery-163d47480312bef2ed7be5c46f0e3d6bde05966b.tar.lz
android_bootable_recovery-163d47480312bef2ed7be5c46f0e3d6bde05966b.tar.xz
android_bootable_recovery-163d47480312bef2ed7be5c46f0e3d6bde05966b.tar.zst
android_bootable_recovery-163d47480312bef2ed7be5c46f0e3d6bde05966b.zip
-rw-r--r--gui/Android.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/gui/Android.mk b/gui/Android.mk
index 32b1675d1..ac0b2037c 100644
--- a/gui/Android.mk
+++ b/gui/Android.mk
@@ -68,7 +68,7 @@ ifeq ($(HAVE_SELINUX), true)
LOCAL_CFLAGS += -DHAVE_SELINUX
endif
-ifndef DEVICE_RESOLUTION
+ifeq ($(DEVICE_RESOLUTION),)
$(warning ********************************************************************************)
$(warning * DEVICE_RESOLUTION is NOT SET in BoardConfig.mk )
$(warning * Please see http://tinyw.in/nP7d for details )
@@ -76,6 +76,14 @@ $(warning **********************************************************************
$(error stopping)
endif
+ifeq "$(wildcard bootable/recovery/gui/devices/$(DEVICE_RESOLUTION))" ""
+$(warning ********************************************************************************)
+$(warning * DEVICE_RESOLUTION ($(DEVICE_RESOLUTION)) does NOT EXIST in bootable/recovery/gui/devices )
+$(warning * Please choose an existing theme or create a new one for your device )
+$(warning ********************************************************************************)
+$(error stopping)
+endif
+
LOCAL_C_INCLUDES += bionic external/stlport/stlport $(commands_recovery_local_path)/gui/devices/$(DEVICE_RESOLUTION)
include $(BUILD_STATIC_LIBRARY)