Skip to content

Commit

Permalink
cpu/esp*: Model RIOT_CI_BUILD deps in kconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKevinWeiss committed Jan 7, 2022
1 parent 559f193 commit 348b440
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 0 deletions.
2 changes: 2 additions & 0 deletions boards/esp32-wrover-kit/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,7 @@ config BOARD_ESP32_WROVER_KIT
select HAS_SDCARD_SPI

select HAVE_ILI9341
select HAVE_RIOT_CI_BUILD_ESP_HW_COUNTER
select HAVE_RIOT_CI_BUILD_ESP_I2C_HW

source "$(RIOTBOARD)/common/esp32/Kconfig"
2 changes: 2 additions & 0 deletions boards/esp8266-olimex-mod/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ config BOARD_ESP8266_OLIMEX_MOD
select BOARD_COMMON_ESP8266
select CPU_MODEL_ESP8266_ESP_12X

select HAVE_RIOT_CI_BUILD_ESP_SW_TIMER

source "$(RIOTBOARD)/common/esp8266/Kconfig"
12 changes: 12 additions & 0 deletions cpu/esp32/periph/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,16 @@ config MODULE_PERIPH_RTT_HW_RTC
bool
default y if MODULE_PERIPH_RTT

config MODULE_ESP_HW_COUNTER
bool
prompt "Use hardware counters to run RIOT" if !(RIOT_CI_BUILD && HAVE_RIOT_CI_BUILD_ESP_HW_COUNTER)
default y if (RIOT_CI_BUILD && HAVE_RIOT_CI_BUILD_ESP_HW_COUNTER)
depends on MODULE_PERIPH_TIMER


endif # TEST_KCONFIG

config HAVE_RIOT_CI_BUILD_ESP_HW_COUNTER
bool
help
Indicates the CI build will try to enable this.
6 changes: 6 additions & 0 deletions cpu/esp32/periph/Kconfig.i2c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ if TEST_KCONFIG

choice
bool "I2C implementation"
default MODULE_ESP_I2C_HW if (RIOT_CI_BUILD && HAVE_RIOT_CI_BUILD_ESP_I2C_HW)
depends on MODULE_PERIPH_I2C
help
Due to the poor and faulty hardware I2C implementation the software one
Expand All @@ -33,3 +34,8 @@ config MODULE_PERIPH_I2C_HW
Hardware implementation of I2C.

endif # TEST_KCONFIG

config HAVE_RIOT_CI_BUILD_ESP_I2C_HW
bool
help
Indicates the CI build will try to enable this.
12 changes: 12 additions & 0 deletions cpu/esp8266/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,17 @@ config MODULE_ESP_I2C_SW
default y if MODULE_PERIPH_I2C
select MODULE_PERIPH_I2C_SW

config MODULE_ESP_SW_TIMER
bool
prompt "Use software timers to run RIOT" if !(RIOT_CI_BUILD && HAVE_RIOT_CI_BUILD_ESP_SW_TIMER)
default y if (RIOT_CI_BUILD && HAVE_RIOT_CI_BUILD_ESP_SW_TIMER)
depends on MODULE_PERIPH_TIMER
depends on TEST_KCONFIG

config HAVE_RIOT_CI_BUILD_ESP_SW_TIMER
bool
help
Indicates the CI build will try to enable this.

rsource "sdk/Kconfig"
rsource "vendor/Kconfig"

0 comments on commit 348b440

Please sign in to comment.