summaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
authorMatt Mower <mowerm@gmail.com>2014-08-31 18:30:15 +0200
committerEthan Yonker <dees_troy@teamw.in>2014-09-03 17:53:37 +0200
commit55c75cad80479f35928f20fba7dcfbc3aec9994e (patch)
treec62fafb9c4f2039e253a4c41d783ee89c6e43772 /Android.mk
parentRefresh partition details after changing file system (diff)
downloadandroid_bootable_recovery-55c75cad80479f35928f20fba7dcfbc3aec9994e.tar
android_bootable_recovery-55c75cad80479f35928f20fba7dcfbc3aec9994e.tar.gz
android_bootable_recovery-55c75cad80479f35928f20fba7dcfbc3aec9994e.tar.bz2
android_bootable_recovery-55c75cad80479f35928f20fba7dcfbc3aec9994e.tar.lz
android_bootable_recovery-55c75cad80479f35928f20fba7dcfbc3aec9994e.tar.xz
android_bootable_recovery-55c75cad80479f35928f20fba7dcfbc3aec9994e.tar.zst
android_bootable_recovery-55c75cad80479f35928f20fba7dcfbc3aec9994e.zip
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk16
1 files changed, 14 insertions, 2 deletions
diff --git a/Android.mk b/Android.mk
index ea6bb57c9..089485a15 100644
--- a/Android.mk
+++ b/Android.mk
@@ -14,6 +14,14 @@
LOCAL_PATH := $(call my-dir)
+ifeq ($(RECOVERY_VARIANT),)
+ifeq ($(LOCAL_PATH),bootable/recovery)
+RECOVERY_VARIANT := twrp
+endif
+endif
+
+ifeq ($(RECOVERY_VARIANT),twrp)
+
include $(CLEAR_VARS)
TARGET_RECOVERY_GUI := true
@@ -321,7 +329,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := verifier_test
LOCAL_FORCE_STATIC_EXECUTABLE := true
LOCAL_MODULE_TAGS := tests
-LOCAL_C_INCLUDES := bootable/recovery/libmincrypt/includes
+LOCAL_C_INCLUDES := $(LOCAL_PATH)/libmincrypt/includes
LOCAL_SRC_FILES := \
verifier_test.cpp \
verifier.cpp \
@@ -339,7 +347,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := libaosprecovery
LOCAL_MODULE_TAGS := eng
LOCAL_MODULES_TAGS = optional
-LOCAL_C_INCLUDES := bootable/recovery/libmincrypt/includes
+LOCAL_C_INCLUDES := $(LOCAL_PATH)/libmincrypt/includes
LOCAL_SRC_FILES = adb_install.cpp bootloader.cpp verifier.cpp mtdutils/mtdutils.c legacy_property_service.c
LOCAL_SHARED_LIBRARIES += libc liblog libcutils libmtdutils
LOCAL_STATIC_LIBRARIES += libmincrypttwrp
@@ -418,3 +426,7 @@ endif
ifeq ($(TW_INCLUDE_FB2PNG), true)
include $(commands_recovery_local_path)/fb2png/Android.mk
endif
+
+commands_recovery_local_path :=
+
+endif