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