1# supplicant make file
2
3COMPONENT_PRIV_INCLUDEDIRS := src
4COMPONENT_SRCDIRS := port src/ap src/common src/crypto src/eap_peer src/rsn_supp src/tls src/utils src/esp_supplicant src/wps
5COMPONENT_ADD_INCLUDEDIRS := include port/include include/esp_supplicant src/utils
6
7ifeq ($(CONFIG_WPA_MBEDTLS_CRYPTO), y)
8    COMPONENT_OBJEXCLUDE += src/tls/asn1.o \
9    src/tls/bignum.o \
10    src/tls/pkcs1.o \
11    src/tls/pkcs5.o \
12    src/tls/pkcs8.o \
13    src/tls/rsa.o \
14    src/tls/tls_internal.o \
15    src/tls/tlsv1_client.o \
16    src/tls/tlsv1_client_read.o \
17    src/tls/tlsv1_client_write.o \
18    src/tls/tlsv1_common.o \
19    src/tls/tlsv1_cred.o \
20    src/tls/tlsv1_record.o \
21    src/tls/tlsv1_server.o \
22    src/tls/tlsv1_server_read.o \
23    src/tls/tlsv1_server_write.o \
24    src/tls/x509v3.o
25else
26    COMPONENT_OBJEXCLUDE := src/crypto/tls_mbedtls.o
27endif
28ifneq ($(CONFIG_WPA_11KV_SUPPORT), y)
29    COMPONENT_OBJEXCLUDE += src/common/rrm.o \
30    src/common/wnm_sta.o \
31    src/common/bss.o \
32    src/common/scan.o \
33    src/common/ieee802_11_common.o \
34    src/esp_supplicant/esp_common.o \
35    src/esp_supplicant/esp_scan.o
36endif
37
38CFLAGS += -DCONFIG_DPP -DCONFIG_IEEE80211W -DESP_SUPPLICANT -DIEEE8021X_EAPOL -DEAP_PEER_METHOD -DEAP_TLS -DEAP_TTLS -DEAP_PEAP -DEAP_MSCHAPv2 -DUSE_WPA2_TASK -DCONFIG_WPS2 -DCONFIG_WPS_PIN -DUSE_WPS_TASK -DESPRESSIF_USE -DESP32_WORKAROUND -DCONFIG_ECC -DCONFIG_WNM -D__ets__ -Wno-strict-aliasing
39
40ifdef CONFIG_ESP32_WIFI_ENABLE_WPA3_SAE
41	CFLAGS += -DCONFIG_WPA3_SAE
42endif
43