1LOCAL_DIR := $(GET_LOCAL_DIR) 2 3MODULE := $(LOCAL_DIR) 4 5TARGET_ARCH := $(ARCH) 6TARGET_2ND_ARCH := $(ARCH) 7 8# Reset local variables 9LOCAL_CFLAGS := 10LOCAL_C_INCLUDES := 11LOCAL_SRC_FILES_$(TARGET_ARCH) := 12LOCAL_SRC_FILES_$(TARGET_2ND_ARCH) := 13LOCAL_CFLAGS_$(TARGET_ARCH) := 14LOCAL_CFLAGS_$(TARGET_2ND_ARCH) := 15LOCAL_ADDITIONAL_DEPENDENCIES := 16 17# get openssl_cflags 18MODULE_SRCDEPS += $(LOCAL_DIR)/build-config-trusty.mk 19include $(LOCAL_DIR)/build-config-trusty.mk 20 21# get target_c_flags, target_c_includes, target_src_files 22MODULE_SRCDEPS += $(LOCAL_DIR)/Crypto-config-trusty.mk 23include $(LOCAL_DIR)/Crypto-config-trusty.mk 24 25MODULE_SRCS += $(addprefix $(LOCAL_DIR)/,$(LOCAL_SRC_FILES_$(ARCH))) 26 27MODULE_CFLAGS += $(LOCAL_CFLAGS) 28MODULE_CFLAGS += -Wno-error=implicit-function-declaration 29 30# Global for other modules which include openssl headers 31GLOBAL_DEFINES += OPENSSL_SYS_TRUSTY 32 33LOCAL_C_INCLUDES := $(patsubst external/openssl/%,%,$(LOCAL_C_INCLUDES)) 34GLOBAL_INCLUDES += $(addprefix $(LOCAL_DIR)/,$(LOCAL_C_INCLUDES)) 35 36MODULE_DEPS := \ 37 lib/openssl-stubs \ 38 lib/libc-trusty 39 40include make/module.mk 41