aboutsummaryrefslogtreecommitdiffstats
path: root/minui/Android.mk
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2012-07-11 13:21:02 -0700
committerDoug Zongker <dougz@android.com>2012-07-11 13:21:02 -0700
commit9c5efe6bdecfaa37fdc7c552253d2bd53235b117 (patch)
tree9f8e66758b92fcfd18db572907e7b56c2e5fc7e0 /minui/Android.mk
parent956cde8578c40ec812a933a14cb4e82f2c0de320 (diff)
downloadbootable_recovery-9c5efe6bdecfaa37fdc7c552253d2bd53235b117.zip
bootable_recovery-9c5efe6bdecfaa37fdc7c552253d2bd53235b117.tar.gz
bootable_recovery-9c5efe6bdecfaa37fdc7c552253d2bd53235b117.tar.bz2
allow double-quotes or not in TARGET_RECOVERY_PIXEL_FORMAT
Change-Id: I0bf22c87c51a34ee4a839c4966277fad8150bd59
Diffstat (limited to 'minui/Android.mk')
-rw-r--r--minui/Android.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/minui/Android.mk b/minui/Android.mk
index 4c4d7c7..285ac62 100644
--- a/minui/Android.mk
+++ b/minui/Android.mk
@@ -9,10 +9,14 @@ LOCAL_C_INCLUDES +=\
LOCAL_MODULE := libminui
-ifeq ($(TARGET_RECOVERY_PIXEL_FORMAT),"RGBX_8888")
+# This used to compare against values in double-quotes (which are just
+# ordinary characters in this context). Strip double-quotes from the
+# value so that either will work.
+
+ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGBX_8888)
LOCAL_CFLAGS += -DRECOVERY_RGBX
endif
-ifeq ($(TARGET_RECOVERY_PIXEL_FORMAT),"BGRA_8888")
+ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),BGRA_8888)
LOCAL_CFLAGS += -DRECOVERY_BGRA
endif