Geremy Condra | 649fd55 | 2013-10-21 20:34:13 +0000 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | |
Elliott Hughes | fa5185e | 2015-08-10 15:49:04 -0700 | [diff] [blame] | 3 | ifeq ($(HOST_OS),linux) |
| 4 | |
Geremy Condra | 649fd55 | 2013-10-21 20:34:13 +0000 | [diff] [blame] | 5 | include $(CLEAR_VARS) |
Sami Tolvanen | ac342b9 | 2014-11-20 13:22:58 +0000 | [diff] [blame] | 6 | LOCAL_MODULE := verify_boot_signature |
| 7 | LOCAL_SRC_FILES := verify_boot_signature.c |
| 8 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 9 | LOCAL_MODULE_TAGS := optional |
| 10 | LOCAL_SHARED_LIBRARIES := libcrypto-host |
| 11 | LOCAL_C_INCLUDES += external/openssl/include system/extras/ext4_utils system/core/mkbootimg |
| 12 | include $(BUILD_HOST_EXECUTABLE) |
| 13 | |
Elliott Hughes | fa5185e | 2015-08-10 15:49:04 -0700 | [diff] [blame] | 14 | endif # HOST_OS == linux |
| 15 | |
Sami Tolvanen | ac342b9 | 2014-11-20 13:22:58 +0000 | [diff] [blame] | 16 | include $(CLEAR_VARS) |
Geremy Condra | 649fd55 | 2013-10-21 20:34:13 +0000 | [diff] [blame] | 17 | LOCAL_MODULE := generate_verity_key |
| 18 | LOCAL_SRC_FILES := generate_verity_key.c |
| 19 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 20 | LOCAL_MODULE_TAGS := optional |
| 21 | LOCAL_SHARED_LIBRARIES := libcrypto-host |
Geremy Condra | 649fd55 | 2013-10-21 20:34:13 +0000 | [diff] [blame] | 22 | include $(BUILD_HOST_EXECUTABLE) |
| 23 | |
Geremy Condra | 649fd55 | 2013-10-21 20:34:13 +0000 | [diff] [blame] | 24 | include $(CLEAR_VARS) |
Geremy Condra | cee5bfd | 2014-06-11 13:38:45 -0700 | [diff] [blame] | 25 | LOCAL_SRC_FILES := VeritySigner.java Utils.java |
Geremy Condra | 649fd55 | 2013-10-21 20:34:13 +0000 | [diff] [blame] | 26 | LOCAL_MODULE := VeritySigner |
| 27 | LOCAL_JAR_MANIFEST := VeritySigner.mf |
| 28 | LOCAL_MODULE_TAGS := optional |
Doug Zongker | 260fe11 | 2014-06-10 13:45:24 -0700 | [diff] [blame] | 29 | LOCAL_STATIC_JAVA_LIBRARIES := bouncycastle-host |
Geremy Condra | 649fd55 | 2013-10-21 20:34:13 +0000 | [diff] [blame] | 30 | include $(BUILD_HOST_JAVA_LIBRARY) |
| 31 | |
| 32 | include $(CLEAR_VARS) |
Geremy Condra | cee5bfd | 2014-06-11 13:38:45 -0700 | [diff] [blame] | 33 | LOCAL_SRC_FILES := BootSignature.java VeritySigner.java Utils.java |
| 34 | LOCAL_MODULE := BootSignature |
| 35 | LOCAL_JAR_MANIFEST := BootSignature.mf |
| 36 | LOCAL_MODULE_TAGS := optional |
| 37 | LOCAL_STATIC_JAVA_LIBRARIES := bouncycastle-host |
| 38 | include $(BUILD_HOST_JAVA_LIBRARY) |
| 39 | |
| 40 | include $(CLEAR_VARS) |
| 41 | LOCAL_SRC_FILES := BootSignature.java KeystoreSigner.java Utils.java |
| 42 | LOCAL_MODULE := BootKeystoreSigner |
| 43 | LOCAL_JAR_MANIFEST := KeystoreSigner.mf |
| 44 | LOCAL_MODULE_TAGS := optional |
| 45 | LOCAL_STATIC_JAVA_LIBRARIES := bouncycastle-host |
| 46 | include $(BUILD_HOST_JAVA_LIBRARY) |
| 47 | |
| 48 | include $(CLEAR_VARS) |
Tao Bao | 989f6a1 | 2016-10-18 13:02:14 -0700 | [diff] [blame] | 49 | LOCAL_SRC_FILES := verity_verifier.cpp |
Sami Tolvanen | 578a347 | 2014-11-12 07:47:53 -0800 | [diff] [blame] | 50 | LOCAL_MODULE := verity_verifier |
| 51 | LOCAL_MODULE_CLASS := EXECUTABLES |
Tao Bao | 989f6a1 | 2016-10-18 13:02:14 -0700 | [diff] [blame] | 52 | LOCAL_MODULE_HOST_OS := linux |
Sami Tolvanen | 578a347 | 2014-11-12 07:47:53 -0800 | [diff] [blame] | 53 | LOCAL_IS_HOST_MODULE := true |
| 54 | LOCAL_MODULE_TAGS := optional |
Tao Bao | 989f6a1 | 2016-10-18 13:02:14 -0700 | [diff] [blame] | 55 | LOCAL_SANITIZE := integer |
| 56 | LOCAL_STATIC_LIBRARIES := \ |
| 57 | libfec_host \ |
| 58 | libfec_rs_host \ |
| 59 | libmincrypt \ |
| 60 | libcrypto_static \ |
| 61 | libext4_utils_host \ |
| 62 | libsparse_host \ |
| 63 | libsquashfs_utils_host \ |
| 64 | libbase \ |
| 65 | liblog \ |
| 66 | libz |
| 67 | LOCAL_CFLAGS := -Wall -Werror |
| 68 | include $(BUILD_HOST_EXECUTABLE) |
Sami Tolvanen | 578a347 | 2014-11-12 07:47:53 -0800 | [diff] [blame] | 69 | |
| 70 | include $(CLEAR_VARS) |
Geremy Condra | 649fd55 | 2013-10-21 20:34:13 +0000 | [diff] [blame] | 71 | LOCAL_SRC_FILES := verity_signer |
| 72 | LOCAL_MODULE := verity_signer |
| 73 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 74 | LOCAL_IS_HOST_MODULE := true |
| 75 | LOCAL_MODULE_TAGS := optional |
Colin Cross | f9fd34f | 2014-04-28 16:28:25 -0700 | [diff] [blame] | 76 | LOCAL_REQUIRED_MODULES := VeritySigner |
Geremy Condra | 649fd55 | 2013-10-21 20:34:13 +0000 | [diff] [blame] | 77 | include $(BUILD_PREBUILT) |
| 78 | |
| 79 | include $(CLEAR_VARS) |
Geremy Condra | cee5bfd | 2014-06-11 13:38:45 -0700 | [diff] [blame] | 80 | LOCAL_SRC_FILES := boot_signer |
| 81 | LOCAL_MODULE := boot_signer |
Geremy Condra | 649fd55 | 2013-10-21 20:34:13 +0000 | [diff] [blame] | 82 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 83 | LOCAL_IS_HOST_MODULE := true |
| 84 | LOCAL_MODULE_TAGS := optional |
Geremy Condra | f6a6ddb | 2014-07-10 13:21:45 -0700 | [diff] [blame] | 85 | LOCAL_REQUIRED_MODULES := BootSignature |
Geremy Condra | cee5bfd | 2014-06-11 13:38:45 -0700 | [diff] [blame] | 86 | include $(BUILD_PREBUILT) |
| 87 | |
| 88 | include $(CLEAR_VARS) |
| 89 | LOCAL_SRC_FILES := keystore_signer |
| 90 | LOCAL_MODULE := keystore_signer |
| 91 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 92 | LOCAL_IS_HOST_MODULE := true |
| 93 | LOCAL_MODULE_TAGS := optional |
| 94 | LOCAL_REQUIRED_MODULES := KeystoreSigner |
Geremy Condra | 649fd55 | 2013-10-21 20:34:13 +0000 | [diff] [blame] | 95 | include $(BUILD_PREBUILT) |
| 96 | |
| 97 | include $(CLEAR_VARS) |
| 98 | LOCAL_MODULE := build_verity_metadata.py |
| 99 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 100 | LOCAL_SRC_FILES := build_verity_metadata.py |
| 101 | LOCAL_IS_HOST_MODULE := true |
| 102 | LOCAL_MODULE_TAGS := optional |
| 103 | include $(BUILD_PREBUILT) |
Colin Cross | 724396e | 2014-04-17 14:09:23 -0700 | [diff] [blame] | 104 | |
| 105 | include $(CLEAR_VARS) |
| 106 | LOCAL_MODULE := build_verity_tree |
| 107 | LOCAL_SRC_FILES := build_verity_tree.cpp |
| 108 | LOCAL_MODULE_TAGS := optional |
| 109 | LOCAL_STATIC_LIBRARIES := libsparse_host libz |
Elliott Hughes | b104044 | 2015-05-12 21:34:57 -0700 | [diff] [blame] | 110 | LOCAL_SHARED_LIBRARIES := libcrypto-host libbase |
Colin Cross | 724396e | 2014-04-17 14:09:23 -0700 | [diff] [blame] | 111 | LOCAL_CFLAGS += -Wall -Werror |
| 112 | include $(BUILD_HOST_EXECUTABLE) |
Sami Tolvanen | 29bf737 | 2015-05-16 15:14:14 +0100 | [diff] [blame] | 113 | |
| 114 | include $(call first-makefiles-under,$(LOCAL_PATH)) |