blob: 84e3c3846628fc33c998a4f03d1a5fd8f9d2cc8e [file] [log] [blame]
David Ngf09fb2e2018-03-22 23:43:59 -07001ifeq ($(TARGET_USES_QSSI),true)
2ifeq ($(TARGET_HW_DISK_ENCRYPTION),true)
3LOCAL_PATH:= $(call my-dir)
4include $(CLEAR_VARS)
5
6sourceFiles := \
7 cryptfs_hw.c
8
9commonSharedLibraries := \
10 libcutils \
11 libutils \
12 libdl \
13 libhardware \
14 liblog
15
16commonIncludes := \
17 hardware/libhardware/include/hardware/ \
18 $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
19
20LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
21
22LOCAL_C_INCLUDES := $(commonIncludes)
23LOCAL_SRC_FILES := $(sourceFiles)
24
25LOCAL_MODULE_TAGS := optional
26LOCAL_MODULE:= libcryptfs_hw
27LOCAL_SHARED_LIBRARIES := $(commonSharedLibraries)
28
29LOCAL_MODULE_OWNER := qti
30
31# USE_ICE_FOR_STORAGE_ENCRYPTION would be true in future if
32# TARGET_USE_EMMC_USE_ICE is set
33ifeq ($(TARGET_USE_UFS_ICE),true)
34LOCAL_CFLAGS += -DUSE_ICE_FOR_STORAGE_ENCRYPTION
35endif
36
37include $(BUILD_SHARED_LIBRARY)
38endif
39endif