summaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2016-08-26 17:05:03 +0200
committerEthan Yonker <dees_troy@teamw.in>2016-08-26 17:05:03 +0200
commit534d4e0612d96210fe76c03c8c0a0355e0f20453 (patch)
tree05324fc8c6c0d97d76fbc607d72ced81f5a0bb9d /Android.mk
parentFix compatibility with 5.1 (diff)
downloadandroid_bootable_recovery-534d4e0612d96210fe76c03c8c0a0355e0f20453.tar
android_bootable_recovery-534d4e0612d96210fe76c03c8c0a0355e0f20453.tar.gz
android_bootable_recovery-534d4e0612d96210fe76c03c8c0a0355e0f20453.tar.bz2
android_bootable_recovery-534d4e0612d96210fe76c03c8c0a0355e0f20453.tar.lz
android_bootable_recovery-534d4e0612d96210fe76c03c8c0a0355e0f20453.tar.xz
android_bootable_recovery-534d4e0612d96210fe76c03c8c0a0355e0f20453.tar.zst
android_bootable_recovery-534d4e0612d96210fe76c03c8c0a0355e0f20453.zip
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk19
1 files changed, 14 insertions, 5 deletions
diff --git a/Android.mk b/Android.mk
index c28426aa6..1e894f1f5 100644
--- a/Android.mk
+++ b/Android.mk
@@ -119,7 +119,10 @@ LOCAL_SHARED_LIBRARIES += libaosprecovery libz libc libcutils libstdc++ libtar l
LOCAL_SHARED_LIBRARIES += libcrecovery
ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23; echo $$?),0)
- LOCAL_SHARED_LIBRARIES += libstlport libmincrypttwrp
+ LOCAL_SHARED_LIBRARIES += libstlport
+endif
+ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 24; echo $$?),0)
+ LOCAL_SHARED_LIBRARIES += libmincrypttwrp
LOCAL_C_INCLUDES += $(LOCAL_PATH)/libmincrypt/includes
LOCAL_CFLAGS += -DUSE_OLD_VERIFIER
else
@@ -563,12 +566,18 @@ LOCAL_CFLAGS := -std=gnu++0x
LOCAL_SRC_FILES := adb_install.cpp asn1_decoder.cpp bootloader.cpp legacy_property_service.cpp set_metadata.cpp tw_atomic.cpp
LOCAL_SHARED_LIBRARIES += libc liblog libcutils libmtdutils libfusesideload libselinux
ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23; echo $$?),0)
- LOCAL_SHARED_LIBRARIES += libstdc++ libstlport libmincrypttwrp
- LOCAL_C_INCLUDES := bionic external/stlport/stlport $(LOCAL_PATH)/libmincrypt/includes
+ LOCAL_SHARED_LIBRARIES += libstdc++ libstlport
+ LOCAL_C_INCLUDES := bionic external/stlport/stlport
+else
+ LOCAL_SHARED_LIBRARIES += libc++
+endif
+ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 24; echo $$?),0)
+ LOCAL_SHARED_LIBRARIES += libmincrypttwrp
+ LOCAL_C_INCLUDES := $(LOCAL_PATH)/libmincrypt/includes
LOCAL_SRC_FILES += oldverifier/verifier.cpp
LOCAL_CFLAGS += -DUSE_OLD_VERIFIER
else
- LOCAL_SHARED_LIBRARIES += libc++ libcrypto
+ LOCAL_SHARED_LIBRARIES += libcrypto
LOCAL_SRC_FILES += verifier.cpp
endif
@@ -638,7 +647,7 @@ include $(commands_recovery_local_path)/injecttwrp/Android.mk \
$(commands_recovery_local_path)/adbbu/Android.mk \
$(commands_recovery_local_path)/libpixelflinger/Android.mk
-ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23; echo $$?),0)
+ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 24; echo $$?),0)
include $(commands_recovery_local_path)/libmincrypt/Android.mk
endif