summaryrefslogtreecommitdiffstats
path: root/crypto/lollipop/Android.mk
diff options
context:
space:
mode:
authorDees Troy <dees_troy@teamw.in>2015-01-16 23:48:47 +0100
committerEthan Yonker <dees_troy@teamw.in>2015-05-15 17:52:46 +0200
commitc657cc00374f2dc397e60cd249d64f745edb056d (patch)
tree451e7a4266400f61271a357b3d6b5f351825a6a8 /crypto/lollipop/Android.mk
parentAdd option to use new heap_id_mask instead of old heap_mask (diff)
downloadandroid_bootable_recovery-c657cc00374f2dc397e60cd249d64f745edb056d.tar
android_bootable_recovery-c657cc00374f2dc397e60cd249d64f745edb056d.tar.gz
android_bootable_recovery-c657cc00374f2dc397e60cd249d64f745edb056d.tar.bz2
android_bootable_recovery-c657cc00374f2dc397e60cd249d64f745edb056d.tar.lz
android_bootable_recovery-c657cc00374f2dc397e60cd249d64f745edb056d.tar.xz
android_bootable_recovery-c657cc00374f2dc397e60cd249d64f745edb056d.tar.zst
android_bootable_recovery-c657cc00374f2dc397e60cd249d64f745edb056d.zip
Diffstat (limited to 'crypto/lollipop/Android.mk')
-rw-r--r--crypto/lollipop/Android.mk27
1 files changed, 27 insertions, 0 deletions
diff --git a/crypto/lollipop/Android.mk b/crypto/lollipop/Android.mk
index 148e328da..938e0d184 100644
--- a/crypto/lollipop/Android.mk
+++ b/crypto/lollipop/Android.mk
@@ -8,8 +8,35 @@ LOCAL_CFLAGS :=
LOCAL_SRC_FILES = cryptfs.c
LOCAL_SHARED_LIBRARIES := libcrypto libhardware libcutils
LOCAL_C_INCLUDES := external/openssl/include $(commands_recovery_local_path)/crypto/scrypt/lib/crypto
+
+ifeq ($(TARGET_HW_DISK_ENCRYPTION),true)
+ LOCAL_C_INCLUDES += device/qcom/common/cryptfs_hw
+ LOCAL_SHARED_LIBRARIES += libcryptfs_hw
+ LOCAL_CFLAGS += -DCONFIG_HW_DISK_ENCRYPTION
+endif
+
LOCAL_WHOLE_STATIC_LIBRARIES += libscrypttwrp_static
include $(BUILD_SHARED_LIBRARY)
+
+
+#include $(CLEAR_VARS)
+#LOCAL_MODULE := twrpdec
+#LOCAL_MODULE_TAGS := eng optional
+#LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
+#LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
+#LOCAL_SRC_FILES := main.c cryptfs.c
+#LOCAL_SHARED_LIBRARIES := libcrypto libhardware libcutils libc
+#LOCAL_C_INCLUDES := external/openssl/include $(commands_recovery_local_path)/crypto/scrypt/lib/crypto
+
+#ifeq ($(TARGET_HW_DISK_ENCRYPTION),true)
+# LOCAL_C_INCLUDES += device/qcom/common/cryptfs_hw
+# LOCAL_SHARED_LIBRARIES += libcryptfs_hw
+# LOCAL_CFLAGS += -DCONFIG_HW_DISK_ENCRYPTION
+#endif
+
+#LOCAL_WHOLE_STATIC_LIBRARIES += libscrypttwrp_static
+#include $(BUILD_EXECUTABLE)
+
endif