Skip to content

Commit 3af41ab

Browse files
committed
tests/esp-ci-boards: add CI board for ESP32-C6
Use an external board definition to be able compile modules that are not enabled by default in CI.
1 parent 43d94de commit 3af41ab

File tree

5 files changed

+61
-0
lines changed

5 files changed

+61
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# SPDX-FileCopyrightText: 2025 Gunar Schorcht
2+
# SPDX-License-Identifier: LGPL-2.1-only
3+
4+
config BOARD
5+
default "esp32c6-ci" if BOARD_ESP32C6_CI
6+
7+
config BOARD_ESP32C6_CI
8+
bool
9+
default y
10+
select BOARD_COMMON_ESP32C6
11+
select CPU_MODEL_ESP32C6_MINI_1X_X4
12+
13+
source "$(RIOTBOARD)/common/esp32c6/Kconfig"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# This must be a different name than 'board' as it is implemented by 'esp32c6-devkit'
2+
MODULE = board_esp32c6-ci
3+
4+
DIRS += $(RIOTBOARD)/esp32c6-devkit
5+
6+
include $(RIOTBASE)/Makefile.base
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This must be a different name than 'board' as it is implemented by 'esp32c6-devkit'
2+
USEMODULE += board_esp32c6-ci
3+
4+
USEMODULE += esp_idf_heap
5+
USEMODULE += esp_jtag
6+
USEMODULE += esp_log_startup
7+
USEMODULE += esp_log_tagged
8+
9+
ifneq (,$(filter periph_i2c,$(USEMODULE)))
10+
USEMODULE += esp_i2c_hw
11+
endif
12+
13+
ifneq (,$(filter netdev_default,$(USEMODULE)))
14+
# if netdev_default is used, we use gnrc modules that are enabled
15+
# in different examples to use different esp_wifi modules
16+
ifneq (,$(filter gnrc_netif_single,$(USEMODULE)))
17+
# if gnrc_netif_single module is enabled, esp_wifi_enterprise is used
18+
USEMODULE += esp_wifi_enterprise
19+
else
20+
# in all other case esp_wifi_ap is enabled
21+
USEMODULE += esp_wifi_ap
22+
endif
23+
endif
24+
25+
ifneq (,$(filter ws281x,$(USEMODULE)))
26+
USEMODULE += ws281x_esp32_sw
27+
endif
28+
29+
include $(RIOTBOARD)/esp32c6-devkit/Makefile.dep
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FEATURES_PROVIDED += esp_rtc_timer_32k
2+
3+
include $(RIOTBOARD)/esp32c6-devkit/Makefile.features
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# We must duplicate the include done by $(RIOTBASE)/Makefile.include
2+
# to also include the main board header
3+
INCLUDES += $(addprefix -I,$(wildcard $(RIOTBOARD)/esp32c6-devkit/include))
4+
5+
# WIFI_EAP_USER and WIFI_EAP_PASS have to be defined to compile the
6+
# optional module esp_wifi_enterprise in CI
7+
CFLAGS += -DWIFI_EAP_USER=\"[email protected]\"
8+
CFLAGS += -DWIFI_EAP_PASS=\"riot\"
9+
10+
include $(RIOTBOARD)/esp32c6-devkit/Makefile.include

0 commit comments

Comments
 (0)