Ethan Yonker | 4eca40d | 2014-11-11 14:52:28 -0600 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
that | ceb7b8e | 2014-12-09 23:15:16 +0100 | [diff] [blame] | 2 | ifeq ($(TW_INCLUDE_CRYPTO), true) |
Ethan Yonker | 4eca40d | 2014-11-11 14:52:28 -0600 | [diff] [blame] | 3 | include $(CLEAR_VARS) |
| 4 | |
Ethan Yonker | 4eca40d | 2014-11-11 14:52:28 -0600 | [diff] [blame] | 5 | LOCAL_MODULE := libcryptfslollipop |
| 6 | LOCAL_MODULE_TAGS := eng optional |
| 7 | LOCAL_CFLAGS := |
| 8 | LOCAL_SRC_FILES = cryptfs.c |
that | 183a6f8 | 2014-12-31 18:30:50 +0100 | [diff] [blame] | 9 | LOCAL_SHARED_LIBRARIES := libcrypto libhardware libcutils |
| 10 | LOCAL_C_INCLUDES := external/openssl/include $(commands_recovery_local_path)/crypto/scrypt/lib/crypto |
Dees Troy | c657cc0 | 2015-01-16 22:48:47 +0000 | [diff] [blame^] | 11 | |
| 12 | ifeq ($(TARGET_HW_DISK_ENCRYPTION),true) |
| 13 | LOCAL_C_INCLUDES += device/qcom/common/cryptfs_hw |
| 14 | LOCAL_SHARED_LIBRARIES += libcryptfs_hw |
| 15 | LOCAL_CFLAGS += -DCONFIG_HW_DISK_ENCRYPTION |
| 16 | endif |
| 17 | |
Ethan Yonker | 253368a | 2014-11-25 15:00:52 -0600 | [diff] [blame] | 18 | LOCAL_WHOLE_STATIC_LIBRARIES += libscrypttwrp_static |
| 19 | |
| 20 | include $(BUILD_SHARED_LIBRARY) |
| 21 | |
Dees Troy | c657cc0 | 2015-01-16 22:48:47 +0000 | [diff] [blame^] | 22 | |
| 23 | |
| 24 | #include $(CLEAR_VARS) |
| 25 | #LOCAL_MODULE := twrpdec |
| 26 | #LOCAL_MODULE_TAGS := eng optional |
| 27 | #LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 28 | #LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 29 | #LOCAL_SRC_FILES := main.c cryptfs.c |
| 30 | #LOCAL_SHARED_LIBRARIES := libcrypto libhardware libcutils libc |
| 31 | #LOCAL_C_INCLUDES := external/openssl/include $(commands_recovery_local_path)/crypto/scrypt/lib/crypto |
| 32 | |
| 33 | #ifeq ($(TARGET_HW_DISK_ENCRYPTION),true) |
| 34 | # LOCAL_C_INCLUDES += device/qcom/common/cryptfs_hw |
| 35 | # LOCAL_SHARED_LIBRARIES += libcryptfs_hw |
| 36 | # LOCAL_CFLAGS += -DCONFIG_HW_DISK_ENCRYPTION |
| 37 | #endif |
| 38 | |
| 39 | #LOCAL_WHOLE_STATIC_LIBRARIES += libscrypttwrp_static |
| 40 | #include $(BUILD_EXECUTABLE) |
| 41 | |
Ethan Yonker | 4eca40d | 2014-11-11 14:52:28 -0600 | [diff] [blame] | 42 | endif |