bigbiff | 7ba7500 | 2020-04-11 20:47:09 -0400 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | ifeq ($(TW_INCLUDE_CRYPTO), true) |
| 3 | include $(CLEAR_VARS) |
| 4 | |
| 5 | LOCAL_MODULE := libtwrpfscrypt |
| 6 | LOCAL_MODULE_TAGS := optional |
| 7 | LOCAL_CFLAGS := -Wno-unused-variable -Wno-sign-compare -Wno-unused-parameter -Wno-comment -Wno-missing-field-initializers \ |
| 8 | -DHAVE_LIBKEYUTILS -std=gnu++2a -Wno-macro-redefined -Wno-unused-function |
| 9 | LOCAL_SRC_FILES := Decrypt.cpp ScryptParameters.cpp Utils.cpp HashPassword.cpp \ |
| 10 | FsCrypt.cpp KeyUtil.cpp Keymaster.cpp KeyStorage.cpp MetadataCrypt.cpp KeyBuffer.cpp \ |
| 11 | Process.cpp EncryptInplace.cpp Weaver1.cpp fscrypt_policy.cpp |
| 12 | LOCAL_SHARED_LIBRARIES := libselinux libc libc++ libext4_utils libbase libcrypto libcutils \ |
| 13 | libkeymaster_messages libhardware libprotobuf-cpp-lite libfscrypt android.hardware.confirmationui@1.0 \ |
| 14 | android.hardware.keymaster@3.0 libkeystore_binder libhidlbase libutils libbinder android.hardware.gatekeeper@1.0 \ |
| 15 | libfs_mgr android.hardware.keymaster@4.0 libkeymaster4support libf2fs_sparseblock libkeystore_parcelables \ |
| 16 | libkeystore_aidl android.hardware.weaver@1.0 libkeyutils liblog libhwbinder libchrome |
| 17 | LOCAL_STATIC_LIBRARIES := libscrypt_static |
| 18 | LOCAL_C_INCLUDES := system/extras/ext4_utils \ |
| 19 | system/extras/ext4_utils/include/ext4_utils \ |
| 20 | external/scrypt/lib/crypto \ |
| 21 | system/security/keystore/include \ |
| 22 | hardware/libhardware/include/hardware \ |
| 23 | system/security/softkeymaster/include/keymaster \ |
| 24 | system/keymaster/include \ |
| 25 | system/extras/libfscrypt/include \ |
| 26 | system/core/fs_mgr/libfs_avb/include/ \ |
| 27 | system/core/fs_mgr/include_fstab/ \ |
| 28 | system/core/fs_mgr/include/ \ |
| 29 | system/core/fs_mgr/libdm/include/ \ |
| 30 | system/core/fs_mgr/liblp/include/ \ |
| 31 | system/gsid/include/ \ |
| 32 | system/core/init/ \ |
| 33 | system/vold/model \ |
| 34 | system/vold/ \ |
| 35 | system/extras/f2fs_utils/ |
| 36 | |
| 37 | ifneq ($(wildcard hardware/libhardware/include/hardware/keymaster0.h),) |
| 38 | LOCAL_CFLAGS += -DTW_CRYPTO_HAVE_KEYMASTERX |
| 39 | LOCAL_C_INCLUDES += external/boringssl/src/include |
| 40 | endif |
| 41 | |
| 42 | LOCAL_REQUIRED_MODULES := keystore_auth keystore |
| 43 | LOCAL_CLANG := true |
| 44 | include $(BUILD_SHARED_LIBRARY) |
| 45 | |
| 46 | |
| 47 | |
| 48 | include $(CLEAR_VARS) |
| 49 | LOCAL_MODULE := twrpfbe |
| 50 | LOCAL_MODULE_TAGS := optional |
| 51 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 52 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/bin |
bigbiff | 7ba7500 | 2020-04-11 20:47:09 -0400 | [diff] [blame] | 53 | LOCAL_SRC_FILES := main.cpp |
| 54 | LOCAL_SHARED_LIBRARIES := libtwrpfscrypt |
| 55 | |
| 56 | include $(BUILD_EXECUTABLE) |
| 57 | |
| 58 | include $(CLEAR_VARS) |
| 59 | LOCAL_MODULE := fscryptpolicyget |
| 60 | LOCAL_MODULE_TAGS := optional |
| 61 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 62 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/bin |
bigbiff | 7ba7500 | 2020-04-11 20:47:09 -0400 | [diff] [blame] | 63 | LOCAL_SRC_FILES := fscryptpolicyget.cpp |
| 64 | LOCAL_SHARED_LIBRARIES := libtwrpfscrypt |
bigbiff | 7ba7500 | 2020-04-11 20:47:09 -0400 | [diff] [blame] | 65 | |
| 66 | include $(BUILD_EXECUTABLE) |
| 67 | |
| 68 | include $(CLEAR_VARS) |
| 69 | LOCAL_MODULE := keystore_auth |
| 70 | LOCAL_MODULE_TAGS := optional |
| 71 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 72 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/bin |
bigbiff | 7ba7500 | 2020-04-11 20:47:09 -0400 | [diff] [blame] | 73 | LOCAL_SRC_FILES := keystore_auth.cpp |
| 74 | LOCAL_SHARED_LIBRARIES := libc libkeystore_binder libutils libbinder liblog |
| 75 | LOCAL_CFLAGS += -DUSE_SECURITY_NAMESPACE |
| 76 | LOCAL_SHARED_LIBRARIES += libkeystore_aidl |
bigbiff | 7ba7500 | 2020-04-11 20:47:09 -0400 | [diff] [blame] | 77 | |
| 78 | include $(BUILD_EXECUTABLE) |
| 79 | |
| 80 | endif |