blob: f0388c22841a887539ba0863d53dc320d9d97b5a [file] [log] [blame]
a39552696ff55ce2013-01-08 16:14:56 +00001LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
Trevor Drake27fab9b2013-05-16 01:58:13 +01003ifeq ($(TW_INCLUDE_CRYPTO), true)
a39552696ff55ce2013-01-08 16:14:56 +00004LOCAL_SRC_FILES:= \
5 cryptfs.c
6
7LOCAL_CFLAGS:= -g -c -W -I../fs_mgr/include
8LOCAL_CFLAGS += -DTW_INCLUDE_CRYPTO
9LOCAL_CFLAGS += -DCRYPTO_FS_TYPE=\"$(TW_CRYPTO_FS_TYPE)\"
10LOCAL_CFLAGS += -DCRYPTO_REAL_BLKDEV=\"$(TW_CRYPTO_REAL_BLKDEV)\"
11LOCAL_CFLAGS += -DCRYPTO_MNT_POINT=\"$(TW_CRYPTO_MNT_POINT)\"
12LOCAL_CFLAGS += -DCRYPTO_FS_OPTIONS=\"$(TW_CRYPTO_FS_OPTIONS)\"
13LOCAL_CFLAGS += -DCRYPTO_FS_FLAGS=\"$(TW_CRYPTO_FS_FLAGS)\"
14LOCAL_CFLAGS += -DCRYPTO_KEY_LOC=\"$(TW_CRYPTO_KEY_LOC)\"
15ifdef 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)\"
18endif
19ifneq ($(TW_INTERNAL_STORAGE_PATH),)
20 LOCAL_CFLAGS += -DTW_INTERNAL_STORAGE_PATH=$(TW_INTERNAL_STORAGE_PATH)
21endif
22ifneq ($(TW_INTERNAL_STORAGE_MOUNT_POINT),)
23 LOCAL_CFLAGS += -DTW_INTERNAL_STORAGE_MOUNT_POINT=$(TW_INTERNAL_STORAGE_MOUNT_POINT)
24endif
25ifneq ($(TW_EXTERNAL_STORAGE_PATH),)
26 LOCAL_CFLAGS += -DTW_EXTERNAL_STORAGE_PATH=$(TW_EXTERNAL_STORAGE_PATH)
27endif
28ifneq ($(TW_EXTERNAL_STORAGE_MOUNT_POINT),)
29 LOCAL_CFLAGS += -DTW_EXTERNAL_STORAGE_MOUNT_POINT=$(TW_EXTERNAL_STORAGE_MOUNT_POINT)
30endif
31
32LOCAL_C_INCLUDES += system/extras/ext4_utils external/openssl/include
33LOCAL_MODULE:=cryptfs
34LOCAL_MODULE_TAGS:= eng
35LOCAL_SHARED_LIBRARIES += libc libcutils
36LOCAL_SHARED_LIBRARIES += libcrypto
37
38
39#LOCAL_LDFLAGS += -L$(TARGET_OUT_SHARED_LIBRARIES) -lsec_km -lsec_ecryptfs -ldl
40LOCAL_LDFLAGS += -ldl
41
42LOCAL_STATIC_LIBRARIES += libmtdutils
OliverG9606b91e72013-12-06 00:10:56 +000043LOCAL_STATIC_LIBRARIES += libminzip libunz
44LOCAL_STATIC_LIBRARIES += libpixelflinger_static libpng libmincrypttwrp
45LOCAL_SHARED_LIBRARIES += libz libc libstlport libcutils libstdc++ libext4_utils
a39552696ff55ce2013-01-08 16:14:56 +000046LOCAL_STATIC_LIBRARIES += libcrypt_samsung
47
48
49LOCAL_STATIC_LIBRARIES += $(TARGET_RECOVERY_UI_LIB)
50#LOCAL_STATIC_LIBRARIES += libfs_mgrtwrp
51LOCAL_MODULE_CLASS := UTILITY_EXECUTABLES
52LOCAL_MODULE_PATH := $(PRODUCT_OUT)/utilities
53include $(BUILD_EXECUTABLE)
OliverG9606b91e72013-12-06 00:10:56 +000054endif