1LOCAL_PATH:= $(call my-dir) 2 3ifeq ($(HOST_OS),linux) 4 5include $(CLEAR_VARS) 6LOCAL_MODULE := verify_boot_signature 7LOCAL_SRC_FILES := verify_boot_signature.c 8LOCAL_MODULE_CLASS := EXECUTABLES 9LOCAL_MODULE_TAGS := optional 10LOCAL_SHARED_LIBRARIES := libcrypto-host 11LOCAL_C_INCLUDES += external/openssl/include system/extras/ext4_utils system/core/mkbootimg 12include $(BUILD_HOST_EXECUTABLE) 13 14endif # HOST_OS == linux 15 16include $(CLEAR_VARS) 17LOCAL_MODULE := generate_verity_key 18LOCAL_SRC_FILES := generate_verity_key.c 19LOCAL_MODULE_CLASS := EXECUTABLES 20LOCAL_MODULE_TAGS := optional 21LOCAL_SHARED_LIBRARIES := libcrypto-host 22include $(BUILD_HOST_EXECUTABLE) 23 24include $(CLEAR_VARS) 25LOCAL_SRC_FILES := VerityVerifier.java Utils.java 26LOCAL_MODULE := VerityVerifier 27LOCAL_JAR_MANIFEST := VerityVerifier.mf 28LOCAL_MODULE_TAGS := optional 29LOCAL_STATIC_JAVA_LIBRARIES := bouncycastle-host 30include $(BUILD_HOST_JAVA_LIBRARY) 31 32include $(CLEAR_VARS) 33LOCAL_SRC_FILES := VeritySigner.java Utils.java 34LOCAL_MODULE := VeritySigner 35LOCAL_JAR_MANIFEST := VeritySigner.mf 36LOCAL_MODULE_TAGS := optional 37LOCAL_STATIC_JAVA_LIBRARIES := bouncycastle-host 38include $(BUILD_HOST_JAVA_LIBRARY) 39 40include $(CLEAR_VARS) 41LOCAL_SRC_FILES := BootSignature.java VeritySigner.java Utils.java 42LOCAL_MODULE := BootSignature 43LOCAL_JAR_MANIFEST := BootSignature.mf 44LOCAL_MODULE_TAGS := optional 45LOCAL_STATIC_JAVA_LIBRARIES := bouncycastle-host 46include $(BUILD_HOST_JAVA_LIBRARY) 47 48include $(CLEAR_VARS) 49LOCAL_SRC_FILES := BootSignature.java KeystoreSigner.java Utils.java 50LOCAL_MODULE := BootKeystoreSigner 51LOCAL_JAR_MANIFEST := KeystoreSigner.mf 52LOCAL_MODULE_TAGS := optional 53LOCAL_STATIC_JAVA_LIBRARIES := bouncycastle-host 54include $(BUILD_HOST_JAVA_LIBRARY) 55 56include $(CLEAR_VARS) 57LOCAL_SRC_FILES := verity_verifier 58LOCAL_MODULE := verity_verifier 59LOCAL_MODULE_CLASS := EXECUTABLES 60LOCAL_IS_HOST_MODULE := true 61LOCAL_MODULE_TAGS := optional 62LOCAL_REQUIRED_MODULES := VerityVerifier 63include $(BUILD_PREBUILT) 64 65include $(CLEAR_VARS) 66LOCAL_SRC_FILES := verity_signer 67LOCAL_MODULE := verity_signer 68LOCAL_MODULE_CLASS := EXECUTABLES 69LOCAL_IS_HOST_MODULE := true 70LOCAL_MODULE_TAGS := optional 71LOCAL_REQUIRED_MODULES := VeritySigner 72include $(BUILD_PREBUILT) 73 74include $(CLEAR_VARS) 75LOCAL_SRC_FILES := boot_signer 76LOCAL_MODULE := boot_signer 77LOCAL_MODULE_CLASS := EXECUTABLES 78LOCAL_IS_HOST_MODULE := true 79LOCAL_MODULE_TAGS := optional 80LOCAL_REQUIRED_MODULES := BootSignature 81include $(BUILD_PREBUILT) 82 83include $(CLEAR_VARS) 84LOCAL_SRC_FILES := keystore_signer 85LOCAL_MODULE := keystore_signer 86LOCAL_MODULE_CLASS := EXECUTABLES 87LOCAL_IS_HOST_MODULE := true 88LOCAL_MODULE_TAGS := optional 89LOCAL_REQUIRED_MODULES := KeystoreSigner 90include $(BUILD_PREBUILT) 91 92include $(CLEAR_VARS) 93LOCAL_MODULE := build_verity_metadata.py 94LOCAL_MODULE_CLASS := EXECUTABLES 95LOCAL_SRC_FILES := build_verity_metadata.py 96LOCAL_IS_HOST_MODULE := true 97LOCAL_MODULE_TAGS := optional 98include $(BUILD_PREBUILT) 99 100include $(CLEAR_VARS) 101LOCAL_MODULE := build_verity_tree 102LOCAL_SRC_FILES := build_verity_tree.cpp 103LOCAL_MODULE_TAGS := optional 104LOCAL_STATIC_LIBRARIES := libsparse_host libz 105LOCAL_SHARED_LIBRARIES := libcrypto-host libbase 106LOCAL_CFLAGS += -Wall -Werror 107include $(BUILD_HOST_EXECUTABLE) 108 109include $(call first-makefiles-under,$(LOCAL_PATH)) 110