mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-16 18:13:49 +01:00
tests/external_board_dirs: add esp ci boards
This adds esp board clones for compile testing
This commit is contained in:
parent
8d12479935
commit
4e72d1733a
@ -7,5 +7,6 @@ FEATURES_REQUIRED += arch_native
|
|||||||
# Set without '?=' to also verify the docker integration when set with =
|
# Set without '?=' to also verify the docker integration when set with =
|
||||||
EXTERNAL_BOARD_DIRS = $(CURDIR)/external_board_dir_1
|
EXTERNAL_BOARD_DIRS = $(CURDIR)/external_board_dir_1
|
||||||
EXTERNAL_BOARD_DIRS += $(CURDIR)/external_board_dir_2
|
EXTERNAL_BOARD_DIRS += $(CURDIR)/external_board_dir_2
|
||||||
|
EXTERNAL_BOARD_DIRS += $(CURDIR)/esp-ci-boards
|
||||||
|
|
||||||
include $(RIOTBASE)/Makefile.include
|
include $(RIOTBASE)/Makefile.include
|
||||||
|
|||||||
38
tests/external_board_dirs/esp-ci-boards/esp32-ci/Kconfig
Normal file
38
tests/external_board_dirs/esp-ci-boards/esp32-ci/Kconfig
Normal file
@ -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"
|
||||||
@ -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
|
||||||
@ -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
|
||||||
@ -0,0 +1 @@
|
|||||||
|
include $(RIOTBOARD)/esp32-wrover-kit/Makefile.features
|
||||||
@ -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
|
||||||
@ -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
tests/external_board_dirs/esp-ci-boards/esp8266-ci/Kconfig
Normal file
21
tests/external_board_dirs/esp-ci-boards/esp8266-ci/Kconfig
Normal file
@ -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"
|
||||||
@ -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
|
||||||
@ -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
|
||||||
@ -0,0 +1,5 @@
|
|||||||
|
include $(RIOTBOARD)/esp8266-olimex-mod/Makefile.features
|
||||||
|
|
||||||
|
ifeq (1, $(TEST_KCONFIG))
|
||||||
|
KCONFIG_ADD_CONFIG += $(BOARDDIR)/$(BOARD).config
|
||||||
|
endif
|
||||||
@ -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
|
||||||
@ -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
|
||||||
Loading…
x
Reference in New Issue
Block a user