2014-01-20 21:55:32 +00:00
|
|
|
ifeq ($(TARGET_HW_DISK_ENCRYPTION),true)
|
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
sourceFiles := \
|
|
|
|
cryptfs_hw.c
|
|
|
|
|
|
|
|
commonSharedLibraries := \
|
|
|
|
libcutils \
|
|
|
|
libutils \
|
|
|
|
libdl
|
|
|
|
|
|
|
|
LOCAL_C_INCLUDES := $(commonIncludes)
|
|
|
|
LOCAL_SRC_FILES := $(sourceFiles)
|
|
|
|
|
|
|
|
LOCAL_MODULE_TAGS := optional
|
|
|
|
LOCAL_MODULE:= libcryptfs_hw
|
|
|
|
LOCAL_SHARED_LIBRARIES := $(commonSharedLibraries)
|
|
|
|
|
|
|
|
LOCAL_MODULE_OWNER := qcom
|
|
|
|
|
2014-10-09 00:43:05 +00:00
|
|
|
# USE_ICE_FOR_STORAGE_ENCRYPTION would be true in future if
|
|
|
|
# TARGET_USE_EMMC_USE_ICE is set
|
|
|
|
ifeq ($(TARGET_USE_UFS_ICE),true)
|
|
|
|
LOCAL_CFLAGS += -DUSE_ICE_FOR_STORAGE_ENCRYPTION
|
|
|
|
endif
|
|
|
|
|
2014-01-20 21:55:32 +00:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
endif
|