Ethan Yonker | bd7492d | 2016-12-07 13:55:01 -0600 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | ifeq ($(TW_INCLUDE_CRYPTO), true) |
| 3 | include $(CLEAR_VARS) |
| 4 | |
| 5 | LOCAL_MODULE := libe4crypt |
| 6 | LOCAL_MODULE_TAGS := eng optional |
| 7 | LOCAL_CFLAGS := |
Ethan Yonker | 79f88bd | 2016-12-09 14:52:12 -0600 | [diff] [blame] | 8 | LOCAL_SRC_FILES := Decrypt.cpp Ext4Crypt.cpp Keymaster.cpp KeyStorage.cpp ScryptParameters.cpp Utils.cpp HashPassword.cpp ext4_crypt.cpp |
Ethan Yonker | bd7492d | 2016-12-07 13:55:01 -0600 | [diff] [blame] | 9 | LOCAL_SHARED_LIBRARIES := libselinux libc libc++ libext4_utils libsoftkeymaster libbase libcrypto libcutils libkeymaster_messages libhardware libprotobuf-cpp-lite |
| 10 | LOCAL_STATIC_LIBRARIES := libscrypt_static |
| 11 | LOCAL_C_INCLUDES := system/extras/ext4_utils external/scrypt/lib/crypto system/security/keystore hardware/libhardware/include/hardware system/security/softkeymaster/include/keymaster system/keymaster/include |
| 12 | |
| 13 | ifneq ($(wildcard hardware/libhardware/include/hardware/keymaster0.h),) |
| 14 | LOCAL_CFLAGS += -DTW_CRYPTO_HAVE_KEYMASTERX |
| 15 | LOCAL_C_INCLUDES += external/boringssl/src/include |
| 16 | endif |
| 17 | |
| 18 | include $(BUILD_SHARED_LIBRARY) |
| 19 | |
| 20 | |
| 21 | |
| 22 | include $(CLEAR_VARS) |
| 23 | LOCAL_MODULE := twrpfbe |
| 24 | LOCAL_MODULE_TAGS := optional |
| 25 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 26 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 27 | LOCAL_SRC_FILES := main.cpp |
| 28 | LOCAL_SHARED_LIBRARIES := libe4crypt |
| 29 | #LOCAL_LDFLAGS += -Wl,-dynamic-linker,/sbin/linker64 |
| 30 | |
| 31 | include $(BUILD_EXECUTABLE) |
| 32 | |
Ethan Yonker | 79f88bd | 2016-12-09 14:52:12 -0600 | [diff] [blame] | 33 | include $(CLEAR_VARS) |
| 34 | LOCAL_MODULE := e4policyget |
| 35 | LOCAL_MODULE_TAGS := optional |
| 36 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 37 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 38 | LOCAL_SRC_FILES := e4policyget.cpp |
| 39 | LOCAL_SHARED_LIBRARIES := libe4crypt |
| 40 | LOCAL_LDFLAGS += -Wl,-dynamic-linker,/sbin/linker64 |
| 41 | |
| 42 | include $(BUILD_EXECUTABLE) |
| 43 | |
Ethan Yonker | bd7492d | 2016-12-07 13:55:01 -0600 | [diff] [blame] | 44 | endif |