-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17525 from fjmolinas/pr_esp_compile_test_boards
[POC] tests/external-boards: add esp compile test boards
- Loading branch information
Showing
22 changed files
with
165 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1 @@ | ||
# if compiled in CI, optional modules are selected for compile tests | ||
ifneq (,$(RIOT_CI_BUILD)) | ||
USEMODULE += esp_log_tagged | ||
USEMODULE += esp_log_startup | ||
USEMODULE += esp_qemu | ||
|
||
ifneq (,$(filter periph_timer,$(USEMODULE))) | ||
USEMODULE += esp_sw_timer | ||
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 | ||
ifeq (,$(filter gnrc_netif_single,$(USEMODULE))) | ||
# if gnrc_netif_single module is not enabled, esp_wifi_ap is used | ||
USEMODULE += esp_wifi_ap | ||
endif | ||
endif | ||
|
||
endif | ||
|
||
include $(RIOTBOARD)/common/esp8266/Makefile.dep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Copyright (c) 2020 HAW Hamburg | ||
# | ||
# This file is subject to the terms and conditions of the GNU Lesser | ||
# General Public License v2.1. See the file LICENSE in the top level | ||
# directory for more details. | ||
|
||
config BOARD | ||
default "esp32-ci" if BOARD_ESP32_CI | ||
|
||
config BOARD_ESP32_CI | ||
bool | ||
default y | ||
select BOARD_COMMON_ESP32 | ||
select CPU_MODEL_ESP32_WROVER | ||
select HAS_ARDUINO | ||
select HAS_ESP_RTC_TIMER_32K | ||
select HAS_ESP_JTAG | ||
select HAS_PERIPH_ADC | ||
select HAS_PERIPH_I2C | ||
select HAS_PERIPH_PWM | ||
select HAS_PERIPH_SPI | ||
select HAS_SDCARD_SPI | ||
|
||
select HAVE_ILI9341 | ||
|
||
if TEST_KCONFIG | ||
|
||
choice ESP32_I2C_IMPLEMENTATION | ||
default MODULE_ESP_I2C_HW | ||
endchoice | ||
|
||
config MODULE_ESP_HW_COUNTER | ||
default y | ||
depends on MODULE_PERIPH_TIMER | ||
|
||
endif # TEST_KCONFIG | ||
|
||
source "$(RIOTBOARD)/common/esp32/Kconfig" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# This must be a different name than 'board' as it is implemented by 'esp32-wrover-kit' | ||
MODULE = board_esp32-ci | ||
|
||
DIRS += $(RIOTBOARD)/esp32-wrover-kit | ||
|
||
include $(RIOTBASE)/Makefile.base |
30 changes: 30 additions & 0 deletions
30
tests/external_board_dirs/esp-ci-boards/esp32-ci/Makefile.dep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# This must be a different name than 'board' as it is implemented by 'esp32-wrover-kit' | ||
USEMODULE += board_esp32-ci | ||
|
||
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 | ||
|
||
include $(RIOTBOARD)/esp32-wrover-kit/Makefile.dep |
1 change: 1 addition & 0 deletions
1
tests/external_board_dirs/esp-ci-boards/esp32-ci/Makefile.features
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include $(RIOTBOARD)/esp32-wrover-kit/Makefile.features |
5 changes: 5 additions & 0 deletions
5
tests/external_board_dirs/esp-ci-boards/esp32-ci/Makefile.include
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# We must duplicate the include done by $(RIOTBASE)/Makefile.include | ||
# to also include the main board header | ||
INCLUDES += $(addprefix -I,$(wildcard $(RIOTBOARD)/esp32-wrover-kit/include)) | ||
|
||
include $(RIOTBOARD)/esp32-wrover-kit/Makefile.include |
7 changes: 7 additions & 0 deletions
7
tests/external_board_dirs/esp-ci-boards/esp32-ci/esp32-ci.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Sets up configuration for openocd | ||
CONFIG_MODULE_ESP_JTAG=y | ||
CONFIG_MODULE_ESP_IDF_HEAP=y | ||
CONFIG_MODULE_ESP_LOG_STARTUP=y | ||
CONFIG_MODULE_ESP_LOG_TAGGED=y | ||
CONFIG_MODULE_ESP_QEMU=y | ||
CONFIG_MODULE_ESP_SPI_RAM=y |
21 changes: 21 additions & 0 deletions
21
tests/external_board_dirs/esp-ci-boards/esp8266-ci/Kconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Copyright (c) 2020 HAW Hamburg | ||
# | ||
# This file is subject to the terms and conditions of the GNU Lesser | ||
# General Public License v2.1. See the file LICENSE in the top level | ||
# directory for more details. | ||
|
||
config BOARD | ||
default "esp8266-ci" if BOARD_ESP8266_CI | ||
|
||
config BOARD_ESP8266_CI | ||
bool | ||
default y | ||
select BOARD_COMMON_ESP8266 | ||
select CPU_MODEL_ESP8266_ESP_12X | ||
|
||
config MODULE_ESP_SW_TIMER | ||
default y | ||
depends on TEST_KCONFIG | ||
depends on MODULE_PERIPH_TIMER | ||
|
||
source "$(RIOTBOARD)/common/esp8266/Kconfig" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# This must be a different name than 'board' as it is implemented by 'esp8266-olimex-mod' | ||
MODULE = board_esp32-ci | ||
|
||
DIRS += $(RIOTBOARD)/esp8266-olimex-mod | ||
|
||
include $(RIOTBASE)/Makefile.base |
18 changes: 18 additions & 0 deletions
18
tests/external_board_dirs/esp-ci-boards/esp8266-ci/Makefile.dep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
USEMODULE += esp_log_tagged | ||
USEMODULE += esp_log_startup | ||
USEMODULE += esp_qemu | ||
|
||
ifneq (,$(filter periph_timer,$(USEMODULE))) | ||
USEMODULE += esp_sw_timer | ||
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 | ||
ifeq (,$(filter gnrc_netif_single,$(USEMODULE))) | ||
# if gnrc_netif_single module is not enabled, esp_wifi_ap is used | ||
USEMODULE += esp_wifi_ap | ||
endif | ||
endif | ||
|
||
include $(RIOTBOARD)/esp8266-olimex-mod/Makefile.dep |
5 changes: 5 additions & 0 deletions
5
tests/external_board_dirs/esp-ci-boards/esp8266-ci/Makefile.features
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
include $(RIOTBOARD)/esp8266-olimex-mod/Makefile.features | ||
|
||
ifeq (1, $(TEST_KCONFIG)) | ||
KCONFIG_ADD_CONFIG += $(BOARDDIR)/$(BOARD).config | ||
endif |
5 changes: 5 additions & 0 deletions
5
tests/external_board_dirs/esp-ci-boards/esp8266-ci/Makefile.include
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# We must duplicate the include done by $(RIOTBASE)/Makefile.include | ||
# to also include the main board header | ||
INCLUDES += $(addprefix -I,$(wildcard $(RIOTBOARD)/esp8266-olimex-mod/include)) | ||
|
||
include $(RIOTBOARD)/esp8266-olimex-mod/Makefile.include |
4 changes: 4 additions & 0 deletions
4
tests/external_board_dirs/esp-ci-boards/esp8266-ci/esp8266-ci.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Sets up configuration for openocd | ||
CONFIG_MODULE_ESP_LOG_STARTUP=y | ||
CONFIG_MODULE_ESP_LOG_TAGGED=y | ||
CONFIG_MODULE_ESP_QEMU=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters