diff options
Diffstat (limited to 'Android.mk')
-rw-r--r-- | Android.mk | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/Android.mk b/Android.mk index 921a84bd9..ea6bb57c9 100644 --- a/Android.mk +++ b/Android.mk @@ -73,7 +73,8 @@ LOCAL_STATIC_LIBRARIES := LOCAL_SHARED_LIBRARIES := LOCAL_STATIC_LIBRARIES += libcrecovery libguitwrp -LOCAL_SHARED_LIBRARIES += libz libc libstlport libcutils libstdc++ libtar libblkid libminuitwrp libminadbd libmtdutils libminzip libaosprecovery +LOCAL_SHARED_LIBRARIES += libz libc libstlport libcutils libstdc++ libtar libblkid libminuitwrp libminadbd libmtdutils libminzip libaosprecovery libcorkscrew +LOCAL_SHARED_LIBRARIES += libgccdemangle ifneq ($(wildcard system/core/libsparse/Android.mk),) LOCAL_SHARED_LIBRARIES += libsparse @@ -84,6 +85,7 @@ ifeq ($(TW_OEM_BUILD),true) BOARD_HAS_NO_REAL_SDCARD := true TW_USE_TOOLBOX := true TW_EXCLUDE_SUPERSU := true + TW_EXCLUDE_MTP := true endif ifeq ($(TARGET_USERIMAGES_USE_EXT4), true) LOCAL_CFLAGS += -DUSE_EXT4 @@ -124,6 +126,10 @@ LOCAL_MODULE_TAGS := eng LOCAL_C_INCLUDES += system/extras/ext4_utils #TWRP Build Flags +ifeq ($(TW_EXCLUDE_MTP),) + LOCAL_SHARED_LIBRARIES += libtwrpmtp + LOCAL_CFLAGS += -DTW_HAS_MTP +endif ifneq ($(TW_NO_SCREEN_TIMEOUT),) LOCAL_CFLAGS += -DTW_NO_SCREEN_TIMEOUT endif @@ -373,7 +379,8 @@ include $(commands_recovery_local_path)/injecttwrp/Android.mk \ $(commands_recovery_local_path)/openaes/Android.mk \ $(commands_recovery_local_path)/toolbox/Android.mk \ $(commands_recovery_local_path)/libmincrypt/Android.mk \ - $(commands_recovery_local_path)/twrpTarMain/Android.mk + $(commands_recovery_local_path)/twrpTarMain/Android.mk \ + $(commands_recovery_local_path)/mtp/Android.mk ifeq ($(TW_INCLUDE_CRYPTO_SAMSUNG), true) include $(commands_recovery_local_path)/crypto/libcrypt_samsung/Android.mk @@ -411,5 +418,3 @@ endif ifeq ($(TW_INCLUDE_FB2PNG), true) include $(commands_recovery_local_path)/fb2png/Android.mk endif - -commands_recovery_local_path := |