summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Mower <mowerm@gmail.com>2014-10-07 01:03:39 +0200
committerDees Troy <dees_troy@teamw.in>2014-10-08 18:24:06 +0200
commit66766fe40862d84b24ed665e1c381897ab4be98d (patch)
tree37946f899f528d92bd3f99ced25e88779244b770
parentAttempt to fix md5 issue with backups (diff)
downloadandroid_bootable_recovery-66766fe40862d84b24ed665e1c381897ab4be98d.tar
android_bootable_recovery-66766fe40862d84b24ed665e1c381897ab4be98d.tar.gz
android_bootable_recovery-66766fe40862d84b24ed665e1c381897ab4be98d.tar.bz2
android_bootable_recovery-66766fe40862d84b24ed665e1c381897ab4be98d.tar.lz
android_bootable_recovery-66766fe40862d84b24ed665e1c381897ab4be98d.tar.xz
android_bootable_recovery-66766fe40862d84b24ed665e1c381897ab4be98d.tar.zst
android_bootable_recovery-66766fe40862d84b24ed665e1c381897ab4be98d.zip
-rw-r--r--Android.mk14
1 files changed, 9 insertions, 5 deletions
diff --git a/Android.mk b/Android.mk
index 10dc79fd7..03e1a6962 100644
--- a/Android.mk
+++ b/Android.mk
@@ -14,13 +14,17 @@
LOCAL_PATH := $(call my-dir)
-ifeq ($(RECOVERY_VARIANT),)
-ifeq ($(LOCAL_PATH),bootable/recovery)
-RECOVERY_VARIANT := twrp
-endif
+ifdef project-path-for
+ ifeq ($(LOCAL_PATH),$(call project-path-for,recovery))
+ PROJECT_PATH_AGREES := true
+ endif
+else
+ ifeq ($(LOCAL_PATH),bootable/recovery)
+ PROJECT_PATH_AGREES := true
+ endif
endif
-ifeq ($(RECOVERY_VARIANT),twrp)
+ifeq ($(PROJECT_PATH_AGREES),true)
include $(CLEAR_VARS)