cpu/esp32/esp_wifi: Makefile integration for WPA2 Enterprise mode
This commit is contained in:
parent
817446ae54
commit
ae647ed95f
@ -27,6 +27,13 @@ ifneq (,$(filter esp_wifi_any,$(USEMODULE)))
|
||||
USEMODULE += esp_idf_wpa_supplicant_port
|
||||
endif
|
||||
|
||||
ifneq (,$(filter esp_wifi_enterprise,$(USEMODULE)))
|
||||
# add additional modules used for WPA2 Enterprise mode
|
||||
USEMODULE += esp_idf_wpa_supplicant_wpa2_eap_peer
|
||||
USEMODULE += esp_idf_wpa_supplicant_wpa2_tls
|
||||
USEMODULE += esp_idf_wpa_supplicant_wpa2_utils
|
||||
endif
|
||||
|
||||
ifneq (,$(filter esp_idf_nvs_flash,$(USEMODULE)))
|
||||
# add additional modules required by esp_idf_nvs_flash
|
||||
USEMODULE += mtd
|
||||
|
||||
@ -3,4 +3,5 @@
|
||||
include $(RIOTCPU)/esp_common/Makefile.features
|
||||
|
||||
FEATURES_PROVIDED += arch_esp32
|
||||
FEATURES_PROVIDED += esp_wifi_enterprise
|
||||
FEATURES_PROVIDED += periph_rtc
|
||||
|
||||
@ -44,6 +44,7 @@ PSEUDOMODULES += esp_idf_newlib
|
||||
PSEUDOMODULES += esp_rtc_timer
|
||||
PSEUDOMODULES += esp_rtc_timer_32k
|
||||
PSEUDOMODULES += esp_spi_ram
|
||||
PSEUDOMODULES += esp_wifi_enterprise
|
||||
|
||||
USEMODULE += esp_idf_driver
|
||||
USEMODULE += esp_idf_esp32
|
||||
|
||||
16
cpu/esp32/vendor/esp-idf/wpa_supplicant/Makefile
vendored
16
cpu/esp32/vendor/esp-idf/wpa_supplicant/Makefile
vendored
@ -1,9 +1,21 @@
|
||||
ifneq (,$(filter esp_idf_wpa_supplicant_port ,$(USEMODULE)))
|
||||
ifneq (,$(filter esp_idf_wpa_supplicant_port,$(USEMODULE)))
|
||||
DIRS += port
|
||||
endif
|
||||
|
||||
ifneq (,$(filter esp_idf_wpa_supplicant_crypto ,$(USEMODULE)))
|
||||
ifneq (,$(filter esp_idf_wpa_supplicant_crypto,$(USEMODULE)))
|
||||
DIRS += src/crypto
|
||||
endif
|
||||
|
||||
ifneq (,$(filter esp_idf_wpa_supplicant_wpa2_eap_peer,$(USEMODULE)))
|
||||
DIRS += src/wpa2/eap_peer
|
||||
endif
|
||||
|
||||
ifneq (,$(filter esp_idf_wpa_supplicant_wpa2_tls,$(USEMODULE)))
|
||||
DIRS += src/wpa2/tls
|
||||
endif
|
||||
|
||||
ifneq (,$(filter esp_idf_wpa_supplicant_wpa2_utils,$(USEMODULE)))
|
||||
DIRS += src/wpa2/utils
|
||||
endif
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
||||
|
||||
@ -5,6 +5,7 @@ include $(RIOTBASE)/Makefile.base
|
||||
# we have to do it in that way to avoid that $(RIOTBASE)/sys/include/crypto
|
||||
# is found first
|
||||
INCLUDES = -I$(RIOTCPU)/$(CPU)/vendor/esp-idf/wpa_supplicant/include
|
||||
INCLUDES += -I$(RIOTCPU)/$(CPU)/vendor/esp-idf/wpa_supplicant/include/wpa
|
||||
INCLUDES += -I$(RIOTCPU)/$(CPU)/vendor/esp-idf/wpa_supplicant/port/include
|
||||
INCLUDES += -I$(ESP32_SDK_DIR)/components/wpa_supplicant/include
|
||||
INCLUDES += -I$(ESP32_SDK_DIR)/components/wpa_supplicant/port/include
|
||||
|
||||
20
cpu/esp32/vendor/esp-idf/wpa_supplicant/src/wpa2/eap_peer/Makefile
vendored
Normal file
20
cpu/esp32/vendor/esp-idf/wpa_supplicant/src/wpa2/eap_peer/Makefile
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
MODULE=esp_idf_wpa_supplicant_wpa2_eap_peer
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
||||
|
||||
# we have to do it in that way to avoid that $(RIOTBASE)/sys/include/crypto
|
||||
# is found first
|
||||
INCLUDES = -I$(RIOTCPU)/$(CPU)/vendor/esp-idf/wpa_supplicant/include
|
||||
INCLUDES += -I$(RIOTCPU)/$(CPU)/vendor/esp-idf/wpa_supplicant/include/wpa
|
||||
INCLUDES += -I$(RIOTCPU)/$(CPU)/vendor/esp-idf/wpa_supplicant/port/include
|
||||
INCLUDES += -I$(ESP32_SDK_DIR)/components/wpa_supplicant/include
|
||||
INCLUDES += -I$(ESP32_SDK_DIR)/components/wpa_supplicant/port/include
|
||||
CFLAGS += -D__ets__ -DESPRESSIF_USE -DESP32_IDF_CODE=1
|
||||
CFLAGS += -DEAP_PEER_METHOD -DEAP_TLS -DEAP_PEAP -DEAP_TTLS -DEAP_MSCHAPv2 -DUSE_WPA2_TASK
|
||||
|
||||
include $(RIOTCPU)/$(CPU)/Makefile.include
|
||||
|
||||
INCLUDES += -I$(RIOTBASE)/core/include
|
||||
INCLUDES += -I$(RIOTCPU)/$(CPU)/vendor/esp-idf/include/log
|
||||
INCLUDES += -I$(RIOTCPU)/$(CPU)/include
|
||||
INCLUDES += -I$(RIOTBOARD)/$(BOARD)/include
|
||||
19
cpu/esp32/vendor/esp-idf/wpa_supplicant/src/wpa2/tls/Makefile
vendored
Normal file
19
cpu/esp32/vendor/esp-idf/wpa_supplicant/src/wpa2/tls/Makefile
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
MODULE=esp_idf_wpa_supplicant_wpa2_tls
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
||||
|
||||
# we have to do it in that way to avoid that $(RIOTBASE)/sys/include/crypto
|
||||
# is found first
|
||||
INCLUDES = -I$(RIOTCPU)/$(CPU)/vendor/esp-idf/wpa_supplicant/include
|
||||
INCLUDES += -I$(RIOTCPU)/$(CPU)/vendor/esp-idf/wpa_supplicant/include/wpa
|
||||
INCLUDES += -I$(RIOTCPU)/$(CPU)/vendor/esp-idf/wpa_supplicant/port/include
|
||||
INCLUDES += -I$(ESP32_SDK_DIR)/components/wpa_supplicant/include
|
||||
INCLUDES += -I$(ESP32_SDK_DIR)/components/wpa_supplicant/port/include
|
||||
CFLAGS += -D__ets__ -DESPRESSIF_USE -DESP32_IDF_CODE=1
|
||||
|
||||
include $(RIOTCPU)/$(CPU)/Makefile.include
|
||||
|
||||
INCLUDES += -I$(RIOTBASE)/core/include
|
||||
INCLUDES += -I$(RIOTCPU)/$(CPU)/vendor/esp-idf/include/log
|
||||
INCLUDES += -I$(RIOTCPU)/$(CPU)/include
|
||||
INCLUDES += -I$(RIOTBOARD)/$(BOARD)/include
|
||||
19
cpu/esp32/vendor/esp-idf/wpa_supplicant/src/wpa2/utils/Makefile
vendored
Normal file
19
cpu/esp32/vendor/esp-idf/wpa_supplicant/src/wpa2/utils/Makefile
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
MODULE=esp_idf_wpa_supplicant_wpa2_utils
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
||||
|
||||
# we have to do it in that way to avoid that $(RIOTBASE)/sys/include/crypto
|
||||
# is found first
|
||||
INCLUDES = -I$(RIOTCPU)/$(CPU)/vendor/esp-idf/wpa_supplicant/include
|
||||
INCLUDES += -I$(RIOTCPU)/$(CPU)/vendor/esp-idf/wpa_supplicant/include/wpa
|
||||
INCLUDES += -I$(RIOTCPU)/$(CPU)/vendor/esp-idf/wpa_supplicant/port/include
|
||||
INCLUDES += -I$(ESP32_SDK_DIR)/components/wpa_supplicant/include
|
||||
INCLUDES += -I$(ESP32_SDK_DIR)/components/wpa_supplicant/port/include
|
||||
CFLAGS += -D__ets__ -DESPRESSIF_USE -DESP32_IDF_CODE=1
|
||||
|
||||
include $(RIOTCPU)/$(CPU)/Makefile.include
|
||||
|
||||
INCLUDES += -I$(RIOTBASE)/core/include
|
||||
INCLUDES += -I$(RIOTCPU)/$(CPU)/vendor/esp-idf/include/log
|
||||
INCLUDES += -I$(RIOTCPU)/$(CPU)/include
|
||||
INCLUDES += -I$(RIOTBOARD)/$(BOARD)/include
|
||||
@ -7,6 +7,11 @@ FLASH_MODE ?= dout
|
||||
# SPECIAL module dependencies
|
||||
# cannot be done in Makefile.dep since Makefile.dep is included too late
|
||||
|
||||
ifneq (,$(filter esp_wifi_enterprise,$(USEMODULE)))
|
||||
FEATURES_REQUIRED += esp_wifi_enterprise
|
||||
USEMODULE += esp_wifi
|
||||
endif
|
||||
|
||||
ifneq (,$(filter netdev_default gnrc_netdev_default,$(USEMODULE)))
|
||||
ifneq (,$(filter lwip,$(USEMODULE)))
|
||||
# for lwip, use esp_wifi as default netdev if no other netdev is enabled
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user