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