blob: 938e0d1840549a160e2bbb4861991a1fa5fe1ddd [file] [log] [blame]
Ethan Yonker4eca40d2014-11-11 14:52:28 -06001LOCAL_PATH := $(call my-dir)
thatceb7b8e2014-12-09 23:15:16 +01002ifeq ($(TW_INCLUDE_CRYPTO), true)
Ethan Yonker4eca40d2014-11-11 14:52:28 -06003include $(CLEAR_VARS)
4
Ethan Yonker4eca40d2014-11-11 14:52:28 -06005LOCAL_MODULE := libcryptfslollipop
6LOCAL_MODULE_TAGS := eng optional
7LOCAL_CFLAGS :=
8LOCAL_SRC_FILES = cryptfs.c
that183a6f82014-12-31 18:30:50 +01009LOCAL_SHARED_LIBRARIES := libcrypto libhardware libcutils
10LOCAL_C_INCLUDES := external/openssl/include $(commands_recovery_local_path)/crypto/scrypt/lib/crypto
Dees Troyc657cc02015-01-16 22:48:47 +000011
12ifeq ($(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
16endif
17
Ethan Yonker253368a2014-11-25 15:00:52 -060018LOCAL_WHOLE_STATIC_LIBRARIES += libscrypttwrp_static
19
20include $(BUILD_SHARED_LIBRARY)
21
Dees Troyc657cc02015-01-16 22:48:47 +000022
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 Yonker4eca40d2014-11-11 14:52:28 -060042endif