mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-10-20 13:45:08 +08:00
39 lines
1.1 KiB
Makefile
39 lines
1.1 KiB
Makefile
#
|
|
# Component Makefile
|
|
#
|
|
|
|
CURRENT_DIR := mbedtls_v3
|
|
|
|
COMPONENT_ADD_INCLUDEDIRS := $(CURRENT_DIR)/port/include $(CURRENT_DIR)/mbedtls/include $(CURRENT_DIR)/mbedtls/library
|
|
|
|
COMPONENT_SRCDIRS := $(CURRENT_DIR)/mbedtls/library $(CURRENT_DIR)/port
|
|
|
|
COMPONENT_OBJEXCLUDE := $(CURRENT_DIR)/mbedtls/library/net_sockets.o
|
|
|
|
ifndef CONFIG_MBEDTLS_MPI_EXP_MOD_ALT
|
|
COMPONENT_OBJEXCLUDE += $(CURRENT_DIR)/port/esp_bignum.o
|
|
endif
|
|
|
|
COMPONENT_SUBMODULES += $(CURRENT_DIR)/mbedtls
|
|
|
|
ifdef CONFIG_MBEDTLS_DYNAMIC_BUFFER
|
|
|
|
WRAP_FUNCTIONS = mbedtls_ssl_write_client_hello \
|
|
mbedtls_ssl_handshake_client_step \
|
|
mbedtls_ssl_handshake_server_step \
|
|
mbedtls_ssl_read \
|
|
mbedtls_ssl_write \
|
|
mbedtls_ssl_session_reset \
|
|
mbedtls_ssl_free \
|
|
mbedtls_ssl_setup \
|
|
mbedtls_ssl_send_alert_message \
|
|
mbedtls_ssl_close_notify
|
|
|
|
WRAP_ARGUMENT := -Wl,--wrap=
|
|
|
|
COMPONENT_ADD_LDFLAGS = -l$(COMPONENT_NAME) $(addprefix $(WRAP_ARGUMENT),$(WRAP_FUNCTIONS))
|
|
|
|
COMPONENT_SRCDIRS += $(CURRENT_DIR)/port/dynamic
|
|
|
|
endif
|