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 | c798c9c | 2015-10-09 11:15:26 -0500 | [diff] [blame] | 18 | ifneq ($(wildcard hardware/libhardware/include/hardware/keymaster0.h),) |
| 19 | LOCAL_CFLAGS += -DTW_CRYPTO_HAVE_KEYMASTERX |
| 20 | LOCAL_C_INCLUDES += external/boringssl/src/include |
| 21 | endif |
| 22 | |
Ethan Yonker | 253368a | 2014-11-25 15:00:52 -0600 | [diff] [blame] | 23 | LOCAL_WHOLE_STATIC_LIBRARIES += libscrypttwrp_static |
| 24 | |
| 25 | include $(BUILD_SHARED_LIBRARY) |
| 26 | |
Dees Troy | c657cc0 | 2015-01-16 22:48:47 +0000 | [diff] [blame] | 27 | |
| 28 | |
Ethan Yonker | c798c9c | 2015-10-09 11:15:26 -0500 | [diff] [blame] | 29 | include $(CLEAR_VARS) |
| 30 | LOCAL_MODULE := twrpdec |
| 31 | LOCAL_MODULE_TAGS := optional |
| 32 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 33 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 34 | LOCAL_SRC_FILES := main.c cryptfs.c |
| 35 | LOCAL_SHARED_LIBRARIES := libcrypto libhardware libcutils libc |
| 36 | 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] | 37 | |
Ethan Yonker | c798c9c | 2015-10-09 11:15:26 -0500 | [diff] [blame] | 38 | ifeq ($(TARGET_HW_DISK_ENCRYPTION),true) |
| 39 | LOCAL_C_INCLUDES += device/qcom/common/cryptfs_hw |
| 40 | LOCAL_SHARED_LIBRARIES += libcryptfs_hw |
| 41 | LOCAL_CFLAGS += -DCONFIG_HW_DISK_ENCRYPTION |
| 42 | endif |
Dees Troy | c657cc0 | 2015-01-16 22:48:47 +0000 | [diff] [blame] | 43 | |
Ethan Yonker | c798c9c | 2015-10-09 11:15:26 -0500 | [diff] [blame] | 44 | ifneq ($(wildcard hardware/libhardware/include/hardware/keymaster0.h),) |
| 45 | LOCAL_CFLAGS += -DTW_CRYPTO_HAVE_KEYMASTERX |
| 46 | LOCAL_C_INCLUDES += external/boringssl/src/include |
| 47 | endif |
| 48 | |
| 49 | LOCAL_WHOLE_STATIC_LIBRARIES += libscrypttwrp_static |
| 50 | include $(BUILD_EXECUTABLE) |
Dees Troy | c657cc0 | 2015-01-16 22:48:47 +0000 | [diff] [blame] | 51 | |
Ethan Yonker | 4eca40d | 2014-11-11 14:52:28 -0600 | [diff] [blame] | 52 | endif |