From 2c4e4437b3e67aca2fc1c26262febb7c66726478 Mon Sep 17 00:00:00 2001 From: Dees_Troy Date: Thu, 18 Apr 2013 16:38:28 +0000 Subject: Fix CFLAGS for Samsung decrypt --- crypto/ics/Android.mk | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'crypto') diff --git a/crypto/ics/Android.mk b/crypto/ics/Android.mk index 88f3b845a..4529ae5cf 100644 --- a/crypto/ics/Android.mk +++ b/crypto/ics/Android.mk @@ -6,6 +6,18 @@ LOCAL_MODULE := libcryptfsics LOCAL_MODULE_TAGS := eng LOCAL_MODULES_TAGS = optional LOCAL_CFLAGS = +LOCAL_CFLAGS += -DCRYPTO_FS_TYPE=\"$(TW_CRYPTO_FS_TYPE)\" +ifeq ($(TW_INCLUDE_CRYPTO_SAMSUNG), true) + LOCAL_CFLAGS += -DTW_INCLUDE_CRYPTO_SAMSUNG=\"$(TW_INCLUDE_CRYPTO_SAMSUNG)\" + LOCAL_LDFLAGS += -ldl + LOCAL_STATIC_LIBRARIES += libcrypt_samsung +endif +ifneq ($(TW_INTERNAL_STORAGE_PATH),) + LOCAL_CFLAGS += -DTW_INTERNAL_STORAGE_PATH=$(TW_INTERNAL_STORAGE_PATH) +endif +ifneq ($(TW_EXTERNAL_STORAGE_PATH),) + LOCAL_CFLAGS += -DTW_EXTERNAL_STORAGE_PATH=$(TW_EXTERNAL_STORAGE_PATH) +endif LOCAL_SRC_FILES = cryptfs.c LOCAL_C_INCLUDES += system/extras/ext4_utils external/openssl/include LOCAL_SHARED_LIBRARIES += libc liblog libcutils libcrypto -- cgit v1.2.3