summaryrefslogtreecommitdiffstats
path: root/minuitwrp/Android.mk
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2014-02-19 01:41:17 +0100
committerEthan Yonker <dees_troy@teamw.in>2014-04-01 18:13:58 +0200
commit4ee5ad751feb91fdc29b78e2025c1b6a775d8e92 (patch)
tree7c7dee162f78b7178de28b91bc09c43b39604ddc /minuitwrp/Android.mk
parentImprove USB Storage handling (diff)
downloadandroid_bootable_recovery-4ee5ad751feb91fdc29b78e2025c1b6a775d8e92.tar
android_bootable_recovery-4ee5ad751feb91fdc29b78e2025c1b6a775d8e92.tar.gz
android_bootable_recovery-4ee5ad751feb91fdc29b78e2025c1b6a775d8e92.tar.bz2
android_bootable_recovery-4ee5ad751feb91fdc29b78e2025c1b6a775d8e92.tar.lz
android_bootable_recovery-4ee5ad751feb91fdc29b78e2025c1b6a775d8e92.tar.xz
android_bootable_recovery-4ee5ad751feb91fdc29b78e2025c1b6a775d8e92.tar.zst
android_bootable_recovery-4ee5ad751feb91fdc29b78e2025c1b6a775d8e92.zip
Diffstat (limited to '')
-rw-r--r--minuitwrp/Android.mk24
1 files changed, 23 insertions, 1 deletions
diff --git a/minuitwrp/Android.mk b/minuitwrp/Android.mk
index 8c8ffaa88..4ee59d040 100644
--- a/minuitwrp/Android.mk
+++ b/minuitwrp/Android.mk
@@ -2,7 +2,7 @@ LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
-LOCAL_SRC_FILES := events.c resources.c
+LOCAL_SRC_FILES := events.c resources.c graphics_overlay.c
ifneq ($(TW_BOARD_CUSTOM_GRAPHICS),)
LOCAL_SRC_FILES += $(TW_BOARD_CUSTOM_GRAPHICS)
@@ -10,6 +10,18 @@ else
LOCAL_SRC_FILES += graphics.c
endif
+ifeq ($(TW_TARGET_USES_QCOM_BSP), true)
+ LOCAL_CFLAGS += -DMSM_BSP
+ ifeq ($(TARGET_PREBUILT_KERNEL),)
+ LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
+ LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
+ else
+ LOCAL_C_INCLUDES += bootable/recovery/minuitwrp/include
+ endif
+else
+ LOCAL_C_INCLUDES += bootable/recovery/minuitwrp/include
+endif
+
LOCAL_C_INCLUDES += \
external/libpng \
external/zlib \
@@ -38,6 +50,16 @@ ifeq ($(TWRP_EVENT_LOGGING), true)
LOCAL_CFLAGS += -D_EVENT_LOGGING
endif
+ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGBX_8888)
+ LOCAL_CFLAGS += -DRECOVERY_RGBX
+endif
+ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),BGRA_8888)
+ LOCAL_CFLAGS += -DRECOVERY_BGRA
+endif
+ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGB_565)
+ LOCAL_CFLAGS += -DRECOVERY_RGB_565
+endif
+
ifeq ($(TARGET_RECOVERY_PIXEL_FORMAT),"RGBX_8888")
LOCAL_CFLAGS += -DRECOVERY_RGBX
endif