1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/esp32: use optional modules when compiled in CI

To test compilation of optional ESP32 modules, these modules are enabled for the `esp32-wrover-kit` borad when compiled in CI. The use of some of these optional modules depend on the use of other modules.
This commit is contained in:
Gunar Schorcht 2021-12-01 17:17:33 +01:00
parent 6123cde033
commit b74c456595
2 changed files with 47 additions and 0 deletions

View File

@ -5,4 +5,34 @@ endif
# Sets up configuration for openocd
USEMODULE += esp_jtag
# if compiled in CI, optional modules are selected for compile tests
ifneq (,$(RIOT_CI_BUILD))
USEMODULE += esp_idf_heap
USEMODULE += esp_log_startup
USEMODULE += esp_log_tagged
USEMODULE += esp_qemu
USEMODULE += esp_spi_ram
ifneq (,$(filter periph_i2c,$(USEMODULE)))
USEMODULE += esp_i2c_hw
endif
ifneq (,$(filter periph_timer,$(USEMODULE)))
USEMODULE += esp_hw_counter
endif
ifneq (,$(filter netdev_default,$(USEMODULE)))
# if netdev_default is used, we use gnrc modules that are enabled
# in different examples to use different esp_wifi modules
ifneq (,$(filter gnrc_netif_single,$(USEMODULE)))
# if gnrc_netif_single module is enabled, esp_wifi_enterprise is used
USEMODULE += esp_wifi_enterprise
else
# in all other case esp_wifi_ap is enabled
USEMODULE += esp_wifi_ap
endif
endif
endif
include $(RIOTBOARD)/common/esp32/Makefile.dep

View File

@ -125,6 +125,23 @@
#endif
/** @} */
#ifndef DOXYGEN
/**
* @name Default configuration parameters for ESP WiFi Enterprise netdev
* @{
*/
#ifndef ESP_WIFI_EAP_USER
/** User name used in phase 2 (inner) EAP authentication. */
#define ESP_WIFI_EAP_USER "riot-os@riot-os.org"
#endif /* ESP_WIFI_EAP_USER */
#ifndef ESP_WIFI_EAP_PASS
/** Password used in phase 2 (inner) EAP authentication. */
#define ESP_WIFI_EAP_PASS "riot-os"
#endif /* ESP_WIFI_EAP_PASS */
/** @} */
#endif /* !DOXYGEN */
/* include common board definitions as last step */
#include "board_common.h"