a3955269 | 6ff55ce | 2013-01-08 16:14:56 +0000 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | include $(CLEAR_VARS) |
Trevor Drake | 27fab9b | 2013-05-16 01:58:13 +0100 | [diff] [blame] | 3 | ifeq ($(TW_INCLUDE_CRYPTO), true) |
a3955269 | 6ff55ce | 2013-01-08 16:14:56 +0000 | [diff] [blame] | 4 | LOCAL_SRC_FILES:= \ |
| 5 | cryptfs.c |
| 6 | |
| 7 | LOCAL_CFLAGS:= -g -c -W -I../fs_mgr/include |
| 8 | LOCAL_CFLAGS += -DTW_INCLUDE_CRYPTO |
| 9 | LOCAL_CFLAGS += -DCRYPTO_FS_TYPE=\"$(TW_CRYPTO_FS_TYPE)\" |
| 10 | LOCAL_CFLAGS += -DCRYPTO_REAL_BLKDEV=\"$(TW_CRYPTO_REAL_BLKDEV)\" |
| 11 | LOCAL_CFLAGS += -DCRYPTO_MNT_POINT=\"$(TW_CRYPTO_MNT_POINT)\" |
| 12 | LOCAL_CFLAGS += -DCRYPTO_FS_OPTIONS=\"$(TW_CRYPTO_FS_OPTIONS)\" |
| 13 | LOCAL_CFLAGS += -DCRYPTO_FS_FLAGS=\"$(TW_CRYPTO_FS_FLAGS)\" |
| 14 | LOCAL_CFLAGS += -DCRYPTO_KEY_LOC=\"$(TW_CRYPTO_KEY_LOC)\" |
| 15 | ifdef TW_CRYPTO_SD_REAL_BLKDEV |
| 16 | LOCAL_CFLAGS += -DCRYPTO_SD_REAL_BLKDEV=\"$(TW_CRYPTO_SD_REAL_BLKDEV)\" |
| 17 | LOCAL_CFLAGS += -DCRYPTO_SD_FS_TYPE=\"$(TW_CRYPTO_SD_FS_TYPE)\" |
| 18 | endif |
| 19 | ifneq ($(TW_INTERNAL_STORAGE_PATH),) |
| 20 | LOCAL_CFLAGS += -DTW_INTERNAL_STORAGE_PATH=$(TW_INTERNAL_STORAGE_PATH) |
| 21 | endif |
| 22 | ifneq ($(TW_INTERNAL_STORAGE_MOUNT_POINT),) |
| 23 | LOCAL_CFLAGS += -DTW_INTERNAL_STORAGE_MOUNT_POINT=$(TW_INTERNAL_STORAGE_MOUNT_POINT) |
| 24 | endif |
| 25 | ifneq ($(TW_EXTERNAL_STORAGE_PATH),) |
| 26 | LOCAL_CFLAGS += -DTW_EXTERNAL_STORAGE_PATH=$(TW_EXTERNAL_STORAGE_PATH) |
| 27 | endif |
| 28 | ifneq ($(TW_EXTERNAL_STORAGE_MOUNT_POINT),) |
| 29 | LOCAL_CFLAGS += -DTW_EXTERNAL_STORAGE_MOUNT_POINT=$(TW_EXTERNAL_STORAGE_MOUNT_POINT) |
| 30 | endif |
| 31 | |
| 32 | LOCAL_C_INCLUDES += system/extras/ext4_utils external/openssl/include |
| 33 | LOCAL_MODULE:=cryptfs |
| 34 | LOCAL_MODULE_TAGS:= eng |
| 35 | LOCAL_SHARED_LIBRARIES += libc libcutils |
| 36 | LOCAL_SHARED_LIBRARIES += libcrypto |
| 37 | |
| 38 | |
| 39 | #LOCAL_LDFLAGS += -L$(TARGET_OUT_SHARED_LIBRARIES) -lsec_km -lsec_ecryptfs -ldl |
| 40 | LOCAL_LDFLAGS += -ldl |
| 41 | |
| 42 | LOCAL_STATIC_LIBRARIES += libmtdutils |
OliverG96 | 06b91e7 | 2013-12-06 00:10:56 +0000 | [diff] [blame] | 43 | LOCAL_STATIC_LIBRARIES += libminzip libunz |
| 44 | LOCAL_STATIC_LIBRARIES += libpixelflinger_static libpng libmincrypttwrp |
| 45 | LOCAL_SHARED_LIBRARIES += libz libc libstlport libcutils libstdc++ libext4_utils |
a3955269 | 6ff55ce | 2013-01-08 16:14:56 +0000 | [diff] [blame] | 46 | LOCAL_STATIC_LIBRARIES += libcrypt_samsung |
| 47 | |
| 48 | |
| 49 | LOCAL_STATIC_LIBRARIES += $(TARGET_RECOVERY_UI_LIB) |
| 50 | #LOCAL_STATIC_LIBRARIES += libfs_mgrtwrp |
| 51 | LOCAL_MODULE_CLASS := UTILITY_EXECUTABLES |
| 52 | LOCAL_MODULE_PATH := $(PRODUCT_OUT)/utilities |
| 53 | include $(BUILD_EXECUTABLE) |
OliverG96 | 06b91e7 | 2013-12-06 00:10:56 +0000 | [diff] [blame] | 54 | endif |