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

boards: Use BOARD.config pattern for kconfig

Many simple kconfig configurations are added to boards and brought in with the board name.

This makes a common import of these configs so one only requires adding a BOARD.config without having to alter the makefile.
This commit is contained in:
MrKevinWeiss 2022-02-14 10:12:01 +01:00
parent ec0df56b67
commit ddfe1f6aff
No known key found for this signature in database
GPG Key ID: 3514539D7808D123
11 changed files with 6 additions and 60 deletions

View File

@ -15,9 +15,3 @@ FEATURES_PROVIDED += periph_usbdev
# Put other features for this board (in alphabetical order)
FEATURES_PROVIDED += riotboot
FEATURES_PROVIDED += highlevel_stdio
# This configuration enables modules that are only available when using Kconfig
# module modelling
ifeq (1, $(TEST_KCONFIG))
KCONFIG_BOARD_CONFIG += $(BOARDDIR)/bastwan.config
endif

View File

@ -11,9 +11,3 @@ FEATURES_PROVIDED += periph_pwm
FEATURES_PROVIDED += periph_spi
FEATURES_PROVIDED += arduino
# This configuration enables modules that are only available when using Kconfig
# module modelling
ifeq (1, $(TEST_KCONFIG))
KCONFIG_ADD_CONFIG += $(BOARDDIR)/esp32-wemos-lolin-d32-pro.config
endif

View File

@ -15,9 +15,3 @@ FEATURES_PROVIDED += esp_rtc_timer_32k
FEATURES_PROVIDED += esp_jtag
FEATURES_PROVIDED += arduino
# This configuration enables modules that are only available when using Kconfig
# module modelling
ifeq (1, $(TEST_KCONFIG))
KCONFIG_BOARD_CONFIG += $(BOARDDIR)/$(BOARD).config
endif

View File

@ -10,9 +10,3 @@ FEATURES_PROVIDED += periph_rtc
FEATURES_PROVIDED += periph_rtt
FEATURES_PROVIDED += periph_spi
FEATURES_PROVIDED += periph_timer
# This configuration enables modules that are only available when using Kconfig
# module modelling
ifeq (1, $(TEST_KCONFIG))
KCONFIG_ADD_CONFIG += $(BOARDDIR)/hamilton.config
endif

View File

@ -18,9 +18,3 @@ FEATURES_PROVIDED += periph_rtt
FEATURES_PROVIDED += periph_spi
FEATURES_PROVIDED += periph_timer
FEATURES_PROVIDED += periph_uart
# This configuration enables modules that are only available when using Kconfig
# module modelling
ifeq (1, $(TEST_KCONFIG))
KCONFIG_BOARD_CONFIG += $(BOARDDIR)/mulle.config
endif

View File

@ -6,10 +6,4 @@ FEATURES_PROVIDED += periph_spi
#FEATURES_PROVIDED += periph_uart
FEATURES_PROVIDED += vdd_lc_filter_reg1
# This configuration enables modules that are only available when using Kconfig
# module modelling
ifeq (1, $(TEST_KCONFIG))
KCONFIG_BOARD_CONFIG += $(BOARDDIR)/pinetime.config
endif
include $(RIOTBOARD)/common/nrf52/Makefile.features

View File

@ -5,10 +5,4 @@ FEATURES_PROVIDED += periph_spi
FEATURES_PROVIDED += periph_uart
FEATURES_PROVIDED += vdd_lc_filter_reg1
# This configuration enables modules that are only available when using Kconfig
# module modelling
ifeq (1,$(TEST_KCONFIG))
KCONFIG_BOARD_CONFIG += $(BOARDDIR)/ruuvitag.config
endif
include $(RIOTBOARD)/common/nrf52/Makefile.features

View File

@ -1,9 +1,3 @@
FEATURES_PROVIDED += highlevel_stdio
include $(RIOTBOARD)/stm32f429i-disc1/Makefile.features
# This configuration enables modules that are only available when using Kconfig
# module modelling
ifeq (1, $(TEST_KCONFIG))
KCONFIG_ADD_CONFIG += $(BOARDDIR)/stm32f429i-disco.config
endif

View File

@ -5,9 +5,3 @@ CPU_MODEL = stm32mp157cac
FEATURES_PROVIDED += periph_gpio
FEATURES_PROVIDED += periph_timer
FEATURES_PROVIDED += periph_uart
# This configuration enables modules that are only available when using Kconfig
# module modelling
ifeq (1, $(TEST_KCONFIG))
KCONFIG_BOARD_CONFIG += $(BOARDDIR)/$(BOARD).config
endif

View File

@ -14,9 +14,3 @@ FEATURES_PROVIDED += periph_usbdev
# Put other features for this board (in alphabetical order)
FEATURES_PROVIDED += riotboot
# This configuration enables modules that are only available when using Kconfig
# module modelling
ifeq (1, $(TEST_KCONFIG))
KCONFIG_BOARD_CONFIG += $(BOARDDIR)/yarm.config
endif

View File

@ -37,6 +37,12 @@ export KCONFIG_EXTERNAL_PKG_CONFIGS = $(GENERATED_DIR)/Kconfig.external_pkgs
ifeq (1,$(TEST_KCONFIG))
# This file will contain application default configurations
KCONFIG_APP_CONFIG = $(APPDIR)/app.config.test
# This configuration enables modules that are only available when using Kconfig
# module modelling
# Bring in all board specific configurations if present
ifneq (,$(wildcard $(BOARDDIR)/$(BOARD).config))
KCONFIG_BOARD_CONFIG += $(BOARDDIR)/$(BOARD).config
endif
else
# This file will contain application default configurations
KCONFIG_APP_CONFIG = $(APPDIR)/app.config